Re: [netcdf-java] Reading a CDL file

Gabriel Mateescu wrote:
Hi,

Is it possible to read a CDL file in netcdf-java 4.0.41?

When I try to open a cdl file with NetcdfFile.open()

     NetcdfFile ncfile = null;
     try {
            ncfile = NetcdfFile.open(fileName);
      }
      ....

I get the exception "not a valid NetCDF file" in
 ucar.nc2.NetcdfFile.open(NetcdfFile.java:716)


Thank you.
Gabriel


_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
Hi Gabriel:

A CDL usually means one written in ascii CDL, which must be translated to a binary netcdf file with ncgen. netcdf-java cannot read these. If its actually a binary file, then its probably damaged.



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