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.

[netcdfgroup] data output error

Hello~

The data I got in the netCDF file seems wrong. My code is:

      nstep_nreps = nstep_nreps + 1
      DO S = 1, N_GC_SPC
       call nc_chk1_putvar(
     &              jdate, jtime
     &            , conc_varid(s)
     &            , CGRID, S
     &            , nstep_nreps )
      END DO
      write(56,*) 'cgrid(1,1,1,1)',cgrid(1,1,1,1)

I checked the first of the data values, in the 56th file, it's corrct:
"cgrid(1,1,1,1)=1.6699868E-04".
But in the netCDF file, it is:  2.802597e-45. Actually all values in netCDF
has magnitude e-19~e-45.
The subroutine "nc_chk1_putvar" is like this:

  count = (/NCOLS, NROWS, NLAYS, 1, 1/)
  start = (/ 1, 1, 1, Nspecies, nstep_nreps/)
      call nc_check(nf90_put_var( &
                    chk_ncid,  &
                    nc_data_varid,  &
                    CGRID(:,:,:,Nspecies), &
                    start=start,  &
                    count=count  &
                   ))

Could you please find apparent mistake in my code? Thank you!

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