This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Guillaume, re: cdf2fortran The errors you list below indicate that the code being created by 'cdf2fortran' has problems (i.e., the problem is not with linking). If you learned about 'cdf2fortran' from our Contributed Software webpage, please be aware that since we did not create the software referenced, we provide no support. In most of the links for the packages that use netCDF there is a link to a web site related to the package and/or an email address that can be used to get support for the package. This may be the case for 'cdf2fortran'. Have you tried gennet.f instead of 'cdf2fortran'? If not, you may want to try it. Here is the reference to 'gennet.f' through our contributed software page: Unidata HomePage http://www.unidata.ucar.edu netCDF HomePage http://www.unidata.ucar.edu/software/netcdf/ Software for manipulating or displaying netCDF data http://www.unidata.ucar.edu/software/netcdf/software.html User-contributed software http://www.unidata.ucar.edu/software/netcdf/software.html#user Unidata makes available a separate catalog (http://www.unidata.ucar.edu/software/netcdf/contrib.html) http://www.unidata.ucar.edu/software/netcdf/contrib.html Scroll down in the last page to find the link 'gennet.f'. PENIDE Guillaume wrote: > I'm a french PhD student and i have a problem concerning cdf2fortran > In fact i compile (with make) cdf2fortran.f without any problem and it > seems to me that all the libraries are Ok because i installed these > very rapidely without problem and i have already installed the > "cdf2ascii" command which work very good. > So I run cdf2fortran to generate my fortran program toto.f > and when i try to compile toto.f i have the followings (extract of the > errors) > toto.f: In program `MAIN__': > toto.f:24: > parameter (time = 33878) > 1 > toto.f:30: (continued): > real*8 time(nrec) > 2 > Invalid declaration of or reference to symbol `time' at (2) [initially > seen at (1)] > toto.f:25: > parameter (heights = 411) > 1 > toto.f:32: (continued): > real*4 heights(heights > 2 > Invalid declaration of or reference to symbol `heights' at (2) > [initially seen at (1)] > AND warnings like that too > toto.f:89: warning: > call ncvgt(ncid, 1,start,count,base_time,rcode) > 1 > toto.f:100: (continued): > call ncvgt(ncid, 2,start,count,time_offset,rcode) > 2 > Argument #5 of `ncvgt' is one type at (2) but is some other type at (1) > [info -f g77 M GLOBALS] > toto.f:89: warning: > call ncvgt(ncid, 1,start,count,base_time,rcode) > 1 > toto.f:111: (continued): > call ncvgt(ncid, 3,start,count,time,rcode) > 2 > Argument #5 of `ncvgt' is one type at (2) but is some other type at (1) > [info -f g77 M GLOBALS] > > I also would like to know where are the subroutines like ncinq or > ncdinq that are called from my program toto.f which is generated by > cdf2fortran (because when i download cdf2fortran there are only the .f > , Makefile and Readme while when i have download cdf2ascci there are a > lot of things with .c files, libraries .h and so on..) > > > I hope that you understand my problem and will help me to find a > solution > > Best regards, > > PENIDE Guillaume > Laboratoire de Mtorologie Physique LaMP > Universit Blaise Pascal > 24, Avenue des Landais > 63170 Aubire Cedex > Tel: 04 73 40 52 76 Cheers, Tom **************************************************************************** Unidata User Support UCAR Unidata Program (303) 497-8642 P.O. Box 3000 address@hidden Boulder, CO 80307 ---------------------------------------------------------------------------- Unidata HomePage http://www.unidata.ucar.edu **************************************************************************** Ticket Details =================== Ticket ID: OQJ-918316 Department: Support netCDF Priority: Normal Status: Closed