### ### This is the template for the first iteration of an OEM inversion ### ### Spectroscopy: ############################################################ tgsDefine { [$Q.RETRIEVAL_TAGS$,$Q.OTHER_TAGS$] } wfs_tgsDefine { [] } lineshapeDefine { shape = "$Q.LINESHAPE$" normalizationfactor = "$Q.LINESHAPE_FACTOR$" cutoff = $Q.LINESHAPE_CUTOFF$ } linesReadFromArts { filename = "$Q.SPECTRO_DIR$/$Q.LINEFILE$" fmin = 0 fmax = 10e18 } lines_per_tgCreateFromLines { } # §qpi_continua ### p_abs #################################################################### VectorReadAscii( p_abs ) { "$Q.CALCGRIDS_DIR$/$Q.P_ABS$" } ### Monochromatic frequency grid ############################################# VectorReadAscii( f_mono ) { "$Q.CALCGRIDS_DIR$/$Q.F_MONO$" } ### The atmosphere ########################################################### MatrixReadAscii ( raw_ptz_1d ) { filename = "$Q.APRIORI_PTZ$" } raw_vmrs_1dReadFromScenario { basename = "$Q.APRIORI_VMR_DIR$" } AtmFromRaw1D { CloudSatWV = "no" } h2o_absSet { } n2_absSet { } ### The geoid ############################################################### r_geoidStd { } ### Hydrostatic eq. ########################################################### IF Q.HSE_IN_ON hseSet{ pref = $Q.HSE_PREF$ zref = $Q.HSE_ZREF$ g0 = 9.81 niter = 2 } hseCalc{} ELSE hseOff{} END ### The ground ############################################################### groundSet{ z = $Q.GROUND_ALTITUDE$ e = $Q.GROUND_EMISSION$ } ### Absorption ################################################################ absCalc { } abs_per_tgReduce { } ### Refraction ################################################################ IF Q.REFRACTION_ON refrSet{ on = 1 model = "$Q.REFR_METHOD$" lfac = $Q.REFR_LFAC$ } ELSE refrOff{} END refrCalc{} ### Emission ################################################################# IntSet( emission ) { value = $Q.EMISSION_ON$ } ### Observation geometry ###################################################### NumericSet ( z_plat ) { value = $Q.PLATFORM_ALTITUDE$ } VectorReadAscii ( za_pencil ) { "$Q.CALCGRIDS_DIR$/$Q.ZA_PENCIL$" } NumericSet ( l_step ) { value = $Q.STEPLENGTH_RTE$ } ### LOS and RTE ############################################################## y_spaceStd { "cbgr" } losCalc {} sourceCalc {} transCalc {} yCalc {} VectorWriteBinary( y ) { "" } IF Q.EMISSION_ON ### Convert to RJ temperatures. ############################################## VectorCopy( f_sensor, f_mono ) { } VectorCopy ( za_sensor, za_pencil ) { } yTRJ {} END ### Save ##################################################################### VectorWriteBinary( y ) { "" } VectorWriteBinary( p_abs ) { "" } VectorWriteBinary( t_abs ) { "" } VectorWriteBinary( z_abs ) { "" } ArrayOfVectorWriteBinary( vmrs ) { "" }