Skip to content

Accessing Vertical Coordinates for CONUS404-PGW Zarr #651

@ballight42

Description

@ballight42

Hi,

I am currently working with the hourly conus404-pgw datasets and had a question about vertical coordinates for 3D variables like U and V. I am trying to interpolate these variables to specific pressure levels. But I noticed that the bottom_top dimension in these variables is missing. If it was intentionally omitted, is there a recommended way to interpolate these variables onto the vertical levels for the PGW scenario? Many thanks in advance for your time and I will appreciate any instructions:)

The code I used to access data:

import intake
import fsspec
endpoint_url = "https://usgs.osn.mghpcc.org/"
zarr_url = "s3://hytest/conus404-pgw/conus-pgw_hourly.zarr"
fs = fsspec.filesystem("s3", anon=True, client_kwargs={'endpoint_url': endpoint_url})
mapper = fs.get_mapper(zarr_url)
ds = xarray.open_zarr(mapper)
ds['U']

The output coordinates for variable U:

xarray.DataArray'U'time: 376945 y: 1015 x_stag: 1368)

which I expected to be

xarray.DataArray'U'time: 376945 bottom_top:50 y: 1015 x_stag: 1368)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions