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 ...
|