Changeset efd26ca in flexpart.git
- Timestamp:
- Dec 4, 2017, 1:58:26 AM (6 years ago)
- Branches:
- FPv9.3.2, grib2nc4_repair
- Children:
- 94106e2
- Parents:
- 857dfd0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
flexpart_code/grib2nc4/fp2nc4io_mod.F90
r8624a75 refd26ca 9 9 ! * 10 10 ! May 2016 * 11 ! * 12 ! 2017-12-03 DJM - * 13 ! * 14 ! - Changed NF90_DOUBLE to NF90 FLOAT (6 places) * 15 ! - Cleaned up long lines from addition of NC descriptions * 16 ! * 17 ! * 11 18 ! * 12 19 !**************************************************************** … … 155 162 156 163 ! Write the height field - variable 'height' is defined in com_mod 157 ncfunc_retval = nf90_def_var(ncid, 'height', NF90_ DOUBLE, &164 ncfunc_retval = nf90_def_var(ncid, 'height', NF90_FLOAT, & 158 165 & z_dimid, varid) 159 166 ! attributes 160 ncfunc_retval = nf90_put_att(ncid, varid, "description","height of the FLEXPART model levels") 167 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 168 & "height of the FLEXPART model levels") 161 169 ncfunc_retval = nf90_put_att(ncid, varid, "units","m a.g.l") 162 170 … … 170 178 ! Write some of the scalar metadata variables 171 179 ! dx, dy, xlon0, xlat0 are all defined in com_mod 172 ncfunc_retval = nf90_def_var(ncid, 'dx', NF90_ DOUBLE, varid)180 ncfunc_retval = nf90_def_var(ncid, 'dx', NF90_FLOAT, varid) 173 181 ncfunc_retval = nf90_put_var(ncid, varid, dx) 174 182 ! attributes 175 ncfunc_retval = nf90_put_att(ncid, varid, "description","grid distance in x direction") 183 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 184 & "grid distance in x direction") 176 185 ncfunc_retval = nf90_put_att(ncid, varid, "units","degrees") 177 186 178 187 179 ncfunc_retval = nf90_def_var(ncid, 'dy', NF90_ DOUBLE, varid)188 ncfunc_retval = nf90_def_var(ncid, 'dy', NF90_FLOAT, varid) 180 189 ncfunc_retval = nf90_put_var(ncid, varid, dy) 181 190 ! attributes 182 ncfunc_retval = nf90_put_att(ncid, varid, "description","grid distance in y direction") 191 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 192 & "grid distance in y direction") 183 193 ncfunc_retval = nf90_put_att(ncid, varid, "units","degrees") 184 194 185 195 186 ncfunc_retval = nf90_def_var(ncid, 'xlon0', NF90_ DOUBLE, varid)196 ncfunc_retval = nf90_def_var(ncid, 'xlon0', NF90_FLOAT, varid) 187 197 ncfunc_retval = nf90_put_var(ncid, varid, xlon0) 188 198 ! attributes 189 ncfunc_retval = nf90_put_att(ncid, varid, "description","longitude of the lowest left corner") 199 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 200 & "longitude of the lowest left corner") 190 201 ncfunc_retval = nf90_put_att(ncid, varid, "units","degrees") 191 202 192 203 193 ncfunc_retval = nf90_def_var(ncid, 'ylat0', NF90_ DOUBLE, varid)204 ncfunc_retval = nf90_def_var(ncid, 'ylat0', NF90_FLOAT, varid) 194 205 ncfunc_retval = nf90_put_var(ncid, varid, ylat0) 195 206 ! attributes 196 ncfunc_retval = nf90_put_att(ncid, varid, "description","latitude of the lowest left corner") 207 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 208 & "latitude of the lowest left corner") 197 209 ncfunc_retval = nf90_put_att(ncid, varid, "units","degrees") 198 210 … … 298 310 299 311 ! Create the variable in the NetCDF file 300 ncfunc_retval = nf90_def_var(ncid, nc_varname, NF90_ DOUBLE, &312 ncfunc_retval = nf90_def_var(ncid, nc_varname, NF90_FLOAT, & 301 313 & dimids, varid) 302 314 … … 316 328 & uu(0:nx-1, 0:ny-1, 1:nz, 1)) 317 329 ! attributes 318 ncfunc_retval = nf90_put_att(ncid, varid, "description","U component of wind in the X[horizontal] direction") 330 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 331 & "U component of wind in the X[horizontal] direction") 319 332 ncfunc_retval = nf90_put_att(ncid, varid, "units","m s**-1") 320 333 … … 324 337 & vv(0:nx-1, 0:ny-1, 1:nz, 1)) 325 338 ! attributes 326 ncfunc_retval = nf90_put_att(ncid, varid, "description","V component of wind in the Y[horizontal] direction") 339 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 340 & "V component of wind in the Y[horizontal] direction") 327 341 ncfunc_retval = nf90_put_att(ncid, varid, "units","m s**-1") 328 342 … … 332 346 & tt(0:nx-1, 0:ny-1, 1:nz, 1)) 333 347 ! attributes 334 ncfunc_retval = nf90_put_att(ncid, varid, "description","temperature") 348 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 349 & "temperature") 335 350 ncfunc_retval = nf90_put_att(ncid, varid, "units","k") 336 351 … … 339 354 & ww(0:nx-1, 0:ny-1, 1:nz, 1)) 340 355 ! attributes 341 ncfunc_retval = nf90_put_att(ncid, varid, "description","wind component in the Z[vertical] direction") 356 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 357 & "wind component in the Z[vertical] direction") 342 358 ncfunc_retval = nf90_put_att(ncid, varid, "units","m s**-1") 343 359 … … 347 363 & qv(0:nx-1, 0:ny-1, 1:nz, 1)) 348 364 ! attributes 349 ncfunc_retval = nf90_put_att(ncid, varid, "description","specific humidity") 365 ncfunc_retval = nf90_put_att(ncid, varid, "description",& 366 & "specific humidity") 350 367 ncfunc_retval = nf90_put_att(ncid, varid, "units"," ") 351 368
Note: See TracChangeset
for help on using the changeset viewer.