NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello, I am new at programming netcdf using fortran 90 and I have a question regarding netcdf 4 unlimited variables. I compile a program with this piece of code and the compiler doesn't complain : istatus=NF90_CREATE(CFILE,NF90_NETCDF4,NCID) ! !create dataset print*,'Times',n_time,'Depths',n_depth istatus = NF90_DEF_DIM(NCID, "LATITUDE", nf90_UNLIMITED, NYDID) call check_err(istatus) istatus = NF90_DEF_DIM(NCID, "LONGITUDE",n_time,NXDID) call check_err(istatus) istatus = NF90_DEF_DIM(NCID, "DEPTH", n_depth, NDEPTHSDID) call check_err(istatus) ! print*,'---------------------' istatus = NF90_DEF_DIM(NCID, "TIME", nf90_UNLIMITED, NTIMEID) call check_err(istatus) istatus = NF90_DEF_DIM(NCID, "POSITION", n_time, NPOSID) call check_err(istatus) But when I execute the code it produces this error: NetCDF: NC_UNLIMITED size already in use. Shouldn't I be able to use multiple unlimited dimensions with the new netcdf? Can anyone point me to the right direction regarding f90 and unlimited dimensions? I am using netcdf 4.1.1 and the intel fortran compiler. Thanks in advance for your time. Grigoropoulos Stathis Hellenic Centre for Marine Research Institute of Oceanography 46km Athens-Sounio Ave. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
netcdfgroup
archives: