Skip to content

Can't subset RTOFS - doesn't recognize grid #144

Description

@AmyMacFadyen

What went wrong?

It throws this warning
UserWarning: no grid type found in this dataset
warnings.warn("no grid type found in this dataset")

And returns None

Also of note -- you only get the warning if you open a multifile dataset -- but it returns None regardless (i.e., it doesn't work in either case)

Operating System

Windows

Version

0.1.1.dev8+g97ec48035

Python Version

3.10

Code to Reproduce

ds = xr.open_mfdataset(['http://edsdata.oceansmap.com/thredds/dodsC/EDS/HYCOM_GLOBAL/hycomglobal_20260619.nc','http://edsdata.oceansmap.com/thredds/dodsC/EDS/HYCOM_GLOBAL/hycomglobal_20260620.nc'])
bbox = (-126.0, 47.5, -124.0, 48.5)
ds.xsg.subset_bbox(bbox)

Errors, Traceback, and Logs

In [106]: ds.xsg.subset_bbox(bbox)
C:\Users\amy.macfadyen\PyProjects\xarray-subset-grid\xarray_subset_grid\accessor.py:47: UserWarning: no grid type found in this dataset
  warnings.warn("no grid type found in this dataset")

In [107]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions