Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hello, I have a problem of creating a netcdf file correctly. I sent email to support@xxxxxxxxxxxxxxxx, but get no response. I have to turn to this mailing list, although it may be simple. Following is my source file, test.f90 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program test implicit none include 'netcdf.inc' integer :: ierr , ncid integer :: timdmid, varid, il ierr = nf_create('test.nc',nf_clobber, ncid) ierr = nf_def_dim(ncid, 'time', nf_unlimited, timdmid) ierr = nf_def_var(ncid, 'temp', nf_double, 1, timdmid, varid) ierr = nf_enddef(ncid) do il = 1, 10 ierr = nf_put_var_double(ncid, varid,1.0) enddo ierr = nf_close(ncid) end program This program can be compiled and run successfully, however, the output from ncdump shows that, netcdf test { dimensions: time = UNLIMITED ; // (0 currently) variables: double temp(time) ; data: } !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Thanks Yi, Shuhua School of Geography and Geology McMaster University Hamilton, ON, CA L8S 4K1 -------------------------------- Office: GSB-221 Phone: 905-525-9140 Ext. 24776 --------------------------------
netcdfgroup
archives: