Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: [netcdfgroup] convert Arc Ascii to cdl format for ultimate conversion to netCDF file

June,

I have struggled quite a bit with ArcGIS and netCDF myself.  So far, two
options have worked for me:
1) directly use ArcGIS 9.2 to create a netCDF file.  Starting with 9.2 (and
now in 9.3 beta) ArcGIS has had netCDF capabilities through the
"Multidimension Tools" toolbox.  If using 9.2 and for some reason the
"raster to netCDF" tool crashes, it might be because your raster is too big.
That's a glitch that has been fixed in 9.3 beta.
2) note that ncdump is the opposite of ncgen.  So, if you do:
ncdump myfile.nc > myfile.cdl
you will get a CDL file named myfile.cdl and can look into to see the CDL
syntax.
Then you can do:
ncgen -o myfile.nc myfile.cdl to recreate your original netcdf file.

So, doing that on various netCDF files should give you some hints about the
appropriate syntax.  

I hope this helps,

Cedric 


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690