4 |
|
|
5 |
contains |
contains |
6 |
|
|
7 |
subroutine regr_pr_av_coefoz(ncid, name, julien, press_in_edg, v3) |
subroutine regr_pr_av_coefoz(ncid, name, julien, v3) |
8 |
|
|
9 |
! "regr_pr_av_coefoz" stands for "regrid pressure averaging |
! "regr_pr_av_coefoz" stands for "regrid pressure averaging |
10 |
! coefficient ozone". |
! coefficient ozone". |
11 |
! This procedure reads a single Mobidic ozone coefficient from |
! This procedure reads a single Mobidic ozone coefficient from |
12 |
!"coefoz_LMDZ.nc", at the current day, regrids this parameter in |
! "coefoz_LMDZ.nc", at the current day, regrids this parameter in |
13 |
! pressure to the LMDZ vertical grid and packs it to the LMDZ |
! pressure to the LMDZ vertical grid and packs it to the LMDZ |
14 |
! horizontal "physics" grid. |
! horizontal "physics" grid. |
15 |
! Regridding in pressure is done by averaging a step function. |
! Regridding in pressure is done by averaging a step function. |
20 |
use netcdf, only: nf90_get_var |
use netcdf, only: nf90_get_var |
21 |
use grid_change, only: dyn_phy |
use grid_change, only: dyn_phy |
22 |
use regr_pr, only: regr_pr_av |
use regr_pr, only: regr_pr_av |
23 |
use nrutil, only: assert |
use numer_rec, only: assert |
24 |
|
use press_coefoz_m, only: press_in_edg |
25 |
|
|
26 |
integer, intent(in):: ncid ! NetCDF ID of the file |
integer, intent(in):: ncid ! NetCDF ID of the file |
27 |
character(len=*), intent(in):: name ! of the NetCDF variable |
character(len=*), intent(in):: name ! of the NetCDF variable |
28 |
integer, intent(in):: julien ! jour julien, 1 <= julien <= 360 |
integer, intent(in):: julien ! jour julien, 1 <= julien <= 360 |
29 |
|
|
|
real, intent(in):: press_in_edg(:) |
|
|
! (edges of pressure intervals for Mobidic data, in Pa, in |
|
|
! strictly increasing order) |
|
|
|
|
30 |
real, intent(out):: v3(:, :) ! (klon, llm) |
real, intent(out):: v3(:, :) ! (klon, llm) |
31 |
! (ozone coefficient from Mobidic on the "physics" grid) |
! (ozone coefficient from Mobidic on the "physics" grid) |
32 |
! ("v3(i, k)" is at longitude "xlon(i)", latitude |
! ("v3(i, k)" is at longitude "xlon(i)", latitude |
68 |
|
|
69 |
!*************************************************************** |
!*************************************************************** |
70 |
|
|
71 |
subroutine regr_pr_int_coefoz(ncid, name, julien, plev, top_value, v3) |
subroutine regr_pr_int_coefoz(ncid, name, julien, top_value, v3) |
72 |
|
|
73 |
! This procedure reads a single Mobidic ozone coefficient from |
! This procedure reads a single Mobidic ozone coefficient from |
74 |
!"coefoz_LMDZ.nc", at the current day, regrids this parameter in |
!"coefoz_LMDZ.nc", at the current day, regrids this parameter in |
82 |
use netcdf, only: nf90_get_var |
use netcdf, only: nf90_get_var |
83 |
use grid_change, only: dyn_phy |
use grid_change, only: dyn_phy |
84 |
use regr_pr, only: regr_pr_int |
use regr_pr, only: regr_pr_int |
85 |
use nrutil, only: assert |
use numer_rec, only: assert |
86 |
|
use press_coefoz_m, only: plev |
87 |
|
|
88 |
integer, intent(in):: ncid ! NetCDF ID of the file |
integer, intent(in):: ncid ! NetCDF ID of the file |
89 |
character(len=*), intent(in):: name ! of the NetCDF variable |
character(len=*), intent(in):: name ! of the NetCDF variable |
90 |
integer, intent(in):: julien ! jour julien, 1 <= julien <= 360 |
integer, intent(in):: julien ! jour julien, 1 <= julien <= 360 |
91 |
|
|
|
real, intent(in):: plev(:) |
|
|
! (pressure levels of Mobidic data, in Pa, in strictly increasing order) |
|
|
|
|
92 |
real, intent(in):: top_value |
real, intent(in):: top_value |
93 |
! (extra value of ozone coefficient at 0 pressure) |
! (extra value of ozone coefficient at 0 pressure) |
94 |
|
|