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