source: LMDZ4/tags/LMDZ4_V2/libf/phylmd/ini_histISCCP.h @ 3302

Last change on this file since 3302 was 741, checked in by (none), 18 years ago

This commit was manufactured by cvs2svn to create tag 'LMDZ4_V2'.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
RevLine 
[524]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
[644]9c zstophy = frequence de stockage des champs tous les pdt physiques
[524]10c zout = frequence d'ecriture des champs
[644]11        zstophy = dtime
[524]12c
[740]13c zout : frequence ecriture
14c
[524]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.
[644]19c ecriture toutes les 1/2 h (48 fois par jour)
[524]20c       zout = dtime
21c
[740]22        zout = ecrit_ISCCP
[524]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
[723]46      IF(type_run.EQ."ENSP".OR.type_run.EQ."CLIM") THEN
[644]47c
[524]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,
[644]54     .                "ave(X)", zstophy,zout)
[524]55         ENDDO
56c
57         CALL histdef(nid_isccp, "nsunlit",
58     .                "Nb of calls with sunlit ", "%",
59     .                iim, jjmp1,nhori,1,1,1,-99,32,
[644]60     .                "ave(X)", zstophy,zout)
[524]61c
[723]62      ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN
[644]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
[723]80      ENDIF
[644]81c
[524]82        CALL histend(nid_isccp)
83c
84      ENDIF ! ok_isccp
Note: See TracBrowser for help on using the repository browser.