#DEFINITIONS: -*-sh-*- # # ARTS control file that calculates outgoing longwave radiation (olr) for a # midlatitude summer atmosphere. Arts2 { INCLUDE "general/general.arts" INCLUDE "general/continua.arts" INCLUDE "general/agendas.arts" INCLUDE "general/planet_earth.arts" # Agenda for scalar gas absorption calculation Copy(abs_xsec_agenda, abs_xsec_agenda__noCIA ) # (standard) emission calculation Copy( iy_main_agenda, iy_main_agenda__Emission ) # cosmic background radiation Copy( iy_space_agenda, iy_space_agenda__CosmicBackground ) # standard surface agenda (i.e., make use of surface_rtprop_agenda) Copy( iy_surface_agenda, iy_surface_agenda__UseSurfaceRtprop ) # on-the-fly absorption Copy( propmat_clearsky_agenda, propmat_clearsky_agenda__OnTheFly ) # sensor-only path Copy( ppath_agenda, ppath_agenda__FollowSensorLosPath ) # no refraction Copy( ppath_step_agenda, ppath_step_agenda__GeometricPath ) # Number of Stokes components to be computed IndexSet( stokes_dim, 1 ) # No jacobian calculation jacobianOff # Clearsky = No scattering cloudboxOff # Select the atmopsheric composition StringCreate( scene ) StringSet( scene, "" ) # StringSet( scene, "_+T" ) # StringSet( scene, "_+CO2" ) # StringSet( scene, "_+H2O" ) # Definition of species abs_speciesSet( species=["H2O,H2O-SelfContCKDMT252, H2O-ForeignContCKDMT252", "CO2, CO2-CKDMT252"] ) # Read a line file and a matching small frequency grid abs_linesReadFromSplitArtscat(abs_lines, abs_species, "HitranSplit/", 0, 80e12) # Replace the previous with the following line to use an original HITRAN # catalog file. Or use arts-lectures/bin/split-hitran.arts to convert a HITRAN # catalog into a split ARTSCAT. # abs_linesReadFromHitran(filename="HITRAN2012.par", fmin=0, fmax=80e12) # Sort the line file according to species abs_lines_per_speciesCreateFromLines # Set the lineshape function for all calculated tags abs_lineshapeDefine( shape="Voigt_Kuntz6", forefactor="VVH", cutoff=750e9 ) # Atmospheric scenario for midlatitude summer StringCreate( scenedir ) StringJoin( scenedir, "./midlatitude-summer", scene , "/midlatitude-summer") AtmRawRead( basename=scenedir ) p_gridFromZRaw( p_grid, z_field_raw,0 ) # Weakly reflecting surface VectorSetConstant( surface_scalar_reflectivity, 1, 0. ) Copy( surface_rtprop_agenda, surface_rtprop_agenda__Specular_NoPol_ReflFix_SurfTFromt_surface ) # Create a frequency grid VectorNLinSpace( f_grid, 1000, 1, 75e+12 ) # No sensor properties sensorOff # Atmosphere and surface AtmosphereSet1D AtmFieldsCalc Extract( z_surface, z_field, 0 ) Extract( t_surface, t_field, 0 ) # !! Change atmospheric parameters !! # Output radiance not converted StringSet( iy_unit, "1" ) # Definition of sensor position and LOS MatrixSet( sensor_pos, [100e3] ) # sensor in z = 100 km MatrixSet( sensor_los, [ 180] ) # zenith angle: 0 looking up, 180 looking down # Perform RT calculations abs_xsec_agenda_checkedCalc propmat_clearsky_agenda_checkedCalc atmfields_checkedCalc atmgeom_checkedCalc cloudbox_checkedCalc sensor_checkedCalc yCalc # writing output WriteXML( "ascii", y, "./results/olr.xml" ) WriteXML( "ascii", t_surface, "./results/t_surface.xml" ) WriteXML( "ascii", f_grid, "./results/f_grid.xml" ) WriteXML( "ascii", scene, "./results/scene.xml") }