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

Last change on this file since 723 was 723, checked in by lmdzadmin, 18 years ago

On passe a des ecrit_ins, ecrit_day, etc en nombre de jours (REAL)
On lit frequence ecriture traceurs ecrit_trac dans physiq.def
Correction petits pbs ini_histrac.h
IM

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