chemicalc.file_mgmt

chemicalc.file_mgmt.precomputed_res: List = [300000]

Resolution at which pre-computed spectral grids have been calculated.

Type

List[float]

chemicalc.file_mgmt.precomputed_alpha_included: List[str] = ['MSTO_m1.5', 'RGB_m1.0', 'RGB_m1.5', 'RGB_m2.0', 'RGB_m2.5', 'TRGB_m1.5', 'Ph_k0i_m0.0', 'Ph_k0i_m1.0', 'Ph_k5iii_m0.0', 'Ph_k5iii_m1.0']

Pre-computed spectral grids that include a bulk alpha offset.

Type

List[str]

chemicalc.file_mgmt.check_label_format(labelfile: Union[str, pathlib.Path]) → None

Warning: Not Implemented Yet

Parameters

labelfile (Union[str,Path]) –

Returns

chemicalc.file_mgmt.check_spec_format(specfile: Union[str, pathlib.Path]) → None

Warning: Not Implemented Yet

Parameters

specfile (Union[str,Path]) –

Returns

chemicalc.file_mgmt.download_package_files(id_str: str, destination: Union[str, pathlib.Path]) → None

Generic function to download large file from Google Drive

Parameters
  • id_str (str) – Google Drive file ID

  • destination (Union[str,Path]) – Path to download location

Returns

chemicalc.file_mgmt.download_bluemuse_files()

Downloads files necessary to call chemicalc.s2n.calculate_muse_snr()

Returns

chemicalc.file_mgmt.download_all_files(overwrite: bool = True) → None

Downloads all external files: Label File, Normalized Spectra File(s)

Parameters

overwrite (bool) – Overwrite existing files

Returns