[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | IF (ok_isccp) THEN |
---|
| 5 | c |
---|
| 6 | c pour les champs instantannes, il faut mettre la meme valeur pour |
---|
| 7 | c zout et zsto. |
---|
| 8 | c dtime est passe par ailleurs a histbeg |
---|
[644] | 9 | c zstophy = frequence de stockage des champs tous les pdt physiques |
---|
[524] | 10 | c zout = frequence d'ecriture des champs |
---|
[644] | 11 | zstophy = dtime |
---|
[524] | 12 | c |
---|
| 13 | c ecriture 8 fois par jour |
---|
| 14 | c zout = dtime * REAL(NINT(86400./dtime*ecrit_isccp)) |
---|
| 15 | c ecriture toutes les 2h (12 fois par jour) |
---|
| 16 | c zout = dtime * 4. |
---|
[644] | 17 | c ecriture toutes les 1/2 h (48 fois par jour) |
---|
[524] | 18 | c zout = dtime |
---|
| 19 | c |
---|
| 20 | c ecriture mensuelle |
---|
| 21 | zout = dtime * ecrit_mth |
---|
[644] | 22 | c zout = dtime * ecrit_day |
---|
[524] | 23 | c |
---|
| 24 | c PRINT*, 'La frequence de sortie ISCCP est de ', ecrit_isccp |
---|
| 25 | c |
---|
| 26 | idayref = day_ref |
---|
| 27 | CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) |
---|
| 28 | write(*,*)'ISCCP ', itau_phy, zjulian |
---|
| 29 | c |
---|
| 30 | c |
---|
| 31 | c definition coordonnees lon,lat en globale |
---|
| 32 | c |
---|
| 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) |
---|
| 40 | c |
---|
| 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) |
---|
| 45 | c |
---|
| 46 | CALL histvert(nid_isccp, "cldtopres","Cloud Top Pressure","mb", |
---|
| 47 | . lmaxm1, cldtopres, nvert,'down') |
---|
| 48 | c |
---|
[644] | 49 | IF(type_run.EQ."ENSP".OR.type_run.EQ."CLIM") THEN |
---|
| 50 | c |
---|
[524] | 51 | c variables a ecrire |
---|
| 52 | c |
---|
| 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, |
---|
[644] | 57 | . "ave(X)", zstophy,zout) |
---|
[524] | 58 | ENDDO |
---|
| 59 | c |
---|
| 60 | CALL histdef(nid_isccp, "nsunlit", |
---|
| 61 | . "Nb of calls with sunlit ", "%", |
---|
| 62 | . iim, jjmp1,nhori,1,1,1,-99,32, |
---|
[644] | 63 | . "ave(X)", zstophy,zout) |
---|
[524] | 64 | c |
---|
[644] | 65 | ELSE IF(type_run.EQ."AMIP".OR.type_run.EQ."CFMI") THEN |
---|
| 66 | c |
---|
| 67 | DO k=1, kmaxm1 |
---|
| 68 | DO l=1, lmaxm1 |
---|
| 69 | c |
---|
| 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) |
---|
| 74 | c |
---|
| 75 | ENDDO |
---|
| 76 | ENDDO |
---|
| 77 | c |
---|
| 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) |
---|
| 82 | c |
---|
| 83 | ENDIF |
---|
| 84 | c |
---|
[524] | 85 | CALL histend(nid_isccp) |
---|
| 86 | c |
---|
| 87 | ENDIF ! ok_isccp |
---|