Skip to content

Commit

Permalink
more work on netcdf out
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Nov 8, 2023
1 parent 060519e commit a59f6f3
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions model/src/w3iopomd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1087,12 +1087,36 @@ SUBROUTINE W3IOPON_READ (NDSOP, IOTST, IMOD, filename, ncerr)
ncerr = nf90_open(filename, NF90_NOWRITE, fh)
if (ncerr .ne. 0) return

! Read the dimension information.
ncerr = nc90_inq_dimid(fh, DNAME_NOPTS, d_nopts)
! Read the dimension information for NOPTS.
ncerr = nf90_inq_dimid(fh, DNAME_NOPTS, d_nopts)
if (ncerr .ne. 0) return
ncerr = nc90_inquire_dimension(fh, d_nopts, len = d_nopts_len)
ncerr = nf90_inquire_dimension(fh, d_nopts, len = d_nopts_len)
if (ncerr .ne. 0) return
print *, 'd_nopts_len = ', d_nopts_len

! Read the dimension information for NSPEC.
ncerr = nf90_inq_dimid(fh, DNAME_NSPEC, d_nspec)
if (ncerr .ne. 0) return
ncerr = nf90_inquire_dimension(fh, d_nspec, len = d_nspec_len)
if (ncerr .ne. 0) return

! Read the dimension information for VSIZE.
ncerr = nf90_inq_dimid(fh, DNAME_VSIZE, d_vsize)
if (ncerr .ne. 0) return
ncerr = nf90_inquire_dimension(fh, d_vsize, len = d_vsize_len)
if (ncerr .ne. 0) return

! Read the dimension information for NAMELEN.
ncerr = nf90_inq_dimid(fh, DNAME_NAMELEN, d_namelen)
if (ncerr .ne. 0) return
ncerr = nf90_inquire_dimension(fh, d_namelen, len = d_namelen_len)
if (ncerr .ne. 0) return

! Read the dimension information for GRDIDLEN.
ncerr = nf90_inq_dimid(fh, DNAME_GRDIDLEN, d_grdidlen)
if (ncerr .ne. 0) return
ncerr = nf90_inquire_dimension(fh, d_grdidlen, len = d_grdidlen_len)
if (ncerr .ne. 0) return


! Close the file.
ncerr = nf90_close(fh)
Expand Down

0 comments on commit a59f6f3

Please sign in to comment.