issue_comments: 1066784566
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/2233#issuecomment-1066784566 | https://api.github.com/repos/pydata/xarray/issues/2233 | 1066784566 | IC_kwDOAMm_X84_ldc2 | 5797727 | 2022-03-14T13:27:00Z | 2022-03-14T13:30:24Z | NONE | Hi For now, I found a workaround loading and renaming the problematic coordinates with For now, you could try: ``` import xarray as xr from netCDF4 import Dataset define year and month to be readyear = 2019 month = 5 we could use this to run a loop through the years/months we needlist problematic coordinatesdrop_variables = ['siglay','siglev'] base url for openDAP serverurl = "".join(["http://www.smast.umassd.edu:8080/thredds/dodsC/models/fvcom/", f"NECOFS/Archive/NECOFS_GOM/{year}/gom4_{year}{month:02d}.nc?"]) lazy load of the datads = xr.open_dataset(url,drop_variables=drop_variables,decode_times=False) load data with netCDF4nc = Dataset(url) load the problematic coordinatescoords = {name:nc[name] for name in drop_variables} function to extract ncattrs from
|
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
332471780 |