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 need to write a portion of data to a netCDF file after every timestep. The code that I write is like this: real data(Ncols,Nrows,Nlays,Nspecies) integer :: start(5),count(5) do it = 1,tstep do is = 7,Nspecies count = (/NCOLS, NROWS, NLAYS, 1, 1/) start = (/ 1, 1, 1, 1, it/) call nc_check(nf90_put_var( & chk_ncid, & nc_data_varid, & data(:,:,:,is), & start=start, & count=count ) ) end do end do I was just wondering how should I set "count", is "count = (/NCOLS, NROWS, NLAYS, 1, 1/)" okay or not? especially the last two entries, can I set them both as "1"? Thank you! -- Cordially, Hongyan
netcdfgroup
archives: