[3] | 1 | ! |
---|
| 2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/phytrac.F,v 1.16 2006/03/24 15:06:23 lmdzadmin Exp $ |
---|
| 3 | ! |
---|
| 4 | c |
---|
| 5 | c |
---|
| 6 | SUBROUTINE phytrac (nstep, |
---|
| 7 | I gmtime, |
---|
| 8 | I debutphy, |
---|
| 9 | I lafin, |
---|
| 10 | I nqmax, |
---|
| 11 | I nlon, |
---|
| 12 | I nlev, |
---|
| 13 | I pdtphys, |
---|
| 14 | I u, |
---|
| 15 | I v, |
---|
| 16 | I t_seri, |
---|
| 17 | I paprs, |
---|
| 18 | I pplay, |
---|
| 19 | I xlat, |
---|
| 20 | I xlon, |
---|
| 21 | I presnivs, |
---|
| 22 | I pphis, |
---|
| 23 | I pphi, |
---|
| 24 | I albsol, |
---|
| 25 | O tr_seri) |
---|
| 26 | |
---|
| 27 | USE ioipsl |
---|
| 28 | |
---|
| 29 | IMPLICIT none |
---|
| 30 | c====================================================================== |
---|
| 31 | c Auteur(s) FH |
---|
| 32 | c Objet: Moniteur general des tendances traceurs |
---|
| 33 | c |
---|
| 34 | cAA Remarques en vrac: |
---|
| 35 | cAA-------------------- |
---|
| 36 | cAA 1/ le call phytrac se fait avec nqmax |
---|
| 37 | c====================================================================== |
---|
| 38 | #include "YOMCST.h" |
---|
| 39 | #include "dimensions.h" |
---|
| 40 | #include "dimphy.h" |
---|
| 41 | #include "clesphys.h" !///utile? |
---|
| 42 | #include "temps.h" |
---|
| 43 | #include "paramet.h" |
---|
| 44 | #include "control.h" |
---|
| 45 | #include "comgeomphy.h" |
---|
| 46 | #include "advtrac.h" |
---|
| 47 | c====================================================================== |
---|
| 48 | |
---|
| 49 | c Arguments: |
---|
| 50 | c |
---|
| 51 | c EN ENTREE: |
---|
| 52 | c ========== |
---|
| 53 | c |
---|
| 54 | c divers: |
---|
| 55 | c ------- |
---|
| 56 | c |
---|
| 57 | integer nlon ! nombre de points horizontaux |
---|
| 58 | integer nlev ! nombre de couches verticales |
---|
| 59 | integer nqmax ! nombre de traceurs auxquels on applique la physique |
---|
| 60 | integer nstep ! appel physique |
---|
| 61 | integer nseuil ! numero du premier traceur non CV |
---|
| 62 | c integer julien !jour julien |
---|
| 63 | c integer itop_con(nlon) |
---|
| 64 | c integer ibas_con(nlon) |
---|
| 65 | real gmtime |
---|
| 66 | real pdtphys ! pas d'integration pour la physique (seconde) |
---|
| 67 | real t_seri(nlon,nlev) ! temperature |
---|
| 68 | real tr_seri(nlon,nlev,nqmax) ! traceur |
---|
| 69 | real u(nlon,nlev) |
---|
| 70 | real v(nlon,nlev) |
---|
| 71 | real albsol(nlon) ! albedo surface |
---|
| 72 | real paprs(nlon,nlev+1) ! pression pour chaque inter-couche (en Pa) |
---|
| 73 | real ps(nlon) ! pression surface |
---|
| 74 | real pplay(nlon,nlev) ! pression pour le mileu de chaque couche (en Pa) |
---|
| 75 | real pphi(nlon,nlev) ! geopotentiel |
---|
| 76 | real pphis(nlon) |
---|
| 77 | REAL xlat(nlon) ! latitudes pour chaque point |
---|
| 78 | REAL xlon(nlon) ! longitudes pour chaque point |
---|
| 79 | REAL presnivs(nlev) |
---|
| 80 | logical debutphy ! le flag de l'initialisation de la physique |
---|
| 81 | logical lafin ! le flag de la fin de la physique |
---|
| 82 | c REAL flxmass_w(nlon,nlev) |
---|
| 83 | |
---|
| 84 | cAA Rem : nqmax : nombre de vrais traceurs est defini dans dimphy.h |
---|
| 85 | |
---|
| 86 | cAA ---------------------------- |
---|
| 87 | cAA VARIABLES LOCALES TRACEURS |
---|
| 88 | cAA ---------------------------- |
---|
| 89 | cAA |
---|
| 90 | |
---|
| 91 | CHARACTER*2 itn |
---|
| 92 | C maf ioipsl |
---|
| 93 | CHARACTER*2 str2 |
---|
| 94 | INTEGER nhori, nvert |
---|
| 95 | REAL zsto, zout, zjulian |
---|
| 96 | INTEGER nid_tra |
---|
| 97 | SAVE nid_tra |
---|
| 98 | INTEGER nid_tra2,nid_tra3 |
---|
| 99 | SAVE nid_tra2,nid_tra3 |
---|
| 100 | INTEGER ndex(1) |
---|
| 101 | INTEGER ndex2d(iim*(jjm+1)),ndex3d(iim*(jjm+1)*klev) |
---|
| 102 | REAL zx_tmp_2d(iim,jjm+1), zx_tmp_3d(iim,jjm+1,klev) |
---|
| 103 | REAL zx_lon(iim,jjm+1), zx_lat(iim,jjm+1) |
---|
| 104 | c |
---|
| 105 | integer itau_w ! pas de temps ecriture = nstep + itau_phy |
---|
| 106 | c |
---|
| 107 | |
---|
| 108 | C |
---|
| 109 | C Variables liees a l'ecriture de la bande histoire : phytrac.nc |
---|
| 110 | c |
---|
| 111 | c INTEGER ecrit_tra |
---|
| 112 | c SAVE ecrit_tra |
---|
| 113 | logical ok_sync |
---|
| 114 | parameter (ok_sync = .true.) |
---|
| 115 | C |
---|
| 116 | C les traceurs |
---|
| 117 | C |
---|
| 118 | logical flagCO_OCS |
---|
| 119 | c=================== |
---|
| 120 | c it--------indice de traceur |
---|
| 121 | c k,i---------indices long, vert |
---|
| 122 | c=================== |
---|
| 123 | c Variables deja declarees dont on a besoin pour traceurs |
---|
| 124 | c k,i,it,tr_seri(klon,klev,nqmax),pplay(nlon,nlev), |
---|
| 125 | integer nqCO_OCS |
---|
| 126 | real zprof(klev,nqmx) |
---|
| 127 | c real pzero,gamma |
---|
| 128 | c parameter (pzero=85000.) |
---|
| 129 | c parameter (gamma=5000.) |
---|
| 130 | REAL alpha |
---|
| 131 | real deltatr(klon,klev,nqmx) ! ecart au profil de ref zprof |
---|
| 132 | real tau(klev,nqmx) ! temps de relaxation vers le profil (s) |
---|
| 133 | save zprof,tau |
---|
| 134 | c====================================================================== |
---|
| 135 | c |
---|
| 136 | c Declaration des procedures appelees |
---|
| 137 | c |
---|
| 138 | c--modif convection tiedtke |
---|
| 139 | INTEGER i, k, it |
---|
| 140 | INTEGER iq, iiq |
---|
| 141 | REAL delp(klon,klev) |
---|
| 142 | c--end modif |
---|
| 143 | c |
---|
| 144 | c Variables liees a l'ecriture de la bande histoire physique |
---|
| 145 | c |
---|
| 146 | c Variables locales pour effectuer les appels en serie |
---|
| 147 | c---------------------------------------------------- |
---|
| 148 | c |
---|
| 149 | REAL d_tr(klon,klev), d_trs(klon) ! tendances de traceurs |
---|
| 150 | REAL d_tr_cl(klon,klev,nqmax) ! tendance de traceurs couche limite |
---|
| 151 | REAL d_tr_cv(klon,klev,nqmax) ! tendance de traceurs conv pour chq traceur |
---|
| 152 | C |
---|
| 153 | character*80 abort_message |
---|
| 154 | c |
---|
| 155 | c Controles |
---|
| 156 | c------------- |
---|
| 157 | logical first,couchelimite,convection |
---|
| 158 | save first,couchelimite,convection |
---|
| 159 | c Olivia |
---|
| 160 | data first,couchelimite,convection |
---|
| 161 | s /.true.,.false.,.false./ |
---|
| 162 | |
---|
| 163 | c====================================================================== |
---|
| 164 | ps(:)=paprs(:,1) |
---|
| 165 | c TRACEURS TYPE CO ET OCS |
---|
| 166 | flagCO_OCS = .true. |
---|
| 167 | if (flagCO_OCS) then |
---|
| 168 | nqCO_OCS = 6 |
---|
| 169 | else |
---|
| 170 | nqCO_OCS = 0 |
---|
| 171 | endif ! flagCO_OCS |
---|
| 172 | |
---|
| 173 | c--------- |
---|
| 174 | c debutphy |
---|
| 175 | c--------- |
---|
| 176 | if (debutphy) then |
---|
| 177 | print*,"DEBUT PHYTRAC" |
---|
| 178 | C |
---|
| 179 | c============================================================= |
---|
| 180 | c============================================================= |
---|
| 181 | c============================================================= |
---|
| 182 | c Initialisation des traceurs |
---|
| 183 | c============================================================= |
---|
| 184 | c============================================================= |
---|
| 185 | c============================================================= |
---|
| 186 | c |
---|
| 187 | c============================================================= |
---|
| 188 | c============================================================= |
---|
| 189 | |
---|
| 190 | C========================================================================= |
---|
| 191 | C========================================================================= |
---|
| 192 | if (flagCO_OCS) then |
---|
| 193 | c II) Declaration d'un profil vertical de traceur OK |
---|
| 194 | c |
---|
| 195 | c zprof = profil de rappel |
---|
| 196 | c |
---|
| 197 | c 1 -> CO ; 2 -> OCS |
---|
| 198 | c def des profils en log(a) = a * log(P) + b par morceaux, cf. pollack et al |
---|
| 199 | c tr_seri en ppm |
---|
| 200 | c (initialisation seulement si ceux-ci sont nuls) |
---|
| 201 | |
---|
| 202 | c ICI, ON UTILISE 3 CONSTANTES DE TEMPS DIFFERENTES POUR CHAQUE, |
---|
| 203 | c DONC TRACEURS 1 A 3 POUR CO ET 4 A 6 POUR OCS |
---|
| 204 | C========================================================================= |
---|
| 205 | |
---|
| 206 | |
---|
| 207 | c Constantes de rappel: |
---|
| 208 | |
---|
| 209 | print*,"INIT TAU" |
---|
| 210 | do k=1,klev |
---|
| 211 | tau(k,1)=1.e6 |
---|
| 212 | tau(k,2)=1.e7 |
---|
| 213 | tau(k,3)=1.e8 |
---|
| 214 | tau(k,4)=1.e6 |
---|
| 215 | tau(k,5)=1.e7 |
---|
| 216 | tau(k,6)=1.e8 |
---|
| 217 | enddo |
---|
| 218 | |
---|
| 219 | c CO |
---|
| 220 | |
---|
| 221 | do it=1,3 |
---|
| 222 | print*,"INIT ZPROF ",tname(it) |
---|
| 223 | do k=1,klev |
---|
| 224 | zprof(k,it)=0. |
---|
| 225 | c pour l'instant, tau fixe, mais possibilite de le faire varier avec z |
---|
| 226 | if (pplay(klon/2,k) >= 4.8e6) then |
---|
| 227 | zprof(k,it)=14. |
---|
| 228 | endif |
---|
| 229 | if ((pplay(klon/2,k)<=4.8e6).and.(pplay(klon/2,k)>=1.9e6)) then |
---|
| 230 | alpha=(log(pplay(klon/2,k))-log(1.9e6))/ |
---|
| 231 | . (log(4.8e6)-log(1.9e6)) |
---|
| 232 | zprof(k,it)=20.*(14./20.)**alpha |
---|
| 233 | endif |
---|
| 234 | if ((pplay(klon/2,k)<=1.9e6).and.(pplay(klon/2,k)>=1.5e5)) then |
---|
| 235 | alpha=(log(pplay(klon/2,k))-log(1.5e5))/ |
---|
| 236 | . (log(1.9e6)-log(1.5e5)) |
---|
| 237 | zprof(k,it)=39.*(20./39.)**alpha |
---|
| 238 | endif |
---|
| 239 | if ((pplay(klon/2,k)<=1.5e5).and.(pplay(klon/2,k)>=1.1e4)) then |
---|
| 240 | alpha=(log(pplay(klon/2,k))-log(1.1e4))/ |
---|
| 241 | . (log(2.73e5)-log(1.1e4)) |
---|
| 242 | zprof(k,it)=50.*(39./50.)**alpha |
---|
| 243 | endif |
---|
| 244 | if ((pplay(klon/2,k)<=1.1e4).and.(pplay(klon/2,k)>=1.3e3)) then |
---|
| 245 | alpha=(log(pplay(klon/2,k))-log(1.3e3))/ |
---|
| 246 | . (log(1.1e4)-log(1.3e3)) |
---|
| 247 | zprof(k,it)=2.*(50./2.)**alpha |
---|
| 248 | endif |
---|
| 249 | if ((pplay(klon/2,k)<=1.3e3).and.(pplay(klon/2,k)>=2.4)) then |
---|
| 250 | alpha=(log(pplay(klon/2,k))-log(2.4))/ |
---|
| 251 | . (log(1.3e3)-log(2.4)) |
---|
| 252 | zprof(k,it)=1000.*(2./1000.)**alpha |
---|
| 253 | endif |
---|
| 254 | if (pplay(klon/2,k) <= 2.4) then |
---|
| 255 | zprof(k,it)=1000. |
---|
| 256 | endif |
---|
| 257 | enddo |
---|
| 258 | print*,zprof(:,it) |
---|
| 259 | |
---|
| 260 | c OCS |
---|
| 261 | print*,"INIT ZPROF ",tname(it+3) |
---|
| 262 | do k=1,klev |
---|
| 263 | zprof(k,it+3)=0. |
---|
| 264 | if (pplay(klon/2,k) >= 4.8e6) then |
---|
| 265 | zprof(k,it+3)=30. |
---|
| 266 | endif |
---|
| 267 | if ((pplay(klon/2,k)<=4.8e6).and.(pplay(klon/2,k)>=9.4e5)) |
---|
| 268 | * then |
---|
| 269 | alpha=(log(pplay(klon/2,k))-log(9.4e5))/ |
---|
| 270 | * (log(4.8e6)-log(9.4e5)) |
---|
| 271 | zprof(k,it+3)=20.*(30/20.)**alpha |
---|
| 272 | endif |
---|
| 273 | if ((pplay(klon/2,k)<=9.4e5).and.(pplay(klon/2,k)>=4.724e5)) |
---|
| 274 | * then |
---|
| 275 | alpha=(log(pplay(klon/2,k))-log(4.724e5))/ |
---|
| 276 | * (log(9.4e5)-log(4.724e5)) |
---|
| 277 | zprof(k,it+3)=0.5*(20/0.5)**alpha |
---|
| 278 | endif |
---|
| 279 | if ((pplay(klon/2,k)<=4.724e5).and.(pplay(klon/2,k)>=1.1e4)) |
---|
| 280 | * then |
---|
| 281 | alpha=(log(pplay(klon/2,k))-log(1.1e4))/ |
---|
| 282 | * (log(4.724e5)-log(1.1e4)) |
---|
| 283 | zprof(k,it+3)=0.005*(0.5/0.005)**alpha |
---|
| 284 | endif |
---|
| 285 | if (pplay(klon/2,k)<=1.1e4) then |
---|
| 286 | zprof(k,it+3)=0. |
---|
| 287 | endif |
---|
| 288 | end do |
---|
| 289 | print*,zprof(:,it+3) |
---|
| 290 | enddo |
---|
| 291 | |
---|
| 292 | c Initialisation du traceur s'il est nul: |
---|
| 293 | do it=1,nqCO_OCS |
---|
| 294 | if ((tr_seri(klon/2,1,it).eq.0.).and. |
---|
| 295 | . (tr_seri(klon/2,klev/2,it).eq.0.).and. |
---|
| 296 | . (tr_seri(klon/2,klev,it).eq.0.)) then |
---|
| 297 | print*,"INITIALISATION DE ",tname(it) |
---|
| 298 | do k=1,klev |
---|
| 299 | do i=1,klon |
---|
| 300 | tr_seri(i,k,it) = zprof(k,it) |
---|
| 301 | enddo |
---|
| 302 | enddo |
---|
| 303 | endif |
---|
| 304 | enddo |
---|
| 305 | |
---|
| 306 | C========================================================================= |
---|
| 307 | endif ! flagCO_OCS |
---|
| 308 | C========================================================================= |
---|
| 309 | C========================================================================= |
---|
| 310 | |
---|
| 311 | c------------- |
---|
| 312 | c fin debutphy |
---|
| 313 | c------------- |
---|
| 314 | ENDIF ! fin debutphy |
---|
| 315 | |
---|
| 316 | c====================================================================== |
---|
| 317 | if (flagCO_OCS) then |
---|
| 318 | c Rappel vers un profil |
---|
| 319 | c====================================================================== |
---|
| 320 | do it=1,nqCO_OCS |
---|
| 321 | do k=1,klev |
---|
| 322 | do i=1,klon |
---|
| 323 | c VERIF |
---|
| 324 | if (tr_seri(i,k,it).lt.0) then |
---|
| 325 | print*,"Traceur negatif AVANT rappel:",i,k,it |
---|
| 326 | stop |
---|
| 327 | endif |
---|
| 328 | c FIN VERIF |
---|
| 329 | |
---|
| 330 | deltatr(i,k,it) = (-tr_seri(i,k,it)+zprof(k,it))/tau(k,it) |
---|
| 331 | tr_seri(i,k,it) = tr_seri(i,k,it) + deltatr(i,k,it)*pdtphys |
---|
| 332 | |
---|
| 333 | c VERIF |
---|
| 334 | if (tr_seri(i,k,it).lt.0) then |
---|
| 335 | print*,"APRES rappel:",i,k,it, |
---|
| 336 | . deltatr(i,k,it),zprof(k,it),tr_seri(i,k,it),pdtphys/tau(k,it) |
---|
| 337 | stop |
---|
| 338 | endif |
---|
| 339 | c FIN VERIF |
---|
| 340 | enddo |
---|
| 341 | enddo |
---|
| 342 | enddo |
---|
| 343 | |
---|
| 344 | c====================================================================== |
---|
| 345 | endif ! flagCO_OCS |
---|
| 346 | c====================================================================== |
---|
| 347 | |
---|
| 348 | c====================================================================== |
---|
| 349 | c Calcul de l'effet de la couche limite remis directement dans physiq |
---|
| 350 | c====================================================================== |
---|
| 351 | |
---|
| 352 | |
---|
| 353 | RETURN |
---|
| 354 | END |
---|
| 355 | |
---|
| 356 | |
---|
| 357 | c========================================================================= |
---|
| 358 | c========================================================================= |
---|
| 359 | c========================================================================= |
---|
| 360 | c ARCHIVES =============================================================== |
---|
| 361 | c========================================================================= |
---|
| 362 | c========================================================================= |
---|
| 363 | c========================================================================= |
---|
| 364 | |
---|
| 365 | c=========== |
---|
| 366 | c definition de traceurs idealises |
---|
| 367 | c========== |
---|
| 368 | c |
---|
| 369 | c I) Declaration directe du traceur a altitude fixee |
---|
| 370 | c |
---|
| 371 | c a) traceur en carre OK |
---|
| 372 | c |
---|
| 373 | c do i=1,klon |
---|
| 374 | c tr_seri(i,:,1)=0. |
---|
| 375 | c if ((xlat(i)>=0.).and.(xlat(i)<=-30.)) then |
---|
| 376 | c if ((xlon(i)>=0.).and.(xlon(i)<=40.)) then |
---|
| 377 | c tr_seri(i,10,1)=1. |
---|
| 378 | c endif |
---|
| 379 | c endif |
---|
| 380 | c end do |
---|
| 381 | c |
---|
| 382 | c a bis) 2 traceurs en carre lat/alt, uniforme en longitude OK |
---|
| 383 | c |
---|
| 384 | C entre 45-55 km |
---|
| 385 | c |
---|
| 386 | c do i=1,klon |
---|
| 387 | c do k=1,klev+1 |
---|
| 388 | cc tr_seri(i,k,1)=0. |
---|
| 389 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 390 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 391 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 392 | c tr_seri(i,k,1)=1. |
---|
| 393 | c endif |
---|
| 394 | c endif |
---|
| 395 | c endif |
---|
| 396 | c else |
---|
| 397 | c tr_seri(i,k,1)=0. |
---|
| 398 | c end do |
---|
| 399 | c end do |
---|
| 400 | cc |
---|
| 401 | c do i=1,klon |
---|
| 402 | c do k=1,klev+1 |
---|
| 403 | cc tr_seri(i,k,2)=0. |
---|
| 404 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-80.)) then |
---|
| 405 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 406 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 407 | c tr_seri(i,k,2)=1. |
---|
| 408 | c endif |
---|
| 409 | c endif |
---|
| 410 | c endif |
---|
| 411 | c else |
---|
| 412 | c tr_seri(i,k,2)=0. |
---|
| 413 | c end do |
---|
| 414 | c end do |
---|
| 415 | cc |
---|
| 416 | c do i=1,klon |
---|
| 417 | c do k=1,klev+1 |
---|
| 418 | cc tr_seri(i,k,3)=0. |
---|
| 419 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 420 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 421 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 422 | c tr_seri(i,k,3)=1. |
---|
| 423 | c endif |
---|
| 424 | c endif |
---|
| 425 | c endif |
---|
| 426 | c else |
---|
| 427 | c tr_seri(i,k,3)=0. |
---|
| 428 | c end do |
---|
| 429 | c end do |
---|
| 430 | cc |
---|
| 431 | c do i=1,klon |
---|
| 432 | c do k=1,klev+1 |
---|
| 433 | cc tr_seri(i,k,4)=0. |
---|
| 434 | c if ((xlat(i)>=-40.).and.(xlat(i)<=-60.)) then |
---|
| 435 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 436 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 437 | c tr_seri(i,k,4)=1. |
---|
| 438 | c endif |
---|
| 439 | c endif |
---|
| 440 | c endif |
---|
| 441 | c else |
---|
| 442 | c tr_seri(i,k,4)=0. |
---|
| 443 | c end do |
---|
| 444 | c end do |
---|
| 445 | cc |
---|
| 446 | c do i=1,klon |
---|
| 447 | c do k=1,klev+1 |
---|
| 448 | cc tr_seri(i,k,5)=0. |
---|
| 449 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 450 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 451 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=4.e5)) then |
---|
| 452 | c tr_seri(i,k,5)=1. |
---|
| 453 | c endif |
---|
| 454 | c endif |
---|
| 455 | c endif |
---|
| 456 | c else |
---|
| 457 | c tr_seri(i,k,5)=0. |
---|
| 458 | c end do |
---|
| 459 | c end do |
---|
| 460 | c |
---|
| 461 | c entre 35-45 km |
---|
| 462 | c |
---|
| 463 | c do i=1,klon |
---|
| 464 | c do k=1,klev+1 |
---|
| 465 | cc tr_seri(i,k,6)=0. |
---|
| 466 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 467 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 468 | c if ((pplay(klon/2,k)>=4.e5).and.(pplay(klon/2,k)<=8.e6)) then |
---|
| 469 | c tr_seri(i,k,6)=1. |
---|
| 470 | c endif |
---|
| 471 | c endif |
---|
| 472 | c endif |
---|
| 473 | c else |
---|
| 474 | c tr_seri(i,k,6)=0. |
---|
| 475 | c end do |
---|
| 476 | c end do |
---|
| 477 | c |
---|
| 478 | c do i=1,klon |
---|
| 479 | c do k=1,klev+1 |
---|
| 480 | cc tr_seri(i,k,7)=0. |
---|
| 481 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-80.)) then |
---|
| 482 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 483 | c if ((pplay(klon/2,k)>=4.e5).and.(pplay(klon/2,k)<=8.e6)) then |
---|
| 484 | c tr_seri(i,k,7)=1. |
---|
| 485 | c endif |
---|
| 486 | c endif |
---|
| 487 | c endif |
---|
| 488 | c else |
---|
| 489 | c tr_seri(i,k,7)=0. |
---|
| 490 | c end do |
---|
| 491 | c end do |
---|
| 492 | c |
---|
| 493 | C entre 50-60 km |
---|
| 494 | c |
---|
| 495 | c do i=1,klon |
---|
| 496 | c do k=1,klev+1 |
---|
| 497 | cc tr_seri(i,k,8)=0. |
---|
| 498 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 499 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 500 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 501 | c tr_seri(i,k,8)=1. |
---|
| 502 | c endif |
---|
| 503 | c endif |
---|
| 504 | c endif |
---|
| 505 | c else |
---|
| 506 | c tr_seri(i,k,8)=0. |
---|
| 507 | c end do |
---|
| 508 | c end do |
---|
| 509 | c |
---|
| 510 | c do i=1,klon |
---|
| 511 | c do k=1,klev+1 |
---|
| 512 | cc tr_seri(i,k,9)=0. |
---|
| 513 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 514 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 515 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 516 | c tr_seri(i,k,9)=1. |
---|
| 517 | c endif |
---|
| 518 | c endif |
---|
| 519 | c endif |
---|
| 520 | c else |
---|
| 521 | c tr_seri(i,k,9)=0. |
---|
| 522 | c end do |
---|
| 523 | c end do |
---|
| 524 | c |
---|
| 525 | c do i=1,klon |
---|
| 526 | c do k=1,klev+1 |
---|
| 527 | cc tr_seri(i,k,10)=0. |
---|
| 528 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 529 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 530 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 531 | c tr_seri(i,k,10)=1. |
---|
| 532 | c endif |
---|
| 533 | c endif |
---|
| 534 | c endif |
---|
| 535 | c else |
---|
| 536 | c tr_seri(i,k,10)=0. |
---|
| 537 | c end do |
---|
| 538 | c end do |
---|
| 539 | c |
---|
| 540 | c do i=1,klon |
---|
| 541 | c do k=1,klev+1 |
---|
| 542 | cc tr_seri(i,k,11)=0. |
---|
| 543 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-40.)) then |
---|
| 544 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 545 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 546 | c tr_seri(i,k,11)=1. |
---|
| 547 | c endif |
---|
| 548 | c endif |
---|
| 549 | c endif |
---|
| 550 | c else |
---|
| 551 | c tr_seri(i,k,11)=0. |
---|
| 552 | c end do |
---|
| 553 | c end do |
---|
| 554 | c |
---|
| 555 | c do i=1,klon |
---|
| 556 | c do k=1,klev+1 |
---|
| 557 | cc tr_seri(i,k,12)=0. |
---|
| 558 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 559 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 560 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e5)) then |
---|
| 561 | c tr_seri(i,k,12)=1. |
---|
| 562 | c endif |
---|
| 563 | c endif |
---|
| 564 | c endif |
---|
| 565 | c else |
---|
| 566 | c tr_seri(i,k,12)=0. |
---|
| 567 | c end do |
---|
| 568 | c end do |
---|
| 569 | c |
---|
| 570 | c entre 20-30 km |
---|
| 571 | c |
---|
| 572 | c do i=1,klon |
---|
| 573 | c do k=1,klev+1 |
---|
| 574 | cc tr_seri(i,k,13)=0. |
---|
| 575 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 576 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 577 | c if ((pplay(klon/2,k)>=1.e6).and.(pplay(klon/2,k)<=2.e6)) then |
---|
| 578 | c tr_seri(i,k,13)=1. |
---|
| 579 | c endif |
---|
| 580 | c endif |
---|
| 581 | c endif |
---|
| 582 | c else |
---|
| 583 | c tr_seri(i,k,13)=0. |
---|
| 584 | c end do |
---|
| 585 | c end do |
---|
| 586 | c |
---|
| 587 | c do i=1,klon |
---|
| 588 | c do k=1,klev+1 |
---|
| 589 | cc tr_seri(i,k,14)=0. |
---|
| 590 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 591 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 592 | c if ((pplay(klon/2,k)>=1.e6).and.(pplay(klon/2,k)<=2.e6)) then |
---|
| 593 | c tr_seri(i,k,14)=1. |
---|
| 594 | c endif |
---|
| 595 | c endif |
---|
| 596 | c endif |
---|
| 597 | c else |
---|
| 598 | c tr_seri(i,k,14)=0. |
---|
| 599 | c end do |
---|
| 600 | c end do |
---|
| 601 | c |
---|
| 602 | c do i=1,klon |
---|
| 603 | c do k=1,klev+1 |
---|
| 604 | cc tr_seri(i,k,15)=0. |
---|
| 605 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 606 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 607 | c if ((pplay(klon/2,k)>=1.e6).and.(pplay(klon/2,k)<=2.e6)) then |
---|
| 608 | c tr_seri(i,k,15)=1. |
---|
| 609 | c endif |
---|
| 610 | c endif |
---|
| 611 | c endif |
---|
| 612 | c else |
---|
| 613 | c tr_seri(i,k,15)=0. |
---|
| 614 | c end do |
---|
| 615 | c end do |
---|
| 616 | c |
---|
| 617 | c entre 55-65 km |
---|
| 618 | c |
---|
| 619 | c do i=1,klon |
---|
| 620 | c do k=1,klev+1 |
---|
| 621 | cc tr_seri(i,k,16)=0. |
---|
| 622 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 623 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 624 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=5.e4)) then |
---|
| 625 | c tr_seri(i,k,16)=1. |
---|
| 626 | c endif |
---|
| 627 | c endif |
---|
| 628 | c endif |
---|
| 629 | c endif |
---|
| 630 | c else |
---|
| 631 | c tr_seri(i,k,16)=0. |
---|
| 632 | c end do |
---|
| 633 | c end do |
---|
| 634 | c |
---|
| 635 | c do i=1,klon |
---|
| 636 | c do k=1,klev+1 |
---|
| 637 | cc tr_seri(i,k,17)=0. |
---|
| 638 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 639 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 640 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=5.e4)) then |
---|
| 641 | c tr_seri(i,k,17)=1. |
---|
| 642 | c endif |
---|
| 643 | c endif |
---|
| 644 | c endif |
---|
| 645 | c endif |
---|
| 646 | c else |
---|
| 647 | c tr_seri(i,k,17)=0. |
---|
| 648 | c end do |
---|
| 649 | c end do |
---|
| 650 | c |
---|
| 651 | c do i=1,klon |
---|
| 652 | c do k=1,klev+1 |
---|
| 653 | cc tr_seri(i,k,18)=0. |
---|
| 654 | c if ((xlat(i)>=-20.).and.(xlat(i)<=20.)) then |
---|
| 655 | c if ((xlon(i)>=-180.).and.(xlon(i)<=180.)) then |
---|
| 656 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=5.e4)) then |
---|
| 657 | c tr_seri(i,k,18)=1. |
---|
| 658 | c endif |
---|
| 659 | c endif |
---|
| 660 | c endif |
---|
| 661 | c endif |
---|
| 662 | c else |
---|
| 663 | c tr_seri(i,k,18)=0. |
---|
| 664 | c end do |
---|
| 665 | c end do |
---|
| 666 | c |
---|
| 667 | c b) traceur a une bande en latitudeOK |
---|
| 668 | c |
---|
| 669 | c a 65km |
---|
| 670 | c |
---|
| 671 | c do i=1,klon |
---|
| 672 | c tr_seri(i,:,1)=0. |
---|
| 673 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 674 | c tr_seri(i,20,1)=1. |
---|
| 675 | c endif |
---|
| 676 | c end do |
---|
| 677 | c |
---|
| 678 | c do i=1,klon |
---|
| 679 | c tr_seri(i,:,2)=0. |
---|
| 680 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 681 | c tr_seri(i,20,2)=1. |
---|
| 682 | c endif |
---|
| 683 | c end do |
---|
| 684 | c |
---|
| 685 | c do i=1,klon |
---|
| 686 | c tr_seri(i,:,3)=0. |
---|
| 687 | c if ((xlat(i)>=20.).and.(xlat(i)<=40.)) then |
---|
| 688 | c tr_seri(i,20,3)=1. |
---|
| 689 | c endif |
---|
| 690 | c end do |
---|
| 691 | c |
---|
| 692 | c do i=1,klon |
---|
| 693 | c tr_seri(i,:,4)=0. |
---|
| 694 | c if ((xlat(i)>=0.).and.(xlat(i)<=20.)) then |
---|
| 695 | c tr_seri(i,20,4)=1. |
---|
| 696 | c endif |
---|
| 697 | c end do |
---|
| 698 | c |
---|
| 699 | c do i=1,klon |
---|
| 700 | c tr_seri(i,:,5)=0. |
---|
| 701 | c if ((xlat(i)>=-20.).and.(xlat(i)<=0.)) then |
---|
| 702 | c tr_seri(i,20,5)=1. |
---|
| 703 | c endif |
---|
| 704 | c end do |
---|
| 705 | c |
---|
| 706 | c do i=1,klon |
---|
| 707 | c tr_seri(i,:,6)=0. |
---|
| 708 | c if ((xlat(i)>=-40.).and.(xlat(i)<=-20.)) then |
---|
| 709 | c tr_seri(i,20,6)=1. |
---|
| 710 | c endif |
---|
| 711 | c end do |
---|
| 712 | c |
---|
| 713 | c do i=1,klon |
---|
| 714 | c tr_seri(i,:,7)=0. |
---|
| 715 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-40.)) then |
---|
| 716 | c tr_seri(i,20,7)=1. |
---|
| 717 | c endif |
---|
| 718 | c end do |
---|
| 719 | c |
---|
| 720 | c do i=1,klon |
---|
| 721 | c tr_seri(i,:,8)=0. |
---|
| 722 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 723 | c tr_seri(i,20,8)=1. |
---|
| 724 | c endif |
---|
| 725 | c end do |
---|
| 726 | c |
---|
| 727 | c a 50km |
---|
| 728 | c |
---|
| 729 | c do i=1,klon |
---|
| 730 | c tr_seri(i,:,1)=0. |
---|
| 731 | c if ((xlat(i)>=40.).and.(xlat(i)<=60.)) then |
---|
| 732 | c tr_seri(i,27,1)=1. |
---|
| 733 | c endif |
---|
| 734 | c end do |
---|
| 735 | c |
---|
| 736 | c do i=1,klon |
---|
| 737 | c tr_seri(i,:,2)=0. |
---|
| 738 | c if ((xlat(i)>=60.).and.(xlat(i)<=80.)) then |
---|
| 739 | c tr_seri(i,27,2)=1. |
---|
| 740 | c endif |
---|
| 741 | c end do |
---|
| 742 | c |
---|
| 743 | c do i=1,klon |
---|
| 744 | c tr_seri(i,:,3)=0. |
---|
| 745 | c if ((xlat(i)>=20.).and.(xlat(i)<=40.)) then |
---|
| 746 | c tr_seri(i,27,3)=1. |
---|
| 747 | c endif |
---|
| 748 | c end do |
---|
| 749 | c |
---|
| 750 | c do i=1,klon |
---|
| 751 | c tr_seri(i,:4)=0. |
---|
| 752 | c if ((xlat(i)>=0.).and.(xlat(i)<=20.)) then |
---|
| 753 | c tr_seri(i,27,4)=1. |
---|
| 754 | c endif |
---|
| 755 | c end do |
---|
| 756 | c |
---|
| 757 | c do i=1,klon |
---|
| 758 | c tr_seri(i,:,5)=0. |
---|
| 759 | c if ((xlat(i)>=-20.).and.(xlat(i)<=0.)) then |
---|
| 760 | c tr_seri(i,27,5)=1. |
---|
| 761 | c endif |
---|
| 762 | c end do |
---|
| 763 | c |
---|
| 764 | c do i=1,klon |
---|
| 765 | c tr_seri(i,:,6)=0. |
---|
| 766 | c if ((xlat(i)>=-40.).and.(xlat(i)<=-20.)) then |
---|
| 767 | c tr_seri(i,27,6)=1. |
---|
| 768 | c endif |
---|
| 769 | c end do |
---|
| 770 | c |
---|
| 771 | c do i=1,klon |
---|
| 772 | c tr_seri(i,:,7)=0. |
---|
| 773 | c if ((xlat(i)>=-60.).and.(xlat(i)<=-40.)) then |
---|
| 774 | c tr_seri(i,27,7)=1. |
---|
| 775 | c endif |
---|
| 776 | c end do |
---|
| 777 | c |
---|
| 778 | c do i=1,klon |
---|
| 779 | c tr_seri(i,:,8)=0. |
---|
| 780 | c if ((xlat(i)>=-80.).and.(xlat(i)<=-60.)) then |
---|
| 781 | c tr_seri(i,27,8)=1. |
---|
| 782 | c endif |
---|
| 783 | c end do |
---|
| 784 | c |
---|
| 785 | c c) traceur a plusieurs bandes en latitude OK |
---|
| 786 | c |
---|
| 787 | c do i=1,klon |
---|
| 788 | c tr_seri(i,:,2)=0. |
---|
| 789 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 790 | c tr_seri(i,10,2)=1. |
---|
| 791 | c endif |
---|
| 792 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 793 | c tr_seri(i,10,2)=1. |
---|
| 794 | c endif |
---|
| 795 | c |
---|
| 796 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 797 | c tr_seri(i,10,2)=1. |
---|
| 798 | c endif |
---|
| 799 | c end do |
---|
| 800 | c |
---|
| 801 | c d) traceur a une bande en altitude OK |
---|
| 802 | c |
---|
| 803 | c do k=1,klev+1 |
---|
| 804 | c tr_seri(:,k,1)=0. |
---|
| 805 | c if ((pplay(klon/2,k)>=1.e5).and.(pplay(klon/2,k)<=1.e6)) then |
---|
| 806 | c tr_seri(:,k,1)=1. |
---|
| 807 | c endif |
---|
| 808 | c end do |
---|
| 809 | c |
---|
| 810 | c dbis) plusieurs traceurs a une bande en altitude OK |
---|
| 811 | c |
---|
| 812 | c bande tres basse tropo |
---|
| 813 | c do k=1,klev |
---|
| 814 | c tr_seri(:,k,1)=0. |
---|
| 815 | c if ((pplay(klon/2,k)>=5.e5).and.(pplay(klon/2,k)<=5.e6)) then |
---|
| 816 | c tr_seri(:,k,1)=1. |
---|
| 817 | c endif |
---|
| 818 | c end do |
---|
| 819 | c bande dans les nuages et un peu en-dessous |
---|
| 820 | c do k=1,klev |
---|
| 821 | c tr_seri(:,k,2)=0. |
---|
| 822 | c if ((pplay(klon/2,k)>=5.e4).and.(pplay(klon/2,k)<=5.e5)) then |
---|
| 823 | c tr_seri(:,k,2)=1. |
---|
| 824 | c endif |
---|
| 825 | c end do |
---|
| 826 | cune grosse epaisseur: inclue toute la circulation meridienne |
---|
| 827 | c do k=1,klev |
---|
| 828 | c tr_seri(:,k,1)=0. |
---|
| 829 | c if ((pplay(klon/2,k)>=1.e4).and.(pplay(klon/2,k)<=1.e6)) then |
---|
| 830 | c tr_seri(:,k,1)=1. |
---|
| 831 | c endif |
---|
| 832 | c end do |
---|
| 833 | cune grosse epaisseur: inclue la mesosphere |
---|
| 834 | c do k=1,klev |
---|
| 835 | c tr_seri(:,k,2)=0. |
---|
| 836 | c if ((pplay(klon/2,k)>=2.e2).and.(pplay(klon/2,k)<=1.e4)) then |
---|
| 837 | c tr_seri(:,k,2)=1. |
---|
| 838 | c endif |
---|
| 839 | c end do |
---|
| 840 | c |
---|
| 841 | c do k=1,klev |
---|
| 842 | c tr_seri(:,k,3)=0. |
---|
| 843 | c if ((pplay(klon/2,k)>=5.e1).and.(pplay(klon/2,k)<=5.e2)) then |
---|
| 844 | c tr_seri(:,k,3)=1. |
---|
| 845 | c endif |
---|
| 846 | c end do |
---|
| 847 | c |
---|
| 848 | c e) plusieurs couches verticales de traceurs, a plusieurs bandes en latitude??? |
---|
| 849 | c |
---|
| 850 | c au sol |
---|
| 851 | c do i=1,klon |
---|
| 852 | c tr_seri(i,:,1)=0. |
---|
| 853 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 854 | c tr_seri(i,5,1)=1. |
---|
| 855 | c endif |
---|
| 856 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 857 | c tr_seri(i,5,1)=1. |
---|
| 858 | c endif |
---|
| 859 | c |
---|
| 860 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 861 | c tr_seri(i,5,1)=1. |
---|
| 862 | c endif |
---|
| 863 | c end do |
---|
| 864 | c |
---|
| 865 | c do i=1,klon |
---|
| 866 | c tr_seri(i,:,2)=0. |
---|
| 867 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 868 | c tr_seri(i,10,2)=1. |
---|
| 869 | c endif |
---|
| 870 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 871 | c tr_seri(i,10,2)=1. |
---|
| 872 | c endif |
---|
| 873 | c |
---|
| 874 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 875 | c tr_seri(i,10,2)=1. |
---|
| 876 | c endif |
---|
| 877 | c end do |
---|
| 878 | c |
---|
| 879 | c do i=1,klon |
---|
| 880 | c tr_seri(i,:,3)=0. |
---|
| 881 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 882 | c tr_seri(i,30,3)=1. |
---|
| 883 | c endif |
---|
| 884 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 885 | c tr_seri(i,30,3)=1. |
---|
| 886 | c endif |
---|
| 887 | c |
---|
| 888 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 889 | c tr_seri(i,30,3)=1. |
---|
| 890 | c endif |
---|
| 891 | c end do |
---|
| 892 | c |
---|
| 893 | c do i=1,klon |
---|
| 894 | c tr_seri(i,:,4)=0. |
---|
| 895 | c if ((xlat(i)>=50.).and.(xlat(i)<=70.)) then |
---|
| 896 | c tr_seri(i,45,4)=1. |
---|
| 897 | c endif |
---|
| 898 | c if ((xlat(i)>=-10.).and.(xlat(i)<=10.)) then |
---|
| 899 | c tr_seri(i,45,4)=1. |
---|
| 900 | c endif |
---|
| 901 | c |
---|
| 902 | c if ((xlat(i)>=-70.).and.(xlat(i)<=-50.)) then |
---|
| 903 | c tr_seri(i,45,4)=1. |
---|
| 904 | c endif |
---|
| 905 | c end do |
---|
| 906 | c |
---|
| 907 | |
---|