[netcdfgroup] nf90 multiple ulimited variables?

 

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.

  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: