pytmosph3r.model.hdf5model

Module Contents

class HDF5Model(filename: str, *args, **kwargs)[source]

Bases: pytmosph3r.model.model.FileModel

Model reading from HDF5. Same parameters as Model, with the addition of a filename.

Main class to control all submodules. Here you control everything.

Parameters:
  • output_file (str) – HDF5 output filename.

  • n_vertical (int) – Number of vertical layers for the altitude-based atmosphere (100 by default).

  • noise (float, array) – If a float, it gives the width of the errorbar (the output spectrum will be noised with a normal distribution scaled with this value). if an array, the noise is simply added to the spectrum. 0 by default.

  • interp – Interpolation of the pressure in the transformation of the input atmosphere into the altitude-based atmosphere. It may be either one the parameters to pass to scipy.interpolate.interp1d function (see ‘kind’ parameters) or False (default option). If it is set to false, the pressure will be recomputed using compute_pressure.

  • gas_dict – Dictionary containing the names of the gas and the keys to find them in the input file (diagfi, hdf5). Defaults to {‘H2O’: ‘h2o_vap’}.

  • aerosols_dict – Similar to gas_dict, it’s a dictionary containing the names of the aerosols (and their characteristics) and the keys to find them in the input file (diagfi, hdf5). If only the name of the molecule is given, the key is assumed to represent the MMR (mass molecular ratio in kg/kg). Example : {‘H2O’: ‘h2o_ice’, ‘H2O_reff’: ‘H2Oice_reff’}.

  • planet (Planet) – Planet object.

  • star (Star) – Star object (not optional).

  • input_atmosphere (InputAtmosphere) – Input atmospheric grid based on levels (and inter-layers).

  • observer (Observer) – Position of the observer (latitude, longitude).

  • opacity (Opacity) – Opacity parameters.

  • transmission (Transmission) – Transmission parameters.

  • emission (Emission) – Emission parameters.

  • lightcurve (Lightcurve) – Lightcurve parameters.

  • phasecurve (Phasecurve) – Phasecurve parameters.

  • kwargs (dict) – You can use set/override other parameters using this.

read_data(*args, **kwargs)[source]

This method is automated (see read()).