NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Using file:// protocol to retrieve opendap data...

  • To: ed zaron <zaron@xxxxxxxxxxxx>
  • Subject: Re: [netcdfgroup] Using file:// protocol to retrieve opendap data...
  • From: Dennis Heimbigner <dmh@xxxxxxxxxxxxxxxx>
  • Date: Tue, 11 Jan 2011 10:54:35 -0700
Ed-

The following commands ~do not~ open the file:

nigiri:Downloads ezaron$ ncdump -h ./ECMWF_ERA-40_subset.nc
ncdump: ./ECMWF_ERA-40_subset.nc: No such file or directory

nigiri:Downloads ezaron$ ncdump -h ./ECMWF_ERA-40_subset.nc.dods
ncdump: ./ECMWF_ERA-40_subset.nc.dods: NetCDF: Unknown file format

nigiri:Downloads ezaron$ ncdump -h file://./ECMWF_ERA-40_subset.nc <file:///./ECMWF_ERA-40_subset.nc> ncdump: file://./ECMWF_ERA-40_subset.nc: <file:///./ECMWF_ERA-40_subset.nc:> NetCDF: I/O failure

The rules are:
1. it must be in the form of a file:// url; in your first two cases,
   ncdump (or nccopy) will think it is a normal netcdf file.
2. the file:// path must be absolute, which is uour third case.
3. the file:// path must not end in .dods because ncdump will add that
   itself.



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: