- Timestamp:
- May 6, 2015, 12:14:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/regr_lat_time_climoz_m.F90
r3819 r3825 73 73 use netcdf, only: nf90_get_att, nf90_get_var, nf90_noerr, nf90_nowrite 74 74 use assert_m, only: assert 75 !use comconst_phy_mod, only : pi 76 !use comgeom2_phy_mod, only : rlatv 77 use comgeomphy, only: rlatv 75 use regular_lonlat_mod, only : boundslat_reg, south 78 76 use nrtype, only: pi 79 77 integer, intent(in):: read_climoz ! read ozone climatology … … 293 291 "Found 12 months in ozone climatologies, assuming periodicity..." 294 292 o3_regr_lat(nbp_lat:1:-1, :, 1:12, :) = regr1_step_av(o3_in, & 295 xs=sin(lat_in_edg), xt=sin((/- pi / 2, rlatv(nbp_lat-1:1:-1), pi / 2/)))293 xs=sin(lat_in_edg), xt=sin((/- pi / 2, boundslat_reg(nbp_lat-1:1:-1,south), pi / 2/))) 296 294 ! (invert order of indices in "o3_regr_lat" because "rlatu" is 297 295 ! in descending order) … … 304 302 print *, "Using 14 months in ozone climatologies..." 305 303 o3_regr_lat(nbp_lat:1:-1, :, :, :) = regr1_step_av(o3_in, & 306 xs=sin(lat_in_edg), xt=sin((/- pi / 2, rlatv(nbp_lat-1:1:-1), pi / 2/)))304 xs=sin(lat_in_edg), xt=sin((/- pi / 2, boundslat_reg(nbp_lat-1:1:-1,south), pi / 2/))) 307 305 ! (invert order of indices in "o3_regr_lat" because "rlatu" is 308 306 ! in descending order) … … 334 332 nf95_put_att, nf95_enddef, nf95_copy_att, nf95_put_var 335 333 use netcdf, only: nf90_clobber, nf90_float, nf90_global 336 !use comconst_phy_mod, only : pi337 !use comgeom2_phy_mod, only : rlatu338 334 use nrtype, only: pi 339 use comgeomphy, only: rlatu335 use regular_lonlat_mod, only : lat_reg 340 336 integer, intent(in):: ncid_in, n_plev 341 337 integer, intent(out):: ncid_out, varid_plev, varid_time … … 421 417 422 418 ! Write one of the coordinate variables: 423 call nf95_put_var(ncid_out, varid_rlatu, rlatu(nbp_lat:1:-1) / pi * 180.)419 call nf95_put_var(ncid_out, varid_rlatu, lat_reg(nbp_lat:1:-1) / pi * 180.) 424 420 ! (convert from rad to degrees and sort in ascending order) 425 421
Note: See TracChangeset
for help on using the changeset viewer.