[3] | 1 | IF (ok_instan) THEN |
---|
| 2 | c |
---|
| 3 | zsto1= dtime |
---|
| 4 | zsto = dtime * FLOAT(ecrit_ins) |
---|
| 5 | zout = dtime * FLOAT(ecrit_ins) |
---|
| 6 | c |
---|
| 7 | idayref = day_ref |
---|
[97] | 8 | CALL ymds2ju(annee_ref, 1, idayref, zero, zjulian) |
---|
[3] | 9 | c |
---|
| 10 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlond,zx_lon) |
---|
| 11 | DO i = 1, iim |
---|
| 12 | zx_lon(i,1) = rlond(i+1) |
---|
| 13 | zx_lon(i,jjmp1) = rlond(i+1) |
---|
| 14 | ENDDO |
---|
| 15 | CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlatd,zx_lat) |
---|
[97] | 16 | CALL histbeg("histins", iim,zx_lon(:,1), jjmp1,zx_lat(1,:), |
---|
| 17 | . 1,iim,1,jjmp1, itau_phy, zjulian, zsto1, |
---|
[3] | 18 | . nhori, nid_ins) |
---|
| 19 | write(*,*)'Inst ', itau_phy, zjulian |
---|
| 20 | CALL histvert(nid_ins, "presnivs", "Vertical levels", "mb", |
---|
[97] | 21 | . klev, presnivs, nvert) |
---|
[3] | 22 | |
---|
| 23 | c------------------------------------------------------- |
---|
| 24 | |
---|
| 25 | IF(lev_histday.GE.1) THEN |
---|
| 26 | c |
---|
| 27 | ccccccccccccc 2D fields, invariables |
---|
| 28 | c |
---|
| 29 | CALL histdef(nid_ins, "phis", "Surface geop. height", "-", |
---|
| 30 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 31 | . "once", zsto,zout) |
---|
| 32 | c |
---|
| 33 | CALL histdef(nid_ins, "aire", "Grid area", "-", |
---|
| 34 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 35 | . "once", zsto,zout) |
---|
| 36 | c |
---|
| 37 | ccccccc axe Ls |
---|
| 38 | CALL histdef(nid_ins, "ls", "Solar longitude", "degrees", |
---|
| 39 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 40 | . "inst(X)", zsto,zout) |
---|
| 41 | c |
---|
| 42 | ccccccccccccc 2D fields, variables |
---|
| 43 | c |
---|
| 44 | CALL histdef(nid_ins, "tsol", "Surface Temperature", "K", |
---|
| 45 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 46 | . "inst(X)", zsto,zout) |
---|
| 47 | c |
---|
| 48 | CALL histdef(nid_ins, "psol", "Surface Pressure", "Pa", |
---|
| 49 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 50 | . "inst(X)", zsto,zout) |
---|
| 51 | c |
---|
| 52 | c CALL histdef(nid_ins, "ue", "Zonal energy transport", "-", |
---|
| 53 | c . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 54 | c . "inst(X)", zsto,zout) |
---|
| 55 | c |
---|
| 56 | c CALL histdef(nid_ins, "ve", "Merid energy transport", "-", |
---|
| 57 | c . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 58 | c . "inst(X)", zsto,zout) |
---|
| 59 | c |
---|
| 60 | ENDIF !lev_histday.GE.1 |
---|
| 61 | c |
---|
| 62 | c------------------------------------------------------- |
---|
| 63 | IF(lev_histday.GE.2) THEN |
---|
| 64 | c |
---|
| 65 | ccccccccccccc 3D fields, basics |
---|
| 66 | c |
---|
| 67 | CALL histdef(nid_ins, "temp", "Air temperature", "K", |
---|
| 68 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 69 | . "inst(X)", zsto,zout) |
---|
| 70 | c |
---|
| 71 | CALL histdef(nid_ins, "pres", "Air pressure", "Pa", |
---|
| 72 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 73 | . "inst(X)", zsto,zout) |
---|
| 74 | c |
---|
| 75 | CALL histdef(nid_ins, "geop", "Geopotential height", "m", |
---|
| 76 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 77 | . "inst(X)", zsto,zout) |
---|
| 78 | c |
---|
| 79 | CALL histdef(nid_ins, "vitu", "Zonal wind", "m/s", |
---|
| 80 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 81 | . "inst(X)", zsto,zout) |
---|
| 82 | c |
---|
| 83 | CALL histdef(nid_ins, "vitv", "Meridional wind", "m/s", |
---|
| 84 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 85 | . "inst(X)", zsto,zout) |
---|
| 86 | c |
---|
| 87 | CALL histdef(nid_ins, "vitw", "Vertical wind", "Pa/s", |
---|
| 88 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 89 | . "inst(X)", zsto,zout) |
---|
| 90 | c |
---|
| 91 | CALL histdef(nid_ins, "tops", "Solar rad. at TOA", "W/m2", |
---|
| 92 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 93 | . "inst(X)", zsto,zout) |
---|
| 94 | c |
---|
[106] | 95 | c CALL histdef(nid_ins, "duvdf", "Boundary-layer dU", "m/s2", |
---|
| 96 | c . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 97 | c . "inst(X)", zsto,zout) |
---|
[3] | 98 | c |
---|
[106] | 99 | c CALL histdef(nid_ins, "dudyn", "Dynamics dU", "m/s2", |
---|
| 100 | c . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 101 | c . "inst(X)", zsto,zout) |
---|
[3] | 102 | c |
---|
| 103 | ENDIF !lev_histday.GE.2 |
---|
| 104 | c |
---|
| 105 | c------------------------------------------------------- |
---|
| 106 | IF(lev_histday.GE.3) THEN |
---|
| 107 | c |
---|
| 108 | cccccccccccccccccc Tracers |
---|
| 109 | c |
---|
| 110 | if (iflag_trac.eq.1) THEN |
---|
[175] | 111 | if (microfi.ge.1) then |
---|
[3] | 112 | DO iq=1,nmicro |
---|
| 113 | CALL histdef(nid_ins, tname(iq), ttext(iq), "n/m2", |
---|
| 114 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
[175] | 115 | . "inst(X)", zsto,zout) |
---|
[3] | 116 | ENDDO |
---|
| 117 | endif |
---|
| 118 | if (nmicro.lt.nqmax) then |
---|
| 119 | DO iq=nmicro+1,nqmax |
---|
| 120 | CALL histdef(nid_ins, tname(iq), ttext(iq), "ppm", |
---|
| 121 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
[175] | 122 | . "inst(X)", zsto,zout) |
---|
[3] | 123 | ENDDO |
---|
| 124 | endif |
---|
| 125 | endif |
---|
| 126 | c |
---|
| 127 | cccccccccccccccccc Radiative transfer |
---|
| 128 | c |
---|
| 129 | c 2D |
---|
| 130 | c |
---|
| 131 | CALL histdef(nid_ins, "topl", "IR rad. at TOA", "W/m2", |
---|
| 132 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 133 | . "inst(X)", zsto,zout) |
---|
| 134 | c |
---|
| 135 | CALL histdef(nid_ins, "sols", "Solar rad. at surf.", "W/m2", |
---|
| 136 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 137 | . "inst(X)", zsto,zout) |
---|
| 138 | c |
---|
| 139 | CALL histdef(nid_ins, "soll", "IR rad. at surface", "W/m2", |
---|
| 140 | . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 141 | . "inst(X)", zsto,zout) |
---|
| 142 | c |
---|
| 143 | c 3D |
---|
| 144 | c |
---|
| 145 | CALL histdef(nid_ins, "SWnet", "Net SW flux","W/m2", |
---|
| 146 | . iim,jjmp1,nhori, klev,1,klev,nvert, |
---|
| 147 | . 32, "inst(X)", zsto,zout) |
---|
| 148 | c |
---|
| 149 | CALL histdef(nid_ins, "LWnet", "Net LW flux","W/m2", |
---|
| 150 | . iim,jjmp1,nhori, klev,1,klev,nvert, |
---|
| 151 | . 32, "inst(X)", zsto,zout) |
---|
| 152 | c |
---|
[175] | 153 | c -------------- |
---|
| 154 | c ----- OPACITE BRUME |
---|
[106] | 155 | DO k=7,NSPECV,10 |
---|
| 156 | write(str1,'(i2.2)') k |
---|
| 157 | CALL histdef(nid_ins,"thv"//str1,"Haze Opa Vis", |
---|
| 158 | . "--",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 159 | . "ins(X)",zsto,zout) |
---|
[106] | 160 | ENDDO |
---|
| 161 | c |
---|
[175] | 162 | DO k=8,NSPECI,10 |
---|
[106] | 163 | write(str1,'(i2.2)') k |
---|
[175] | 164 | CALL histdef(nid_ins,"thi"//str1,"Haze Opa IR", |
---|
| 165 | . "--",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 166 | . "ins(X)",zsto,zout) |
---|
[106] | 167 | ENDDO |
---|
| 168 | c |
---|
[175] | 169 | c -------------- |
---|
| 170 | c ----- EXTINCTION BRUME |
---|
[106] | 171 | DO k=7,NSPECV,10 |
---|
| 172 | write(str1,'(i2.2)') k |
---|
[175] | 173 | CALL histdef(nid_ins,"khv"//str1,"Haze ext Vis ", |
---|
| 174 | . "m-1",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 175 | . "ins(X)",zsto,zout) |
---|
[106] | 176 | ENDDO |
---|
| 177 | c |
---|
[175] | 178 | DO k=8,NSPECI,10 |
---|
[106] | 179 | write(str1,'(i2.2)') k |
---|
[175] | 180 | CALL histdef(nid_ins,"khi"//str1,"Haze ext IR ", |
---|
[106] | 181 | . "m-1",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 182 | . "ins(X)",zsto,zout) |
---|
[106] | 183 | ENDDO |
---|
| 184 | c |
---|
[175] | 185 | c -------------- |
---|
| 186 | c ----- OPACITE GAZ |
---|
| 187 | DO k=7,NSPECV,10 |
---|
[106] | 188 | write(str1,'(i2.2)') k |
---|
[175] | 189 | CALL histdef(nid_ins,"tgv"//str1,"Haze Opa Vis", |
---|
[106] | 190 | . "--",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 191 | . "ins(X)",zsto,zout) |
---|
[106] | 192 | ENDDO |
---|
| 193 | c |
---|
| 194 | DO k=8,NSPECI,10 |
---|
| 195 | write(str1,'(i2.2)') k |
---|
[175] | 196 | CALL histdef(nid_ins,"tgi"//str1,"Haze Opa IR", |
---|
| 197 | . "--",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 198 | . "ins(X)",zsto,zout) |
---|
[106] | 199 | ENDDO |
---|
| 200 | c |
---|
[175] | 201 | c -------------- |
---|
| 202 | c ----- EXTINCTION GAZ |
---|
| 203 | DO k=7,NSPECV,10 |
---|
[106] | 204 | write(str1,'(i2.2)') k |
---|
[175] | 205 | CALL histdef(nid_ins,"kgv"//str1,"Haze ext Vis ", |
---|
| 206 | . "m-1",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 207 | . "ins(X)",zsto,zout) |
---|
[106] | 208 | ENDDO |
---|
| 209 | c |
---|
| 210 | DO k=8,NSPECI,10 |
---|
| 211 | write(str1,'(i2.2)') k |
---|
| 212 | CALL histdef(nid_ins,"kgi"//str1,"Haze ext IR ", |
---|
| 213 | . "m-1",iim,jjmp1,nhori,klev,1,klev,nvert,32, |
---|
[107] | 214 | . "ins(X)",zsto,zout) |
---|
[106] | 215 | ENDDO |
---|
| 216 | c |
---|
[3] | 217 | ENDIF !lev_histday.GE.3 |
---|
| 218 | c |
---|
| 219 | c------------------------------------------------------- |
---|
| 220 | IF(lev_histday.GE.4) THEN |
---|
| 221 | c |
---|
| 222 | CALL histdef(nid_ins, "dtdyn", "Dynamics dT", "K/s", |
---|
| 223 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 224 | . "inst(X)", zsto,zout) |
---|
| 225 | c |
---|
| 226 | CALL histdef(nid_ins, "dtphy", "Physics dT", "K/s", |
---|
| 227 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 228 | . "inst(X)", zsto,zout) |
---|
| 229 | c |
---|
| 230 | CALL histdef(nid_ins, "dtvdf", "Boundary-layer dT", "K/s", |
---|
| 231 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 232 | . "inst(X)", zsto,zout) |
---|
| 233 | c |
---|
| 234 | CALL histdef(nid_ins, "dtajs", "Dry adjust. dT", "K/s", |
---|
| 235 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 236 | . "inst(X)", zsto,zout) |
---|
| 237 | c |
---|
| 238 | CALL histdef(nid_ins, "dtswr", "SW radiation dT", "K/s", |
---|
| 239 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 240 | . "inst(X)", zsto,zout) |
---|
| 241 | c |
---|
| 242 | CALL histdef(nid_ins, "dtlwr", "LW radiation dT", "K/s", |
---|
| 243 | . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 244 | . "inst(X)", zsto,zout) |
---|
| 245 | c |
---|
[106] | 246 | c CALL histdef(nid_ins, "dtec", "Cinetic dissip dT", "K/s", |
---|
| 247 | c . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 248 | c . "inst(X)", zsto,zout) |
---|
[3] | 249 | c |
---|
| 250 | c CALL histdef(nid_ins, "dvvdf", "Boundary-layer dV", "m/s2", |
---|
| 251 | c . iim,jjmp1,nhori, klev,1,klev,nvert, 32, |
---|
| 252 | c . "inst(X)", zsto,zout) |
---|
| 253 | c |
---|
| 254 | ENDIF !lev_histday.GE.4 |
---|
| 255 | c |
---|
| 256 | c------------------------------------------------------- |
---|
| 257 | IF(lev_histday.GE.5) THEN |
---|
| 258 | c |
---|
| 259 | c |
---|
| 260 | c call histdef(nid_ins, "taux", |
---|
| 261 | c $ "Zonal wind stress", "Pa", |
---|
| 262 | c $ iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 263 | c $ "inst(X)", zsto,zout) |
---|
| 264 | c |
---|
| 265 | c call histdef(nid_ins, "tauy", |
---|
| 266 | c $ "Meridional xind stress", "Pa", |
---|
| 267 | c $ iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 268 | c $ "inst(X)", zsto,zout) |
---|
| 269 | c |
---|
| 270 | c CALL histdef(nid_ins, "cdrm", "Momentum drag coef.", "-", |
---|
| 271 | c . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 272 | c . "inst(X)", zsto,zout) |
---|
| 273 | c |
---|
| 274 | c CALL histdef(nid_ins, "cdrh", "Heat drag coef.", "-", |
---|
| 275 | c . iim,jjmp1,nhori, 1,1,1, -99, 32, |
---|
| 276 | c . "inst(X)", zsto,zout) |
---|
| 277 | c |
---|
| 278 | ENDIF !lev_histday.GE.5 |
---|
| 279 | c------------------------------------------------------- |
---|
| 280 | |
---|
| 281 | CALL histend(nid_ins) |
---|
| 282 | c |
---|
| 283 | ndex2d = 0 |
---|
| 284 | ndex3d = 0 |
---|
| 285 | c |
---|
| 286 | ENDIF |
---|