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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #BGF-473127]: netcdf & gmt



Hi Julia,

The Fortran 90 functions work in a loop the same way that they work outside of
a loop, so there
are no special examples to illustrate their use in a loop.  However, I see from
your pseudo code
that you are not checking the return value of the netCDF functions you are
calling.  All of the
nf90_ functions return a value, they are not subroutines.  If you check the
return value, you
may find out what is not working.

If the return value is not equal to nf90_noerr, then you can print an error
message by using the
nf90_strerror function, as demonstrated in the Fortran 90 examples on

  http://www.unidata.ucar.edu/software/netcdf/examples/programs

Also, I know you were only sending pseudo code, but did you declare "x" to be
an integer?:

--Russ


Russ Rew                                         UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: BGF-473127
Department: Support netCDF
Priority: Normal
Status: Closed


 
 
  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