source: LMDZ4/branches/LMDZ4_V2_patch/libf/phylmd/ini_histISCCP.h @ 740

Last change on this file since 740 was 740, checked in by lmdzadmin, 17 years ago

Correction bogues: les ecrit_ sont des REALs lus dans conf_phys.F90 en
nombre de jours sauf pour ecrit_ins et ecrit_tra en secondes!
Les ecrit_ sont initialises dans conf_phys.F90 et peuvent etre modifies dans
physiq.def.
IM

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1!
2! $Header$
3!
4      IF (ok_isccp) THEN
5c
6c pour les champs instantannes, il faut mettre la meme valeur pour
7c zout et zsto.
8c dtime est passe par ailleurs a histbeg
9c zstophy = frequence de stockage des champs tous les pdt physiques
10c zout = frequence d'ecriture des champs
11        zstophy = dtime
12c
13c zout : frequence ecriture
14c
15c ecriture 8 fois par jour
16c       zout = dtime * REAL(NINT(86400./dtime*ecrit_isccp))
17c ecriture toutes les 2h (12 fois par jour)
18c       zout = dtime * 4.
19c ecriture toutes les 1/2 h (48 fois par jour)
20c       zout = dtime
21c
22        zout = ecrit_ISCCP
23c
24        idayref = day_ref
25        CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
26        write(*,*)'ISCCP ', itau_phy, zjulian
27c
28c definition coordonnees lon,lat en globale
29c
30        CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon)
31        DO i = 1, iim
32          zx_lon(i,1) = rlon(i+1)
33          zx_lon(i,jjmp1) = rlon(i+1)
34        ENDDO
35
36        CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat)
37c
38         CALL histbeg("histISCCP.nc", iim,zx_lon(:,1),jjmp1,zx_lat(1,:),
39     .                 1, iim, 1, jjmp1,
40     .                 itau_phy, zjulian, dtime,
41     .                 nhori, nid_isccp)
42c
43         CALL histvert(nid_isccp, "cldtopres","Cloud Top Pressure","mb",
44     .                 lmaxm1, cldtopres, nvert,'down')
45c
46      IF(type_run.EQ."ENSP".OR.type_run.EQ."CLIM") THEN
47c
48c variables a ecrire
49c
50         DO k=1, kmaxm1
51          CALL histdef(nid_isccp, "cldISCCP_"//taulev(k),
52     .                "LMDZ ISCCP cld", "%",
53     .                iim, jjmp1,nhori,lmaxm1,1,lmaxm1,nvert,32,
54     .                "ave(X)", zstophy,zout)
55         ENDDO
56c
57         CALL histdef(nid_isccp, "nsunlit",
58     .                "Nb of calls with sunlit ", "%",
59     .                iim, jjmp1,nhori,1,1,1,-99,32,
60     .                "ave(X)", zstophy,zout)
61c
62      ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN
63c
64         DO k=1, kmaxm1
65          DO l=1, lmaxm1
66c
67          CALL histdef(nid_isccp, pclev(l)//taulev(k),
68     .                "LMDZ ISCCP cld "//cnameisccp(l,k), "%",
69     .                iim, jjmp1,nhori,1,1,1,-99,32,
70     .                "ave(X)", zstophy,zout)
71c
72          ENDDO
73         ENDDO
74c
75         CALL histdef(nid_isccp, "nsunlit",
76     .                "Nb of calls with sunlit ", "%",
77     .                iim, jjmp1,nhori,1,1,1,-99,32,
78     .                "ave(X)", zstophy,zout)
79c
80      ENDIF
81c
82        CALL histend(nid_isccp)
83c
84      ENDIF ! ok_isccp
Note: See TracBrowser for help on using the repository browser.