- Timestamp:
- Mar 30, 2017, 4:16:38 PM (8 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2786,2788-2790,2792-2814,2816-2838
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/phylmd/regr_lat_time_coefoz_m.F90
r2471 r2839 41 41 42 42 use mod_grid_phy_lmdz, ONLY : nbp_lat 43 use regr 1_conserv_m, only: regr1_conserv44 use regr 3_lint_m, only: regr3_lint43 use regr_conserv_m, only: regr_conserv 44 use regr_lint_m, only: regr_lint 45 45 use netcdf95, only: nf95_open, nf95_close, nf95_inq_varid, handle_err, & 46 46 nf95_put_var, nf95_gw_var … … 84 84 ! Last dimension is month number.) 85 85 86 real, allocatable:: o3_par_out(:, :, :) ! (jjm + 1, n_plev, 360)86 real, allocatable:: o3_par_out(:, :, :) ! (jjm + 1, n_plev, ndays) 87 87 ! (regridded ozone parameter) 88 88 ! ("o3_par_out(j, l, day)" is at latitude "rlatu(j)", pressure … … 162 162 latitude = latitude / 180. * pi 163 163 n_lat = size(latitude) 164 ! We need to supply the latitudes to "regr 1_conserv" in164 ! We need to supply the latitudes to "regr_conserv" in 165 165 ! ascending order, so invert order if necessary: 166 166 desc_lat = latitude(1) > latitude(n_lat) … … 209 209 ! We average with respect to sine of latitude, which is 210 210 ! equivalent to weighting by cosine of latitude: 211 call regr 1_conserv(o3_par_in, xs = sin(lat_in_edg), &211 call regr_conserv(1, o3_par_in, xs = sin(lat_in_edg), & 212 212 xt = (/-1., sin((/boundslat_reg(nbp_lat-1:1:-1,south)/)), 1./), & 213 213 vt = v_regr_lat(nbp_lat:1:-1, :, 1:12)) … … 221 221 222 222 ! Regrid in time by linear interpolation: 223 o3_par_out = regr3_lint(v_regr_lat, tmidmonth, tmidday)223 call regr_lint(3, v_regr_lat, tmidmonth, tmidday, o3_par_out) 224 224 225 225 ! Write to file:
Note: See TracChangeset
for help on using the changeset viewer.