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

netCDF reader for SuomiNet Product Files

Link to the code

It will ask for a file name, open the file, and read the data into Fortran arrays.
You have to provide code to use the data (e.g. print it out in a Format you like)
by replacing the commented section at the end of the program:

C
C       HERE IS WHERE YOU WRITE STATEMENTS TO USE THE DATA
C

This is not elegant FORTRAN, but it was generated quickly using the gennet.f program available from

ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/gennet.f

It uses the old netCDF-2 Fortran interface instead of the superior Fortran 90 interface or netCDF-3 Fortran 77 interface, because that's what gennet.f, a contributed program that we don't maintain, currently generates.

To compile and link this program, assuming it's stored in a file named "readnc.f", use:

f77 -o readnc readnc.f -L/upc/netcdf/lib -lnetcdf

but you would have to change "/upc/netcdf/lib" to wherever your netCDF library is installed.

Then to use it, run readnc with no parameters ...

 

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of 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