source: LMDZ4/trunk/libf/phylmd/ini_histISCCP.h @ 602

Last change on this file since 602 was 524, checked in by lmdzadmin, 20 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 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 zsto = frequence de stockage des champs
10c zout = frequence d'ecriture des champs
11         zsto = 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/h (48 fois par jour)
18c       zout = dtime
19c
20c ecriture mensuelle
21        zout = dtime * ecrit_mth
22c
23        print*,'ISCCP zout,zsto=',zout,zsto
24c
25c       PRINT*, 'La frequence de sortie ISCCP est de ', ecrit_isccp
26c
27        idayref = day_ref
28        CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
29        write(*,*)'ISCCP ', itau_phy, zjulian
30c
31c
32c definition coordonnees lon,lat en globale
33c
34        CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon)
35        DO i = 1, iim
36          zx_lon(i,1) = rlon(i+1)
37          zx_lon(i,jjmp1) = rlon(i+1)
38        ENDDO
39
40        CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat)
41c
42         CALL histbeg("histISCCP.nc", iim,zx_lon(:,1),jjmp1,zx_lat(1,:),
43     .                 1, iim, 1, jjmp1,
44     .                 itau_phy, zjulian, dtime,
45     .                 nhori, nid_isccp)
46c
47         CALL histvert(nid_isccp, "cldtopres","Cloud Top Pressure","mb",
48     .                 lmaxm1, cldtopres, nvert,'down')
49c
50c variables a ecrire
51c
52         DO k=1, kmaxm1
53          CALL histdef(nid_isccp, "cldISCCP_"//taulev(k),
54     .                "LMDZ ISCCP cld", "%",
55     .                iim, jjmp1,nhori,lmaxm1,1,lmaxm1,nvert,32,
56     .                "ave(X)", zsto,zout)
57         ENDDO
58c
59         CALL histdef(nid_isccp, "nsunlit",
60     .                "Nb of calls with sunlit ", "%",
61     .                iim, jjmp1,nhori,1,1,1,-99,32,
62     .                "ave(X)", zsto,zout)
63c
64        CALL histend(nid_isccp)
65c
66      ENDIF ! ok_isccp
Note: See TracBrowser for help on using the repository browser.