issues: 1359181017
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1359181017 | I_kwDOAMm_X85RA3TZ | 6977 | Bad data from opendap server without raising an error | 13545615 | open | 0 | 1 | 2022-09-01T17:27:32Z | 2023-01-17T18:35:38Z | NONE | What is your issue?Hello, sometimes when using xarray to retrieve data from an opendap server I see a warning/error message like
but the error is not raised in python. The I tried using a context manager to raise an error if any message was written to stdout/stderr but it didn't work (I think it is because a child process is the one writing the message). Sometimes there is no error message and the download finishs without any problem, I think it depends on the server load. I am not sure if it is a xarray problem, a dask problem ( Bellow is minimal reproducible example. ``` import sys import io import contextlib import xarray as xr use the current date or the previous dayurl = ('http://nomads.ncep.noaa.gov:80/dods/rtofs/rtofs_global20220831' '/rtofs_glo_3dz_forecast_daily_uvel') ds = (xr .open_dataset(url, chunks={'time': '100MB'}) .isel(time=slice(1, 9)) .sel(lon=slice(300.0, 340.0), lat=slice(-6.0, 7.0))) for var in ds.data_vars:
``` Thank you! |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6977/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |