source: LMDZ4/trunk/libf/phylmd/ini_histmthNMC.h @ 1361

Last change on this file since 1361 was 1352, checked in by musat, 14 years ago

Add 3 output files for standard pressure levels AR5 exercice and flags
to manage their computation and output frequencies
histhfNMC.nc with 3 standard pressure levels
histdayNMC.nc with 8 (or may have 17) standard pressure levels
histmthNMC.nc with 17 standard pressure levels
Add 3 flags in the physiq.def file: freq_calNMC(3), freq_outNMC(3) and lev_histdayNMC
freq_calNMC(3) : computation frequency of variables on standard pressure levels

and by default has fallowing values (in fact physics' time step dtime)

freq_calNMC(1)=900.
freq_calNMC(2)=900.
freq_calNMC(3)=900.
freq_outNMC(3) : output frequency of variables on standard pressure levels

with following default values

freq_out(1) = 2592000. (30 days)
freq_out(2) = 86400. (1 day)
freq_out(3) = 21600. (6 hours)
lev_histdayNMC is 8 by default but may be switched to 17 (if we need more levels for a particular run)
IM

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
RevLine 
[524]1!
2! $Header$
3!
[766]4c$OMP MASTER
[1352]5       zout = freq_outNMC(1)
[524]6c
[1352]7       idayref = day_ref
8       CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
[524]9c
[766]10cym         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon)
11cym         DO i = 1, iim
12cym            zx_lon(i,1) = rlon(i+1)
13cym            zx_lon(i,jjmp1) = rlon(i+1)
14cym         ENDDO
[524]15         DO ll=1,klev
16            znivsig(ll)=float(ll)
17         ENDDO
[766]18cym         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat)
19cym         CALL histbeg("histNMC.nc", iim,zx_lon(:,1), jjmp1,zx_lat(1,:),
20cym     .                 1,iim,1,jjmp1, itau_phy, zjulian, dtime, 
[1352]21cym     .                 nhori, nid_mthnmc)
[766]22
[1352]23         CALL histbeg_phy("histmthNMC",itau_phy, zjulian, dtime, 
24     .                 nhori, nid_mthnmc)
[644]25c
[1352]26         CALL histvert(nid_mthnmc, "plev", "pressure", "Pa",
27     .                 nlevSTD, rlevSTD, nvert)
[644]28ccc
29ccc Champs 3D interpolles sur des niveaux de pression du NMC
30ccc
[524]31c
[644]32c ATTENTION : pour AMIP2 on interpole t,u,v,wphi,q,rh
33c             sur les niveaux du NMC et on somme & moyenne
[1352]34c             toutes les freq_moyNMC secondes par des routines undefSTD et
[644]35c             moy_undefSTD pour eliminer les valeurs "undef"
36c             de la moyenne mensuelle
37c ======> le "inst(X)" ci-dessous est par consequence factice !
[524]38c
[1352]39c
40          CALL histdef(nid_mthnmc, "tnondef",
41     .                 "Valeurs non-definies","-",
[776]42     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]43     .                "inst(X)", zout,zout)
[524]44c
[1352]45          CALL histdef(nid_mthnmc, "ta",
46     .                 "Air temperature","K",
[776]47     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]48     .                "inst(X)", zout,zout)
[524]49c
[1352]50         CALL histdef(nid_mthnmc, "zg",
51     .                "Geopotential height", "m",
[776]52     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]53     .                "inst(X)", zout,zout)
54c
[1352]55          CALL histdef(nid_mthnmc, "hus",
56     .                 "Specific humidity","1",
57     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
58     .                "inst(X)", zout,zout)
59c
60         CALL histdef(nid_mthnmc, "hur",
[644]61     .                 "Relative humidity", "%",
[776]62     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]63     .                "inst(X)", zout,zout)
64c
[1352]65          CALL histdef(nid_mthnmc, "ua",
66     .                 "Eastward wind","m s-1",
[776]67     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]68     .                "inst(X)", zout,zout)
69c
[1352]70          CALL histdef(nid_mthnmc, "va",
71     .                 "Northward wind","m s-1",
[776]72     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]73     .                "inst(X)", zout,zout)
74c
[1352]75          CALL histdef(nid_mthnmc, "wap",
76     .                 "Lagrangian tendency of air pressure","Pa s-1",
[776]77     .                iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]78     .                "inst(X)", zout,zout)
79c
[1352]80          CALL histdef(nid_mthnmc, "psbg",
[644]81     .         "Pressure sfce below ground","%",
[776]82     .         iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]83     .         "inst(X)", zout,zout)
84c
[1352]85          CALL histdef(nid_mthnmc, "uv",
[644]86     .         "uv ",
[776]87     .         "m2/s2",iim,jj_nb,nhori, nlevSTD,1,nlevSTD, nvert, 32,
[644]88     .         "inst(X)", zout,zout)
89c
[1352]90          CALL histdef(nid_mthnmc, "vq",
[644]91     .         "vq ",
[776]92     .         "m/s * (kg/kg)",iim,jj_nb,nhori, 
[644]93     .          nlevSTD,1,nlevSTD, nvert, 32,
94     .         "inst(X)", zout,zout)
95c
[1352]96          CALL histdef(nid_mthnmc, "vT",
[644]97     .         "vT ", 
[776]98     .         "mK/s",iim,jj_nb,nhori, 
[644]99     .          nlevSTD,1,nlevSTD, nvert, 32,
100     .         "inst(X)", zout,zout)
101c
[1352]102          CALL histdef(nid_mthnmc, "wq",
[644]103     .         "wq ", 
[776]104     .         "(Pa/s)*(kg/kg)",iim,jj_nb,nhori,
[644]105     .          nlevSTD,1,nlevSTD, nvert, 32,
106     .         "inst(X)", zout,zout)
107c
[1352]108          CALL histdef(nid_mthnmc, "vphi",
[644]109     .         "vphi ", 
[776]110     .         "m2/s",iim,jj_nb,nhori, 
[644]111     .          nlevSTD,1,nlevSTD, nvert, 32,
112     .         "inst(X)", zout,zout)
113c
[1352]114          CALL histdef(nid_mthnmc, "wT",
[644]115     .         "wT ", 
[776]116     .         "K*Pa/s",iim,jj_nb,nhori,
[644]117     .          nlevSTD,1,nlevSTD, nvert, 32,
118     .         "inst(X)", zout,zout)
119c
[1352]120          CALL histdef(nid_mthnmc, "uxu",
[644]121     .         "u2 ", 
[776]122     .         "m2/s2",iim,jj_nb,nhori,
[644]123     .          nlevSTD,1,nlevSTD, nvert, 32,
124     .         "inst(X)", zout,zout)
125c
[1352]126          CALL histdef(nid_mthnmc, "vxv",
[644]127     .         "v2 ", 
[776]128     .         "m2/s2",iim,jj_nb,nhori,
[644]129     .          nlevSTD,1,nlevSTD, nvert, 32,
130     .         "inst(X)", zout,zout)
131c
[1352]132          CALL histdef(nid_mthnmc, "TxT",
[644]133     .         "T2 ", 
[776]134     .         "K2",iim,jj_nb,nhori,
[644]135     .          nlevSTD,1,nlevSTD, nvert, 32,
136     .         "inst(X)", zout,zout)
137c
[524]138
[1352]139         CALL histend(nid_mthnmc)
[524]140c
[766]141c$OMP END MASTER
Note: See TracBrowser for help on using the repository browser.