Telluric Models¶
Similarly to stellar templates, the telluric model is constructed through a manager that will handle the construction and data storage.
The construction of the telluric model follows a recipe:
- Construct a transmittance model from a given source (by default, Telfit)
- Find the wavelength regions in which the transmittance model is smaller than a given percentage of the continuum
- Account for the BERV by either using the +- Maximum yearly variation or by shifting the mask to all BERVS in our dataset.
The following workflow summarizes the main steps in this process:
In [1]:
Copied!
from pathlib import Path
from ASTRA.data_objects import DataClassManager
from ASTRA.data_objects.DataClass import DataClass
from ASTRA.Instruments import ESPRESSO
from ASTRA.template_creation.TelluricModel import TelluricModel
from ASTRA.utils.choices import TELLURIC_CREATION_MODE, TELLURIC_EXTENSION
storage_path = Path("../../tmp")
manager = DataClassManager()
manager.start()
data: DataClass = manager.DataClass(
list(Path("/home/amiguel/spectra_collection/ESPRESSO/proxima").glob("*.fits")),
storage_path=storage_path,
instrument=ESPRESSO,
)
ModelTell = TelluricModel(
usage_mode="individual",
user_configs={"CREATION_MODE": TELLURIC_CREATION_MODE.telfit,
"EXTENSION_MODE": TELLURIC_EXTENSION.LINES},
root_folder_path=storage_path,
)
ModelTell.Generate_Model(
dataClass=data,
telluric_configs={"continuum_percentage_drop": 1},
force_computation=False,
store_templates=True,
)
from pathlib import Path
from ASTRA.data_objects import DataClassManager
from ASTRA.data_objects.DataClass import DataClass
from ASTRA.Instruments import ESPRESSO
from ASTRA.template_creation.TelluricModel import TelluricModel
from ASTRA.utils.choices import TELLURIC_CREATION_MODE, TELLURIC_EXTENSION
storage_path = Path("../../tmp")
manager = DataClassManager()
manager.start()
data: DataClass = manager.DataClass(
list(Path("/home/amiguel/spectra_collection/ESPRESSO/proxima").glob("*.fits")),
storage_path=storage_path,
instrument=ESPRESSO,
)
ModelTell = TelluricModel(
usage_mode="individual",
user_configs={"CREATION_MODE": TELLURIC_CREATION_MODE.telfit,
"EXTENSION_MODE": TELLURIC_EXTENSION.LINES},
root_folder_path=storage_path,
)
ModelTell.Generate_Model(
dataClass=data,
telluric_configs={"continuum_percentage_drop": 1},
force_computation=False,
store_templates=True,
)
2025-04-15 15:23:44.309 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:216 - Generating internal configs of - 2025-04-15 15:23:44.314 | INFO | ASTRA.utils.UserConfigs:receive_user_inputs:221 - Checking for any parameter that will take default value 2025-04-15 15:23:44.316 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <SAVE_DISK_SPACE> using the default value: DISK_SAVE_MODE.DISABLED 2025-04-15 15:23:44.318 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <WORKING_MODE> using the default value: WORKING_MODE.ONE_SHOT 2025-04-15 15:23:44.322 | INFO | ASTRA.data_objects.DataClass:__init__:126 - DataClass opening 3 files from a list/tuple 2025-04-15 15:23:44.324 | INFO | ASTRA.base_models.Frame:__init__:252 - Creating frame from: /home/amiguel/spectra_collection/ESPRESSO/proxima/r.ESPRE.2019-07-03T01:43:39.634_S2D_A.fits 2025-04-15 15:23:44.327 | WARNING | ASTRA.Components.SpectrumComponent:regenerate_order_status:96 - Resetting order status of Frame - ESPRESSO 2025-04-15 15:23:44.351 | DEBUG | ASTRA.base_models.Frame:assess_bad_orders:710 - Rejecting spectral orders 2025-04-15 15:23:44.357 | INFO | ASTRA.base_models.Frame:assess_bad_orders:740 - Frame 9211860738973677165 rejected 37 orders for having SNR smaller than 5: 0-36 2025-04-15 15:23:44.752 | INFO | ASTRA.base_models.Frame:__init__:252 - Creating frame from: /home/amiguel/spectra_collection/ESPRESSO/proxima/r.ESPRE.2019-07-14T02:07:49.063_S2D_A.fits 2025-04-15 15:23:44.754 | WARNING | ASTRA.Components.SpectrumComponent:regenerate_order_status:96 - Resetting order status of Frame - ESPRESSO 2025-04-15 15:23:44.777 | DEBUG | ASTRA.base_models.Frame:assess_bad_orders:710 - Rejecting spectral orders 2025-04-15 15:23:44.780 | INFO | ASTRA.base_models.Frame:assess_bad_orders:740 - Frame -2338102534959840306 rejected 15 orders for having SNR smaller than 5: 0-12, 32-33 2025-04-15 15:23:44.783 | INFO | ASTRA.base_models.Frame:__init__:252 - Creating frame from: /home/amiguel/spectra_collection/ESPRESSO/proxima/r.ESPRE.2019-07-20T01:43:40.032_S2D_A.fits 2025-04-15 15:23:44.785 | WARNING | ASTRA.Components.SpectrumComponent:regenerate_order_status:96 - Resetting order status of Frame - ESPRESSO 2025-04-15 15:23:44.801 | DEBUG | ASTRA.base_models.Frame:assess_bad_orders:710 - Rejecting spectral orders 2025-04-15 15:23:44.804 | INFO | ASTRA.base_models.Frame:assess_bad_orders:740 - Frame -8700540904792705412 rejected 16 orders for having SNR smaller than 5: 0-13, 32-33 2025-04-15 15:23:44.807 | DEBUG | ASTRA.data_objects.DataClass:__init__:154 - Selected 3 observations from disk 2025-04-15 15:23:44.809 | INFO | ASTRA.data_objects.DataClass:_collect_MetaData:369 - Collecting MetaData from the observations 2025-04-15 15:23:44.811 | WARNING | ASTRA.data_objects.Target:__init__:73 - Target dictionary not found in <None> 2025-04-15 15:23:44.813 | DEBUG | ASTRA.data_objects.Target:clean_targ_list:98 - Parsing through loaded OBJECTs 2025-04-15 15:23:44.815 | INFO | ASTRA.data_objects.Target:__init__:92 - Validated target to be V V645 Cen 2025-04-15 15:23:44.817 | INFO | ASTRA.data_objects.DataClass:show_loadedData_table:885 - -------------------------------------------------------------------- -------------------------------------------------------------------- subInstrument Total OBS Valid OBS [warnings] INVALID OBS -------------------------------------------------------------------- ESPRESSO18 0 0 [0] 0 ESPRESSO19 3 3 [0] 0 Total 3 3 [0] 0 -------------------------------------------------------------------- 2025-04-15 15:23:44.819 | INFO | ASTRA.data_objects.DataClass:load_instrument_extra_information:894 - Checking if the instrument has extra data to load 2025-04-15 15:23:44.821 | INFO | ASTRA.data_objects.DataClass:load_instrument_extra_information:901 - Current instrument does not need to load anything from the outside 2025-04-15 15:23:44.830 | INFO | ASTRA.base_models.TemplateFramework:__init__:72 - Starting Telluric Model 2025-04-15 15:23:44.832 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:216 - Generating internal configs of BASE - TemplateFramework 2025-04-15 15:23:44.834 | DEBUG | ASTRA.utils.UserConfigs:update_configs_with_values:198 - Configuration <CREATION_MODE> taking the value: TELLURIC_CREATION_MODE.telfit 2025-04-15 15:23:44.835 | INFO | ASTRA.utils.UserConfigs:receive_user_inputs:221 - Checking for any parameter that will take default value 2025-04-15 15:23:44.836 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <SAVE_DISK_SPACE> using the default value: DISK_SAVE_MODE.DISABLED 2025-04-15 15:23:44.837 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <WORKING_MODE> using the default value: WORKING_MODE.ONE_SHOT 2025-04-15 15:23:44.839 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <APPLICATION_MODE> using the default value: TELLURIC_APPLICATION_MODE.removal 2025-04-15 15:23:44.840 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <EXTENSION_MODE> using the default value: TELLURIC_EXTENSION.LINES 2025-04-15 15:23:44.845 | INFO | ASTRA.template_creation.TelluricModel:__init__:91 - Starting Telluric Model 2025-04-15 15:23:44.847 | DEBUG | ASTRA.base_models.TemplateFramework:Generate_Model:138 - Starting the creation of Telluric models! 2025-04-15 15:23:44.848 | INFO | ASTRA.base_models.TemplateFramework:Generate_Model:141 - Attempting to load previous Templates from disk before creating them 2025-04-15 15:23:44.850 | DEBUG | ASTRA.base_models.TemplateFramework:load_templates_from_disk:178 - Searching in : ../../tmp/templates/Telluric for TELLURIC_CREATION_MODE.telfit 2025-04-15 15:23:44.852 | INFO | ASTRA.template_creation.TelluricModel:_find_templates_from_disk:180 - Loading Telluric template from disk inside directory 2025-04-15 15:23:44.853 | INFO | ASTRA.template_creation.TelluricModel:_find_templates_from_disk:181 - ../../tmp/templates/Telluric 2025-04-15 15:23:44.855 | INFO | ASTRA.template_creation.TelluricModel:_find_templates_from_disk:192 - Found 0 available templates: [] of type TELLURIC_CREATION_MODE.telfit 2025-04-15 15:23:44.856 | CRITICAL | ASTRA.template_creation.TelluricModel:_find_templates_from_disk:199 - Could not find templates to load! 2025-04-15 15:23:44.857 | INFO | ASTRA.base_models.TemplateFramework:Generate_Model:145 - No templates to load from disk. Creating all from scratch 2025-04-15 15:23:44.861 | INFO | ASTRA.template_creation.TelluricModel:_compute_template:205 - Using template of type: TELLURIC_CREATION_MODE.telfit 2025-04-15 15:23:44.863 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:216 - Generating internal configs of telfit-Telluric from ESPRESSO18 2025-04-15 15:23:44.864 | INFO | ASTRA.utils.UserConfigs:receive_user_inputs:221 - Checking for any parameter that will take default value 2025-04-15 15:23:44.865 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <SAVE_DISK_SPACE> using the default value: DISK_SAVE_MODE.DISABLED 2025-04-15 15:23:44.867 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <WORKING_MODE> using the default value: WORKING_MODE.ONE_SHOT 2025-04-15 15:23:44.868 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <continuum_percentage_drop> using the default value: 1 2025-04-15 15:23:44.870 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <force_download> using the default value: False 2025-04-15 15:23:44.871 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <inverse_mask> using the default value: False 2025-04-15 15:23:44.872 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <atmosphere_profile> using the default value: GDAS 2025-04-15 15:23:44.873 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <FIT_MODEL> using the default value: False 2025-04-15 15:23:44.874 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <TELFIT_HUMIDITY_THRESHOLD> using the default value: -1 2025-04-15 15:23:44.875 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <FIT_WAVELENGTH_STEP_SIZE> using the default value: 0.001 2025-04-15 15:23:44.876 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <PARAMS_TO_FIT> using the default value: ['pressure', 'humidity'] 2025-04-15 15:23:44.876 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <USE_GRID_OF_TRANSMITTANCE> using the default value: False 2025-04-15 15:23:44.877 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <GRID_MAIN_PATH> using the default value: None 2025-04-15 15:23:44.877 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <IND_WATER_MASK_THRESHOLD> using the default value: 100000000.0 2025-04-15 15:23:44.878 | WARNING | ASTRA.Components.SpectrumComponent:regenerate_order_status:96 - Resetting order status of telfit-Telluric from ESPRESSO18 2025-04-15 15:23:44.879 | DEBUG | ASTRA.template_creation.telluric_templates.Telluric_Template:load_information_from_DataClass:166 - Template telfit-Telluric from ESPRESSO18 loading data from the dataClass 2025-04-15 15:23:44.881 | WARNING | ASTRA.template_creation.telluric_templates.Telluric_Template:_load_BERV_info:200 - ESPRESSO18 has no valid observations. Not computing telluric template 2025-04-15 15:23:44.886 | INFO | ASTRA.template_creation.telluric_templates.Telluric_Template:create_telluric_template:313 - Starting creation of Telluric template from ESPRESSO18 2025-04-15 15:23:44.887 | WARNING | ASTRA.template_creation.telluric_templates.Telluric_Template:_search_reference_frame:256 - ESPRESSO18 has no valid observations. Not computing telluric template 2025-04-15 15:23:44.888 | WARNING | ASTRA.base_models.Template_Model:_base_checks_for_template_creation:102 - Template will not be created. Check previous error messages 2025-04-15 15:23:44.890 | INFO | ASTRA.template_creation.TelluricModel:_compute_template:205 - Using template of type: TELLURIC_CREATION_MODE.telfit 2025-04-15 15:23:44.891 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:216 - Generating internal configs of telfit-Telluric from ESPRESSO19 2025-04-15 15:23:44.892 | INFO | ASTRA.utils.UserConfigs:receive_user_inputs:221 - Checking for any parameter that will take default value 2025-04-15 15:23:44.894 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <SAVE_DISK_SPACE> using the default value: DISK_SAVE_MODE.DISABLED 2025-04-15 15:23:44.895 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <WORKING_MODE> using the default value: WORKING_MODE.ONE_SHOT 2025-04-15 15:23:44.895 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <continuum_percentage_drop> using the default value: 1 2025-04-15 15:23:44.897 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <force_download> using the default value: False 2025-04-15 15:23:44.898 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <inverse_mask> using the default value: False 2025-04-15 15:23:44.899 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <atmosphere_profile> using the default value: GDAS 2025-04-15 15:23:44.900 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <FIT_MODEL> using the default value: False 2025-04-15 15:23:44.901 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <TELFIT_HUMIDITY_THRESHOLD> using the default value: -1 2025-04-15 15:23:44.902 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <FIT_WAVELENGTH_STEP_SIZE> using the default value: 0.001 2025-04-15 15:23:44.903 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <PARAMS_TO_FIT> using the default value: ['pressure', 'humidity'] 2025-04-15 15:23:44.907 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <USE_GRID_OF_TRANSMITTANCE> using the default value: False 2025-04-15 15:23:44.909 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <GRID_MAIN_PATH> using the default value: None 2025-04-15 15:23:44.910 | DEBUG | ASTRA.utils.UserConfigs:receive_user_inputs:228 - Configuration <IND_WATER_MASK_THRESHOLD> using the default value: 100000000.0 2025-04-15 15:23:44.911 | WARNING | ASTRA.Components.SpectrumComponent:regenerate_order_status:96 - Resetting order status of telfit-Telluric from ESPRESSO19 2025-04-15 15:23:44.913 | DEBUG | ASTRA.template_creation.telluric_templates.Telluric_Template:load_information_from_DataClass:166 - Template telfit-Telluric from ESPRESSO19 loading data from the dataClass 2025-04-15 15:23:44.924 | DEBUG | ASTRA.template_creation.telluric_templates.Telluric_Template:_generate_model_parameters:150 - Generating the parameters of the model applied in telfit-Telluric from ESPRESSO19 2025-04-15 15:23:44.925 | INFO | ASTRA.ModelParameters.Model:generate_priors:20 - Generating priors of the model' parameters 2025-04-15 15:23:45.246 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_generate_model_parameters:723 - telfit-Telluric from ESPRESSO19 not fitting temperature. Fixing it to initial guess 2025-04-15 15:23:45.248 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_generate_model_parameters:723 - telfit-Telluric from ESPRESSO19 not fitting co2. Fixing it to initial guess 2025-04-15 15:23:45.249 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_generate_model_parameters:723 - telfit-Telluric from ESPRESSO19 not fitting ch4. Fixing it to initial guess 2025-04-15 15:23:45.251 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_generate_model_parameters:723 - telfit-Telluric from ESPRESSO19 not fitting n2o. Fixing it to initial guess 2025-04-15 15:23:45.252 | INFO | ASTRA.template_creation.telluric_templates.Telluric_Template:create_telluric_template:313 - Starting creation of Telluric template from ESPRESSO19 2025-04-15 15:23:45.256 | DEBUG | ASTRA.template_creation.telluric_templates.Telluric_Template:_search_reference_frame:271 - Using Relative humidity as the selection criterion for reference observation 2025-04-15 15:23:45.264 | INFO | ASTRA.template_creation.telluric_templates.Telluric_Template:_search_reference_frame:300 - Telluric Template from ESPRESSO19 using Frame of ESPRESSO : ESPRESSO19 data (2019-07-03T01:43:39.634; ID = 9211860738973677165) as the reference 2025-04-15 15:23:45.265 | INFO | ASTRA.template_creation.telluric_templates.Telluric_Template:create_telluric_template:336 - Starting telluric template creation, with reference ID = 9211860738973677165 2025-04-15 15:23:45.266 | WARNING | ASTRA.ModelParameters.Parameter:disable_param:263 - Attempting to disable param that is already disabled: temperature 2025-04-15 15:23:45.267 | WARNING | ASTRA.ModelParameters.Parameter:disable_param:263 - Attempting to disable param that is already disabled: co2 2025-04-15 15:23:45.268 | WARNING | ASTRA.ModelParameters.Parameter:disable_param:263 - Attempting to disable param that is already disabled: ch4 2025-04-15 15:23:45.269 | WARNING | ASTRA.ModelParameters.Parameter:disable_param:263 - Attempting to disable param that is already disabled: n2o 2025-04-15 15:23:45.275 | DEBUG | ASTRA.template_creation.telluric_templates.telluric_from_telfit:create_telluric_template:602 - Parameters in use: ['temperature', 'pressure', 'humidity', 'co2', 'ch4', 'n2o'] 2025-04-15 15:23:45.277 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:create_telluric_template:603 - Using params: [280.64, 750, 20.0, 385.34, 1819.0, 325.1] /home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/locations.py:47: UserWarning: PYSYN_CDBS is undefined; functionality will be SEVERELY crippled. warnings.warn("PYSYN_CDBS is undefined; functionality will be SEVERELY " /home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/locations.py:346: UserWarning: Extinction files not found in extinction warnings.warn('Extinction files not found in %s' % (extdir, )) /home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/refs.py:117: UserWarning: No graph or component tables found; functionality will be SEVERELY crippled. No files found for http://ssb.stsci.edu/cdbs_open/cdbs/mtab/*_tmg.fits warnings.warn('No graph or component tables found; ' /home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/refs.py:124: UserWarning: No thermal tables found, no thermal calculations can be performed. No files found for http://ssb.stsci.edu/cdbs_open/cdbs/mtab/*_tmt.fits warnings.warn('No thermal tables found, ' 2025-04-15 15:23:47.296 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:configure_modeler:367 - Configuring the Telfit modeler for Frame of ESPRESSO : ESPRESSO19 data (2019-07-03T01:43:39.634; ID = 9211860738973677165) 2025-04-15 15:23:47.297 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_prepare_GDAS_data:280 - Preparing GDAS data load! 2025-04-15 15:23:47.298 | DEBUG | ASTRA.internals.cache:__init__:26 - Launching new DB connection 2025-04-15 15:23:47.304 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_prepare_GDAS_data:287 - Launching GDAS profile downloader 2025-04-15 15:23:47.306 | WARNING | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_prepare_GDAS_data:293 - Iterating over other possible frames to search for a working reference 2025-04-15 15:23:47.308 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_prepare_GDAS_data:317 - Starting loop to retrive GDAS profile 2025-04-15 15:23:47.319 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_prepare_GDAS_data:328 - Using cached version of the GDAS profile 2025-04-15 15:23:47.321 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:_prepare_GDAS_data:361 - Finished setup of GDAS profile 2025-04-15 15:23:47.326 | INFO | ASTRA.template_creation.telluric_templates.telluric_from_telfit:configure_modeler:422 - Finished configurating the modeler 2025-04-15 15:24:32.996 | INFO | ASTRA.utils.telluric_utilities.binary_mask_from_template:create_binary_template:16 - Converting from transmittance spectra to binary mask! 2025-04-15 15:24:33.232 | INFO | ASTRA.template_creation.telluric_templates.Telluric_Template:_compute_wave_blocks:385 - Creating list of blocked features due to tellurics 2025-04-15 15:24:33.233 | INFO | ASTRA.template_creation.telluric_templates.Telluric_Template:_compute_wave_blocks:387 - Extending telluric features with the mode: <TELLURIC_EXTENSION.LINES> 2025-04-15 15:24:37.078 | INFO | ASTRA.base_models.TemplateFramework:store_templates_to_disk:277 - Storing templates from <Telluric> under the directory 2025-04-15 15:24:37.079 | INFO | ASTRA.base_models.TemplateFramework:store_templates_to_disk:281 - ../../tmp/templates/Telluric 2025-04-15 15:24:37.080 | INFO | ASTRA.base_models.Template_Model:trigger_data_storage:95 - The template from ESPRESSO18 was not created. Storing nothing to disk 2025-04-15 15:24:37.081 | INFO | ASTRA.base_models.Template_Model:store_template:119 - Storing telfit-Telluric from ESPRESSO19 to disk 2025-04-15 15:24:37.082 | WARNING | ASTRA.base_models.Template_Model:store_template:135 - Disabled removal of old disk files! 2025-04-15 15:25:10.822 | DEBUG | ASTRA.template_creation.telluric_templates.Telluric_Template:store_template:597 - Storing template to ../../tmp/templates/Telluric/telfit_Telluric_ESPRESSO19.fits
After the model is constructed, we can remove the tellurics from all observations at once through
In [2]:
Copied!
data.remove_telluric_features(ModelTell)
data.remove_telluric_features(ModelTell)
/home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/locations.py:47: UserWarning: PYSYN_CDBS is undefined; functionality will be SEVERELY crippled. warnings.warn("PYSYN_CDBS is undefined; functionality will be SEVERELY " /home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/locations.py:346: UserWarning: Extinction files not found in extinction warnings.warn('Extinction files not found in %s' % (extdir, )) /home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/refs.py:117: UserWarning: No graph or component tables found; functionality will be SEVERELY crippled. No files found for http://ssb.stsci.edu/cdbs_open/cdbs/mtab/*_tmg.fits warnings.warn('No graph or component tables found; ' /home/amiguel/development/ASTRA/.venv/lib/python3.12/site-packages/pysynphot/refs.py:124: UserWarning: No thermal tables found, no thermal calculations can be performed. No files found for http://ssb.stsci.edu/cdbs_open/cdbs/mtab/*_tmt.fits warnings.warn('No thermal tables found, '