!$Id: satellite_out.F90 163 2010-02-22 15:41:45Z acosce $ !! ========================================================================= !! INCA - INteraction with Chemistry and Aerosols !! !! Copyright Laboratoire des Sciences du Climat et de l'Environnement (LSCE) !! Unite mixte CEA-CNRS-UVSQ !! !! Contributors to this INCA subroutine: !! !! Michael Schulz, LSCE, Michael.Schulz@cea.fr !! F.M. Breon, LSCE, Francois-Marie.Breon@cea.fr !! Olivier Boucher !! Nick Savage, University Cambridge !! !! Anne Cozic, LSCE, anne.cozic@cea.fr !! Yann Meurdesoif, LSCE, yann.meurdesoif@cea.fr !! !! This software is a computer program whose purpose is to simulate the !! atmospheric gas phase and aerosol composition. The model is designed to be !! used within a transport model or a general circulation model. This version !! of INCA was designed to be coupled to the LMDz GCM. LMDz-INCA accounts !! for emissions, transport (resolved and sub-grid scale), photochemical !! transformations, and scavenging (dry deposition and washout) of chemical !! species and aerosols interactively in the GCM. Several versions of the INCA !! model are currently used depending on the envisaged applications with the !! chemistry-climate model. !! !! This software is governed by the CeCILL license under French law and !! abiding by the rules of distribution of free software. You can use, !! modify and/ or redistribute the software under the terms of the CeCILL !! license as circulated by CEA, CNRS and INRIA at the following URL !! "http://www.cecill.info". !! !! As a counterpart to the access to the source code and rights to copy, !! modify and redistribute granted by the license, users are provided only !! with a limited warranty and the software's author, the holder of the !! economic rights, and the successive licensors have only limited !! liability. !! !! In this respect, the user's attention is drawn to the risks associated !! with loading, using, modifying and/or developing or reproducing the !! software by the user in light of its specific status of free software, !! that may mean that it is complicated to manipulate, and that also !! therefore means that it is reserved for developers and experienced !! professionals having in-depth computer knowledge. Users are therefore !! encouraged to load and test the software's suitability as regards their !! requirements in conditions enabling the security of their systems and/or !! data to be ensured and, more generally, to use and operate it in the !! same conditions as regards security. !! !! The fact that you are presently reading this means that you have had !! knowledge of the CeCILL license and that you accept its terms. !! ========================================================================= #include #ifdef AER SUBROUTINE SATELLITE_OUT(delt) USE AEROSOL_METEO, only : zlat,zlon USE INCA_DIM USE TIME_MOD_INCA USE PRINT_INCA IMPLICIT NONE REAL :: delt INTEGER :: masque_polder(PLON) ! masque polder INTEGER :: i IF ((year .GE. 1996) .AND. (month.GE. 11)) THEN IF ((year .LE. 1997) .AND. (month .LE. 6)) THEN CALL swathpolder(year,month,day,heure, & delt,zlon,zlat,masque_polder) ENDIF ENDIF DO i=1,PLON IF ( masque_polder(i) .EQ. 1 ) THEN WRITE(lunout,*) "polder output point, lon:", zlon(i),", lat: ",zlat(i) ENDIF ENDDO RETURN END SUBROUTINE satellite_out SUBROUTINE swathpolder(annee,mois,jour,heure,pdtphys, & rlon,rlat,masque) USE inca_dim IMPLICIT NONE !--Auteurs : Francois-Marie Breon + Olivier Boucher !-- adapted to be used in INCA aerosol module Michael Schulz ! not needed? ! #include "dimensions.h" ! #include "../phylmd/dimphy.h" # include "YOMCST_I.h" INTEGER :: annee, mois, jour REAL :: heure !--heure en jour REAL :: pdtphys !--pas de temps en seconde REAL :: rlon(1:PLON), rlat(1:PLON) !--longitude et latitude INTEGER :: masque(1:PLON) REAL :: J0 !--origine des temps pour les orbites ADEOS PARAMETER (J0=183.91267) REAL :: secinday PARAMETER (secinday=86400.) REAL :: duree_orb !--Duree d une orbite ADEOS en jour PARAMETER (duree_orb=6055.3715/secinday) REAL :: deltalon !--Decalage en longitude entre 2 orbites successives PARAMETER (deltalon=41./585.*360.) REAL :: demi_larg_eq !--demi-largeur d'une orbite a l equateur PARAMETER (demi_larg_eq=11.) REAL :: incli, inclideg PARAMETER (inclideg=98.59) REAL :: RADEG, DTOR REAL :: demi_periode INTEGER :: jacum(1:12) DATA jacum/0,31,59,90,120,151,181,212,243,273,304,334/ INTEGER :: an, orb, i, j REAL :: timepolder, lon0, posnorm, lim_nord, lim_sud REAL :: tempo, lon_cen, demi_larg REAL :: lat_debut, lat_fin, lon_west, lon_east REAL :: zlon !--rlon mais remis entre 0 et 360 REAL :: deltat !--plage de temps a considerer en jours deltat=pdtphys/secinday demi_periode=deltat/2./duree_orb RADEG=180./RPI DTOR=RPI/180. incli=inclideg*DTOR an = MOD(annee, 100) timepolder=FLOAT((an-96)*365+jacum(mois)+jour)+heure orb=INT((timepolder-J0)/duree_orb+0.5) lon0=360.-MOD(168.02+FLOAT(orb)*deltalon,360.) posnorm=(timepolder-j0)/duree_orb-FLOAT(orb) j=jacum(mois)+jour lim_nord=60.5 + 25.*(1.-COS((FLOAT(J)+10.)/365.*2.*RPI)) lim_sud=-53.0 - 20.*(1.+COS(FLOAT(J)/365.*2*RPI)) !--lat de debut lat_debut=MIN(MIN(90.,(-posnorm+demi_periode)*360.),lim_nord) !--lat de fin lat_fin =MAX(MAX(-90.,(-posnorm-demi_periode)*360.),lim_sud) DO i=1, PLON masque(i)=0 tempo=ASIN( MAX(-1.,MIN(1., -SIN(rlat(i)*DTOR)/SIN(incli)))) lon_cen=(ATAN(TAN(tempo)*COS(incli))-duree_orb*tempo)*RADEG demi_larg=demi_larg_eq/COS(rlat(i)*DTOR) IF (ABS(SIN(rlat(i)*DTOR)/SIN(incli)).GE.1.0) demi_larg=200.0 IF (rlat(i).GE.lat_fin.AND.rlat(i).LE.lat_debut) THEN IF (demi_larg.GE. 180.) THEN masque(i)=1 ELSE lon_west = MOD(lon0+lon_cen-demi_larg+720., 360.) lon_east = MOD(lon0+lon_cen+demi_larg, 360.) zlon = MOD(rlon(i)+360., 360.) IF (lon_west.LE.lon_east) THEN IF (zlon.GE.lon_west.AND.zlon.LE.lon_east) masque(i)=1 ELSE IF (zlon.GE.lon_west.OR.zlon.LE.lon_east) masque(i)=1 ENDIF ENDIF ENDIF ENDDO RETURN END SUBROUTINE swathpolder #endif