home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1372146714

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
1372146714 I_kwDOAMm_X85RyUwa 7034 xarray fails to locate files via OpeNDAP 26262113 closed 0     2 2022-09-14T00:11:52Z 2022-09-14T23:30:35Z 2022-09-14T23:30:35Z NONE      

What is your issue?

Hi there,

I'm having an odd issue with xarray: it doesn't seem to be able to read in any files using opendap. I'm running xarray version 0.19.0, and xarray is failing to read in every file I've tried so far, even when those data exist online and - interestingly - are accessible via Opendap in Matlab.

An example: I'd like to read in data from the NOAA OISSTv2, and tried the 2013 netCDF file: python import xarray as xr sst_2013=xr.open_dataset("https://psl.noaa.gov/thredds/dodsC/Datasets/noaa.oisst.v2.highres/sst.day.mean.2013.v2.nc") This results in the following error message: pytb FileNotFoundError: [Errno 2] No such file or directory: 'https://psl.noaa.gov/thredds/dodsC/Datasets/noaa.oisst.v2.highres/sst.day.mean.2013.v2.nc'

Yet in Matlab, I am able to successfully read in the exact same file: ```matlab nc=netcdf('https://psl.noaa.gov/thredds/dodsC/Datasets/noaa.oisst.v2.highres/sst.day.mean.2013.v2.nc');

nc

nc =

      NetCDF_File: 'https://psl.noaa.gov/thredds/dodsC/Datasets/noaa.oisst.v2.highres/sst.day.mean.2013.v2.nc'
      nDimensions: 3
       nVariables: 4
nGlobalAttributes: 9
  RecordDimension: 'time'
         nRecords: 365
       Permission: 'nowrite'
       DefineMode: 'data'
         FillMode: 'fill'
       MaxNameLen: 0

```

Does anyone have any idea what might be causing this? My Python code ran just fine a few months ago, so I am mystified as to why the failure suddenly began.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7034/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.533ms · About: xarray-datasette