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.