Changeset 5100 for LMDZ6/branches/Amaury_dev/tools/netcdf95/Datasets
- Timestamp:
- Jul 23, 2024, 7:00:20 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/tools/netcdf95/Datasets/nf95_create_single.f90
r5088 r5100 19 19 ! Shortcut to create a file containing a single primary variable. 20 20 21 use netcdf, only: NF90_CLOBBER, NF90_FLOAT21 use netcdf, only: nf90_clobber, nf90_float 22 22 23 23 use nf95_create_m, only: nf95_create … … 36 36 !---------------------------------------------------------------------- 37 37 38 call nf95_create(name // ".nc", NF90_CLOBBER, ncid)38 call nf95_create(name // ".nc", nf90_clobber, ncid) 39 39 40 40 do i = 1, size(coordinates) 41 41 call nf95_def_dim(ncid, coordinates(i)%name, coordinates(i)%nclen, & 42 42 dimids(i)) 43 call nf95_def_var(ncid, coordinates(i)%name, NF90_FLOAT, dimids(i), &43 call nf95_def_var(ncid, coordinates(i)%name, nf90_float, dimids(i), & 44 44 varid_coord(i)) 45 45 … … 50 50 END DO 51 51 52 call nf95_def_var(ncid, name, NF90_FLOAT, dimids, varid)52 call nf95_def_var(ncid, name, nf90_float, dimids, varid) 53 53 54 54 end subroutine nf95_create_single
Note: See TracChangeset
for help on using the changeset viewer.