ExoMol file loader¶
- class rapoc.loaders.ExoMolFileLoader(filename, molecule=None)[source]¶
File loader for ExoMol file. It works for opacities file in the TauREx.h5 format. These file can be downloaded from ExoMol website.
Notes
This class is implicitly called by the model when initialised if the matched input is used.
Examples
Let’s build the Rosseland method using an Exomol file as input
>>> from rapoc import Rosseland >>> exomolFile = 'example.TauREx.h5' >>> model = Rosseland(input_data=exomolFile)
Now the model is ready to be used
- Parameters:
filename (str) – data file name
molecule (str) – forced molecule name