# DACE file loader¶

class rapoc.loaders.DACEFileLoader(filename)[source]

File loader for DACE files. It works for opacities files in the binary format. These files can be downloaded from DACE website.

The scripts used to read the DACE files are inspired by petitRADTRANS.

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 DACE files as input. The binary files of the desired molecule should be stored in a dace_dir.

>>> from rapoc import Rosseland
>>> daceFileList = '/dace_dir'
>>> model = Rosseland(input_data=daceFileList)


Now the model is ready to be used

Warning

This method reads all the binary data in the indicated folder: the user must be cautios to indicate a directory that contains only the binary files of the desired molecule.

Parameters

filename (str) – data file name