Changeset 1454 for trunk/LMDZ.TITAN/Tools/io.F90
- Timestamp:
- Jun 16, 2015, 7:01:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/Tools/io.F90
r816 r1454 218 218 !=========================================================================== 219 219 220 subroutine get_var4d(infid,dim1,dim2,dim3,dim4,text,var, ierr1,ierr2)220 subroutine get_var4d(infid,dim1,dim2,dim3,dim4,text,var,missing,ierr1,ierr2) 221 221 222 222 implicit none … … 229 229 character (len=64) :: text ! name of variable to read 230 230 real,dimension(dim1,dim2,dim3,dim4) :: var ! variable to read 231 integer :: ierr1,ierr2 ! NetCDF routines return code 231 real :: missing ! missing value 232 integer :: ierr1,ierr2,miss ! NetCDF routines return code 232 233 233 234 ! local … … 240 241 write(*,*) "ID ok for ",trim(text) 241 242 ierr2=NF_GET_VAR_REAL(infid,tmpvarid,var) 243 miss=NF_GET_ATT_REAL(infid,tmpvarid,"missing_value",missing) 242 244 endif 243 245
Note: See TracChangeset
for help on using the changeset viewer.