GaiaXPy 2.1.4__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/.gitignore +3 -5
- gaiaxpy-2.2.0/PKG-INFO +86 -0
- gaiaxpy-2.2.0/README.md +50 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/pyproject.toml +25 -18
- gaiaxpy-2.2.0/src/gaiaxpy/__init__.py +74 -0
- gaiaxpy-2.2.0/src/gaiaxpy/calibrator/__init__.py +6 -0
- gaiaxpy-2.2.0/src/gaiaxpy/calibrator/calibrator.py +367 -0
- gaiaxpy-2.2.0/src/gaiaxpy/calibrator/external_instrument_model.py +126 -0
- gaiaxpy-2.2.0/src/gaiaxpy/cholesky/__init__.py +7 -0
- gaiaxpy-2.2.0/src/gaiaxpy/cholesky/cholesky.py +240 -0
- gaiaxpy-2.2.0/src/gaiaxpy/colour_equation/__init__.py +6 -0
- gaiaxpy-2.2.0/src/gaiaxpy/colour_equation/xp_filter_system_colour_equation.py +422 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/__init__.py +8 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/calibrator_config/dr3/basic/bp_dr3_v375wi_bases.npz +0 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/calibrator_config/dr3/basic/bp_dr3_v375wi_dispersion.npz +0 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/calibrator_config/dr3/basic/bp_dr3_v375wi_response.npz +0 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/calibrator_config/dr3/basic/rp_dr3_v142r_bases.npz +0 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/calibrator_config/dr3/basic/rp_dr3_v142r_dispersion.npz +0 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/calibrator_config/dr3/basic/rp_dr3_v142r_response.npz +0 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/colour_eq_files/dr3/DR3_JkcStd_colour_eq.yaml +24 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/colour_eq_files/dr3/DR3_SdssStd_colour_eq.yaml +24 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/config.yaml +29 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/converter_config/dr3/OptimisedCalibratedBases_BpId32_RpId37_withNormalisation.npz +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-ElsCustomW09S2-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_ElsCustomW09S2-correction-factors.csv +1 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_EuclidVis-correction-factors.csv +19 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Gaia2-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Gaia2-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-GaiaDr3Vega-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_GaiaVega-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-HipparcosTycho-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_HipparcosTycho-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-HstAcswfc-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_HstAcswfc-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-HstHugsStd-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_HstHugsStd-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-HstWfc3uvis-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_HstWfc3uvis-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-HstWfpc2-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_HstWfpc2-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Iphas-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Iphas-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Jkc-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Jkc-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-JkcStd-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_JkcStd-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Jpas-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Jpas-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Jplus-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Jplus-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-JwstNircam-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_JwstNircam-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Panstarrs1-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Panstarrs1-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Panstarrs1Std-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Panstarrs1Std-correction-factors.csv +1 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Pristine-correction-factors.csv +19 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Sdss-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Sdss-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-SdssStd-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_SdssStd-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-SkyMapper-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_SkyMapper-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Stromgren-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Stromgren-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-StromgrenStd-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_StromgrenStd-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Wfirst-correction-factors.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/correction_tables/dr3/DIDREQ-465-DR3_Wfirst-correction-factors.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/TabulatedDispersionFunction-DR3-v375wiv142r_20200610.csv → gaiaxpy-2.2.0/src/gaiaxpy/config/dispersion/TabulatedDispersionFunction-DR3-v375wiv142r.csv +1 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/available_systems.txt → gaiaxpy-2.2.0/src/gaiaxpy/config/dr3_available_systems.txt +1 -1
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Decam_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_ElsCustomW09S2_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_EuclidVis_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Gaia2_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_GaiaAb_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_GaiaNominal_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_GaiaVega_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HCustom_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HalphaCustomAb_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HalphaCustom_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HipparcosTycho_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HstAcswfc_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HstHugsStd_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HstWfc3uvis_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_HstWfpc2_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_IphasCustomW09S2_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_IphasCustomW09_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_IphasCustom_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Iphas_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_JkcStd_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Jkc_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Jpas_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Jplus_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_JwstNircam_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Lsst_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Panstarrs1Std_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Panstarrs1_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Pristine_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_SdssStd_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Sdss_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_SkyMapper_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_SscAb_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_StromgrenStd_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Stromgren_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Ucustom_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/filters/dr3/XpFilter_Wfirst_v375wi_v142r.yaml +38 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/paths.py +49 -0
- gaiaxpy-2.2.0/src/gaiaxpy/config/xp_filter/dr3/XpFilter_v375wi_v142r.npz +0 -0
- gaiaxpy-2.2.0/src/gaiaxpy/converter/__init__.py +6 -0
- gaiaxpy-2.2.0/src/gaiaxpy/converter/config.py +108 -0
- gaiaxpy-2.2.0/src/gaiaxpy/converter/converter.py +266 -0
- gaiaxpy-2.2.0/src/gaiaxpy/core/config.py +208 -0
- gaiaxpy-2.2.0/src/gaiaxpy/core/config_dispatcher.py +272 -0
- gaiaxpy-2.2.0/src/gaiaxpy/core/config_metadata.py +123 -0
- gaiaxpy-2.2.0/src/gaiaxpy/core/custom_errors.py +40 -0
- gaiaxpy-2.2.0/src/gaiaxpy/core/dispersion_function.py +246 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/core/generic_functions.py +276 -150
- gaiaxpy-2.2.0/src/gaiaxpy/core/generic_variables.py +57 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/core/input_validator.py +32 -26
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/core/nature.py +3 -1
- gaiaxpy-2.2.0/src/gaiaxpy/core/output_metadata.py +53 -0
- gaiaxpy-2.2.0/src/gaiaxpy/core/pandas_compat.py +10 -0
- gaiaxpy-2.2.0/src/gaiaxpy/core/release_resolution.py +123 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/core/satellite.py +2 -3
- gaiaxpy-2.2.0/src/gaiaxpy/core/server.py +16 -0
- gaiaxpy-2.1.4/src/gaiaxpy/core/xml_utils.py → gaiaxpy-2.2.0/src/gaiaxpy/core/utils.py +3 -0
- gaiaxpy-2.2.0/src/gaiaxpy/error_correction/__init__.py +7 -0
- gaiaxpy-2.2.0/src/gaiaxpy/error_correction/error_corrector.py +488 -0
- gaiaxpy-2.2.0/src/gaiaxpy/error_correction/metadata.py +75 -0
- gaiaxpy-2.2.0/src/gaiaxpy/file_parser/__init__.py +16 -0
- gaiaxpy-2.1.4/src/gaiaxpy/file_parser/utils.py → gaiaxpy-2.2.0/src/gaiaxpy/file_parser/avro_utils.py +22 -4
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/file_parser/cast.py +31 -7
- gaiaxpy-2.2.0/src/gaiaxpy/file_parser/ecsv_utils.py +180 -0
- gaiaxpy-2.2.0/src/gaiaxpy/file_parser/parse_generic.py +365 -0
- gaiaxpy-2.2.0/src/gaiaxpy/file_parser/parse_internal_continuous.py +380 -0
- gaiaxpy-2.2.0/src/gaiaxpy/file_parser/parse_inverse.py +48 -0
- gaiaxpy-2.2.0/src/gaiaxpy/generator/__init__.py +7 -0
- gaiaxpy-2.2.0/src/gaiaxpy/generator/generator.py +215 -0
- gaiaxpy-2.2.0/src/gaiaxpy/generator/metadata.py +82 -0
- gaiaxpy-2.2.0/src/gaiaxpy/generator/multi_synthetic_photometry_generator.py +131 -0
- gaiaxpy-2.2.0/src/gaiaxpy/generator/synthetic_photometry_generator.py +70 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/__init__.py +6 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/archive_output.py +61 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/archive_reader.py +189 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/authentication.py +174 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/dataframe_numpy_array_reader.py +15 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/dataframe_reader.py +197 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/input_reader/dataframe_string_array_reader.py +25 -5
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/file_reader.py +156 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/input_reader/hdfs_reader.py +56 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/input_reader.py +204 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/list_reader.py +112 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/input_reader/local_file_reader.py +4 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/login_response.py +105 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/normalisation.py +115 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/query_reader.py +150 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/required_columns.py +354 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/source_ids.py +57 -0
- gaiaxpy-2.2.0/src/gaiaxpy/input_reader/zip_reader.py +119 -0
- gaiaxpy-2.2.0/src/gaiaxpy/output/__init__.py +8 -0
- gaiaxpy-2.2.0/src/gaiaxpy/output/metadata.py +331 -0
- gaiaxpy-2.2.0/src/gaiaxpy/output/output_data.py +214 -0
- gaiaxpy-2.2.0/src/gaiaxpy/output/photometry_data.py +159 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/output/sampled_spectra_data.py +124 -52
- gaiaxpy-2.2.0/src/gaiaxpy/output/utils.py +244 -0
- gaiaxpy-2.2.0/src/gaiaxpy/photometric_system/__init__.py +8 -0
- gaiaxpy-2.2.0/src/gaiaxpy/photometric_system/config.py +351 -0
- gaiaxpy-2.2.0/src/gaiaxpy/photometric_system/internal_photometric_system.py +370 -0
- gaiaxpy-2.2.0/src/gaiaxpy/photometric_system/photometric_system.py +500 -0
- gaiaxpy-2.2.0/src/gaiaxpy/photometric_system/regular_photometric_system.py +30 -0
- gaiaxpy-2.2.0/src/gaiaxpy/photometric_system/standardised_photometric_system.py +53 -0
- gaiaxpy-2.2.0/src/gaiaxpy/photometric_system/utils.py +93 -0
- gaiaxpy-2.2.0/src/gaiaxpy/plotter/__init__.py +7 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/plotter/multi_absolute.py +21 -7
- gaiaxpy-2.2.0/src/gaiaxpy/plotter/multi_xp.py +107 -0
- gaiaxpy-2.2.0/src/gaiaxpy/plotter/plot_spectra.py +135 -0
- gaiaxpy-2.2.0/src/gaiaxpy/plotter/plotter.py +115 -0
- gaiaxpy-2.2.0/src/gaiaxpy/plotter/single.py +62 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/__init__.py +7 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/absolute_sampled_spectrum.py +229 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/calibration_absolute_sampled_spectrum.py +103 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/generic_spectrum.py +22 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/multi_synthetic_photometry.py +155 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/photometric_absolute_sampled_spectrum.py +64 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/sampled_basis_functions.py +262 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/sampled_spectrum.py +172 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/single_synthetic_photometry.py +74 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/utils.py +96 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/xp_continuous_spectrum.py +87 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/xp_sampled_spectrum.py +238 -0
- gaiaxpy-2.2.0/src/gaiaxpy/spectrum/xp_spectrum.py +30 -0
- gaiaxpy-2.1.4/LICENSE +0 -28
- gaiaxpy-2.1.4/PKG-INFO +0 -46
- gaiaxpy-2.1.4/README.md +0 -10
- gaiaxpy-2.1.4/src/gaiaxpy/__init__.py +0 -15
- gaiaxpy-2.1.4/src/gaiaxpy/calibrator/calibrator.py +0 -226
- gaiaxpy-2.1.4/src/gaiaxpy/calibrator/external_instrument_model.py +0 -89
- gaiaxpy-2.1.4/src/gaiaxpy/cholesky/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/cholesky/cholesky.py +0 -179
- gaiaxpy-2.1.4/src/gaiaxpy/colour_equation/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/colour_equation/xp_filter_system_colour_equation.py +0 -259
- gaiaxpy-2.1.4/src/gaiaxpy/config/OptimisedCalibratedBases_BpId32_RpId37_withNormalisation.xml +0 -6073
- gaiaxpy-2.1.4/src/gaiaxpy/config/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/config/bpC03_v211w_bases.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/bpC03_v211w_dispersion.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/bpC03_v211w_response.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/bpC03_v375wi_bases.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/bpC03_v375wi_dispersion.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/bpC03_v375wi_response.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/colour_eq_files/JkcStd_colour_eq.ini +0 -11
- gaiaxpy-2.1.4/src/gaiaxpy/config/colour_eq_files/SdssStd_colour_eq.ini +0 -11
- gaiaxpy-2.1.4/src/gaiaxpy/config/config.ini +0 -16
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-EuclidVis-correction-factors.csv +0 -18
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-HipparcosTycho-correction-factors-old.csv +0 -18
- gaiaxpy-2.1.4/src/gaiaxpy/config/correction_tables/DIDREQ-465-Pristine-correction-factors.csv +0 -18
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Decam_v375wiv142r.xml +0 -603
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_ElsCustomW09S2_v375wiv142r.xml +0 -951
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_EuclidVis_v375wiv142r.xml +0 -139
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Gaia2_v375wiv142r.xml +0 -2343
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_GaiaDr3Ab_v375wiv142r.xml +0 -371
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_GaiaDr3Vega_v375wiv142r.xml +0 -371
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_GaiaNominal_v375wiv142r.xml +0 -371
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HCustom_v375wiv142r.xml +0 -5823
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HalphaCustomAb_v375wiv142r.xml +0 -1183
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HalphaCustom_v375wiv142r.xml +0 -1183
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HipparcosTycho_v375wiv142r.xml +0 -371
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HstAcswfc_v375wiv142r.xml +0 -1067
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HstHugsStd_v375wiv142r.xml +0 -371
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HstWfc3uvis_v375wiv142r.xml +0 -4083
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_HstWfpc2_v375wiv142r.xml +0 -2111
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_IphasCustomW09S2_v375wiv142r.xml +0 -951
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_IphasCustomW09_v375wiv142r.xml +0 -951
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_IphasCustom_v375wiv142r.xml +0 -719
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Iphas_v375wiv142r.xml +0 -371
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_JkcStd_v375wiv142r.xml +0 -603
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Jkc_v375wiv142r.xml +0 -603
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Jpas_v375wiv142r.xml +0 -6983
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Jplus_v375wiv142r.xml +0 -1415
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_JwstNircam_v375wiv142r.xml +0 -255
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Lsst_v375wiv142r.xml +0 -719
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Panstarrs1Std_v375wiv142r.xml +0 -603
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Panstarrs1_v375wiv142r.xml +0 -603
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Pristine_v375wiv142r.xml +0 -139
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_SdssStd_v375wiv142r.xml +0 -603
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Sdss_v375wiv142r.xml +0 -603
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_SkyMapper_v375wiv142r.xml +0 -835
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_SscAb_v375wiv142r.xml +0 -951
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_StromgrenStd_v375wiv142r.xml +0 -371
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Stromgren_v375wiv142r.xml +0 -487
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Ucustom_v375wiv142r.xml +0 -1299
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_Wfirst_v375wiv142r.xml +0 -255
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_v211wv142r.xml +0 -38776
- gaiaxpy-2.1.4/src/gaiaxpy/config/filters/XpFilter_v375wiv142r.xml +0 -38776
- gaiaxpy-2.1.4/src/gaiaxpy/config/fluxCal_20230901_renorm_bspline.xml +0 -167
- gaiaxpy-2.1.4/src/gaiaxpy/config/paths.py +0 -13
- gaiaxpy-2.1.4/src/gaiaxpy/config/rpC03_v142r_bases.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/rpC03_v142r_dispersion.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/config/rpC03_v142r_response.csv +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/converter/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/converter/config.py +0 -255
- gaiaxpy-2.1.4/src/gaiaxpy/converter/converter.py +0 -212
- gaiaxpy-2.1.4/src/gaiaxpy/core/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/core/config.py +0 -116
- gaiaxpy-2.1.4/src/gaiaxpy/core/custom_errors.py +0 -19
- gaiaxpy-2.1.4/src/gaiaxpy/core/dispersion_function.py +0 -143
- gaiaxpy-2.1.4/src/gaiaxpy/core/generic_variables.py +0 -11
- gaiaxpy-2.1.4/src/gaiaxpy/core/server.py +0 -2
- gaiaxpy-2.1.4/src/gaiaxpy/error_correction/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/error_correction/error_correction.py +0 -151
- gaiaxpy-2.1.4/src/gaiaxpy/file_parser/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/file_parser/parse_external.py +0 -74
- gaiaxpy-2.1.4/src/gaiaxpy/file_parser/parse_generic.py +0 -178
- gaiaxpy-2.1.4/src/gaiaxpy/file_parser/parse_internal_continuous.py +0 -234
- gaiaxpy-2.1.4/src/gaiaxpy/file_parser/parse_internal_sampled.py +0 -26
- gaiaxpy-2.1.4/src/gaiaxpy/file_parser/parse_inverse.py +0 -26
- gaiaxpy-2.1.4/src/gaiaxpy/generator/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/generator/config.py +0 -175
- gaiaxpy-2.1.4/src/gaiaxpy/generator/generator.py +0 -126
- gaiaxpy-2.1.4/src/gaiaxpy/generator/internal_photometric_system.py +0 -202
- gaiaxpy-2.1.4/src/gaiaxpy/generator/multi_synthetic_photometry_generator.py +0 -45
- gaiaxpy-2.1.4/src/gaiaxpy/generator/photometric_system.py +0 -151
- gaiaxpy-2.1.4/src/gaiaxpy/generator/regular_photometric_system.py +0 -25
- gaiaxpy-2.1.4/src/gaiaxpy/generator/standardised_photometric_system.py +0 -30
- gaiaxpy-2.1.4/src/gaiaxpy/generator/synthetic_photometry_generator.py +0 -53
- gaiaxpy-2.1.4/src/gaiaxpy/generator/utils.py +0 -33
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/archive_reader.py +0 -41
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/dataframe_numpy_array_reader.py +0 -9
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/dataframe_reader.py +0 -103
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/file_reader.py +0 -96
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/input_reader.py +0 -63
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/list_reader.py +0 -58
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/query_reader.py +0 -91
- gaiaxpy-2.1.4/src/gaiaxpy/input_reader/required_columns.py +0 -38
- gaiaxpy-2.1.4/src/gaiaxpy/output/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/output/continuous_spectra_data.py +0 -240
- gaiaxpy-2.1.4/src/gaiaxpy/output/output_data.py +0 -96
- gaiaxpy-2.1.4/src/gaiaxpy/output/photometry_data.py +0 -114
- gaiaxpy-2.1.4/src/gaiaxpy/output/utils.py +0 -157
- gaiaxpy-2.1.4/src/gaiaxpy/plotter/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/plotter/multi_xp.py +0 -53
- gaiaxpy-2.1.4/src/gaiaxpy/plotter/plot_spectra.py +0 -62
- gaiaxpy-2.1.4/src/gaiaxpy/plotter/plotter.py +0 -67
- gaiaxpy-2.1.4/src/gaiaxpy/plotter/single.py +0 -41
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/__init__.py +0 -0
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/absolute_sampled_spectrum.py +0 -124
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/calibration_absolute_sampled_spectrum.py +0 -47
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/generic_spectrum.py +0 -30
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/multi_synthetic_photometry.py +0 -90
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/photometric_absolute_sampled_spectrum.py +0 -35
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/sampled_basis_functions.py +0 -182
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/sampled_spectrum.py +0 -157
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/single_synthetic_photometry.py +0 -89
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/spectral_energy_distribution.py +0 -17
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/utils.py +0 -92
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/xp_continuous_spectrum.py +0 -115
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/xp_sampled_spectrum.py +0 -147
- gaiaxpy-2.1.4/src/gaiaxpy/spectrum/xp_spectrum.py +0 -33
- {gaiaxpy-2.1.4/src/gaiaxpy/calibrator → gaiaxpy-2.2.0/src/gaiaxpy/core}/__init__.py +0 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/core/version.py +0 -0
- {gaiaxpy-2.1.4 → gaiaxpy-2.2.0}/src/gaiaxpy/output/ecsv_headers/headers_dict.txt +0 -0
|
@@ -1,18 +1,15 @@
|
|
|
1
|
+
*.prof
|
|
1
2
|
*.pyc
|
|
2
3
|
.DS_Store
|
|
3
4
|
.coverage
|
|
4
5
|
coverage.xml
|
|
5
|
-
noxfile.py
|
|
6
|
-
src/gaiaxpy/_version.py
|
|
7
6
|
tox.ini
|
|
8
|
-
query_tests.py
|
|
9
7
|
.eggs/
|
|
10
8
|
.env/
|
|
11
9
|
.env10/
|
|
12
10
|
.idea/
|
|
13
11
|
.pytest_cache/
|
|
14
12
|
.svn/
|
|
15
|
-
.nox/
|
|
16
13
|
.tox/
|
|
17
14
|
__pycache__/
|
|
18
15
|
build/
|
|
@@ -21,4 +18,5 @@ docs/_build/
|
|
|
21
18
|
GaiaXPy.egg-info/
|
|
22
19
|
htmlcov/
|
|
23
20
|
junit/
|
|
24
|
-
|
|
21
|
+
lib/
|
|
22
|
+
venv/
|
gaiaxpy-2.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: GaiaXPy
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Utilities to handle BP/RP (XP) Gaia low-resolution spectra as delivered via the Gaia Archive.
|
|
5
|
+
Project-URL: homepage, https://gaia-dpci.github.io/GaiaXPy-website/
|
|
6
|
+
Project-URL: documentation, https://gaiaxpy.readthedocs.io/en/latest/
|
|
7
|
+
Author-email: Francesca De Angeli <fda@ast.cam.ac.uk>, Daniela Ruz-Mieres <dr540@ast.cam.ac.uk>, Paolo Montegriffo <paolo.montegriffo@inaf.it>, Rene Andrae <andrae@mpia.de>, Michele Bellazzini <michele.bellazzini@inaf.it>, Lovro Palaversa <lp@irb.hr>
|
|
8
|
+
Maintainer-email: Daniela Ruz-Mieres <dr540@ast.cam.ac.uk>
|
|
9
|
+
License-Expression: BSD-3-Clause
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Requires-Python: >=3.11
|
|
13
|
+
Requires-Dist: aenum
|
|
14
|
+
Requires-Dist: astropy!=7.0.0,!=7.0.1,>=5.3.3
|
|
15
|
+
Requires-Dist: astroquery
|
|
16
|
+
Requires-Dist: fastavro
|
|
17
|
+
Requires-Dist: hdfs
|
|
18
|
+
Requires-Dist: joblib
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Requires-Dist: numpy
|
|
21
|
+
Requires-Dist: packaging
|
|
22
|
+
Requires-Dist: pandas>=1.5.0
|
|
23
|
+
Requires-Dist: scipy>=1.10
|
|
24
|
+
Requires-Dist: tqdm>=4.66.3
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: flake8; extra == 'dev'
|
|
27
|
+
Requires-Dist: openpyxl>=3.1; extra == 'dev'
|
|
28
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
29
|
+
Requires-Dist: pytest-cov; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest-mock; extra == 'dev'
|
|
31
|
+
Provides-Extra: docs
|
|
32
|
+
Requires-Dist: hatch; extra == 'docs'
|
|
33
|
+
Requires-Dist: sphinx; extra == 'docs'
|
|
34
|
+
Requires-Dist: sphinx-rtd-theme; extra == 'docs'
|
|
35
|
+
Description-Content-Type: text/markdown
|
|
36
|
+
|
|
37
|
+
# GaiaXPy
|
|
38
|
+
|
|
39
|
+
GaiaXPy is a Python package for working with Gaia Data Release 3 (DR3) XP (BP/RP) spectra. After 2nd December 2026,
|
|
40
|
+
newer versions will also support Gaia DR4 XP spectra.
|
|
41
|
+
|
|
42
|
+
| Task | GaiaXPy tool |
|
|
43
|
+
| --- | --- |
|
|
44
|
+
| Sample continuous XP coefficients in pseudo-wavelength | `convert` |
|
|
45
|
+
| Reconstruct a flux spectrum on a wavelength grid in nm | `calibrate` |
|
|
46
|
+
| Compute synthetic photometry, including magnitudes, fluxes and flux errors | `generate` |
|
|
47
|
+
| Correct synthetic photometry flux errors where correction tables are available | `generate` with `error_correction=True`, or `apply_error_correction` |
|
|
48
|
+
| Plot sampled spectra | `plot_spectra` |
|
|
49
|
+
|
|
50
|
+
Input supports CSV, ECSV, FITS and XML/VOTable, including GZIP and ZIP files, as well as Gaia Archive source-ID lists
|
|
51
|
+
and tuples, ADQL queries and pandas DataFrames.
|
|
52
|
+
|
|
53
|
+
## Installation
|
|
54
|
+
|
|
55
|
+
To install the public release from PyPI:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
pip install GaiaXPy
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
For a development or pre-release version, see the [installation guide](https://gaiaxpy.readthedocs.io/en/latest/installation.html).
|
|
62
|
+
|
|
63
|
+
## Documentation and tutorials
|
|
64
|
+
|
|
65
|
+
- [GaiaXPy homepage and tutorials](https://gaia-dpci.github.io/GaiaXPy-website/)
|
|
66
|
+
- [GaiaXPy documentation](https://gaiaxpy.readthedocs.io/en/latest/)
|
|
67
|
+
- [Gaia Archive](https://archives.esac.esa.int/gaia/)
|
|
68
|
+
|
|
69
|
+
## Questions and feedback
|
|
70
|
+
|
|
71
|
+
For questions, bug reports or feature requests, use the [GitHub issue tracker](https://github.com/gaia-dpci/GaiaXPy/issues).
|
|
72
|
+
Bug reports should include the GaiaXPy and Python versions, the function call,
|
|
73
|
+
the complete error message and a small example that reproduces the issue.
|
|
74
|
+
|
|
75
|
+
## Citation
|
|
76
|
+
|
|
77
|
+
Cite the DOI corresponding to the GaiaXPy version used in your analysis.
|
|
78
|
+
See the [citation guide](https://gaiaxpy.readthedocs.io/en/latest/cite.html) for version-specific DOIs and references.
|
|
79
|
+
|
|
80
|
+
From version 2.2.0 onwards, GaiaXPy also includes metadata in its outputs to support reproducibility and traceability,
|
|
81
|
+
recording information about the processing run, and relevant configuration details. Find the relevant tutorial
|
|
82
|
+
in the [GaiaXPy website](https://gaia-dpci.github.io/GaiaXPy-website/tutorials.html).
|
|
83
|
+
|
|
84
|
+
## Licence
|
|
85
|
+
|
|
86
|
+
[BSD 3-Clause](LICENCE).
|
gaiaxpy-2.2.0/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# GaiaXPy
|
|
2
|
+
|
|
3
|
+
GaiaXPy is a Python package for working with Gaia Data Release 3 (DR3) XP (BP/RP) spectra. After 2nd December 2026,
|
|
4
|
+
newer versions will also support Gaia DR4 XP spectra.
|
|
5
|
+
|
|
6
|
+
| Task | GaiaXPy tool |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
| Sample continuous XP coefficients in pseudo-wavelength | `convert` |
|
|
9
|
+
| Reconstruct a flux spectrum on a wavelength grid in nm | `calibrate` |
|
|
10
|
+
| Compute synthetic photometry, including magnitudes, fluxes and flux errors | `generate` |
|
|
11
|
+
| Correct synthetic photometry flux errors where correction tables are available | `generate` with `error_correction=True`, or `apply_error_correction` |
|
|
12
|
+
| Plot sampled spectra | `plot_spectra` |
|
|
13
|
+
|
|
14
|
+
Input supports CSV, ECSV, FITS and XML/VOTable, including GZIP and ZIP files, as well as Gaia Archive source-ID lists
|
|
15
|
+
and tuples, ADQL queries and pandas DataFrames.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
To install the public release from PyPI:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pip install GaiaXPy
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
For a development or pre-release version, see the [installation guide](https://gaiaxpy.readthedocs.io/en/latest/installation.html).
|
|
26
|
+
|
|
27
|
+
## Documentation and tutorials
|
|
28
|
+
|
|
29
|
+
- [GaiaXPy homepage and tutorials](https://gaia-dpci.github.io/GaiaXPy-website/)
|
|
30
|
+
- [GaiaXPy documentation](https://gaiaxpy.readthedocs.io/en/latest/)
|
|
31
|
+
- [Gaia Archive](https://archives.esac.esa.int/gaia/)
|
|
32
|
+
|
|
33
|
+
## Questions and feedback
|
|
34
|
+
|
|
35
|
+
For questions, bug reports or feature requests, use the [GitHub issue tracker](https://github.com/gaia-dpci/GaiaXPy/issues).
|
|
36
|
+
Bug reports should include the GaiaXPy and Python versions, the function call,
|
|
37
|
+
the complete error message and a small example that reproduces the issue.
|
|
38
|
+
|
|
39
|
+
## Citation
|
|
40
|
+
|
|
41
|
+
Cite the DOI corresponding to the GaiaXPy version used in your analysis.
|
|
42
|
+
See the [citation guide](https://gaiaxpy.readthedocs.io/en/latest/cite.html) for version-specific DOIs and references.
|
|
43
|
+
|
|
44
|
+
From version 2.2.0 onwards, GaiaXPy also includes metadata in its outputs to support reproducibility and traceability,
|
|
45
|
+
recording information about the processing run, and relevant configuration details. Find the relevant tutorial
|
|
46
|
+
in the [GaiaXPy website](https://gaia-dpci.github.io/GaiaXPy-website/tutorials.html).
|
|
47
|
+
|
|
48
|
+
## Licence
|
|
49
|
+
|
|
50
|
+
[BSD 3-Clause](LICENCE).
|
|
@@ -5,23 +5,25 @@ build-backend = 'hatchling.build'
|
|
|
5
5
|
[project]
|
|
6
6
|
name = 'GaiaXPy'
|
|
7
7
|
dynamic = ['version']
|
|
8
|
-
description = 'Utilities to handle BP/RP (XP) Gaia low-resolution spectra as delivered via the Archive.'
|
|
8
|
+
description = 'Utilities to handle BP/RP (XP) Gaia low-resolution spectra as delivered via the Gaia Archive.'
|
|
9
9
|
readme = 'README.md'
|
|
10
|
-
requires-python = '>=3.
|
|
11
|
-
license = 'BSD-3-Clause'
|
|
10
|
+
requires-python = '>=3.11'
|
|
11
|
+
license = 'BSD-3-Clause'
|
|
12
12
|
license-files = ['LICENSE']
|
|
13
13
|
authors = [
|
|
14
|
-
{name = 'Francesca De Angeli', email = 'fda@ast.cam.ac.uk'},
|
|
15
|
-
{name = '
|
|
16
|
-
{name = '
|
|
17
|
-
{name = '
|
|
14
|
+
{ name = 'Francesca De Angeli', email = 'fda@ast.cam.ac.uk' },
|
|
15
|
+
{ name = 'Daniela Ruz-Mieres', email = 'dr540@ast.cam.ac.uk' },
|
|
16
|
+
{ name = 'Paolo Montegriffo', email = 'paolo.montegriffo@inaf.it' },
|
|
17
|
+
{ name = 'Rene Andrae', email = 'andrae@mpia.de'},
|
|
18
|
+
{ name = 'Michele Bellazzini', email = 'michele.bellazzini@inaf.it' },
|
|
19
|
+
{ name = 'Lovro Palaversa', email = 'lp@irb.hr' }
|
|
18
20
|
]
|
|
19
21
|
maintainers = [
|
|
20
|
-
{name = 'Daniela Ruz-Mieres', email = 'dr540@ast.cam.ac.uk'}
|
|
22
|
+
{ name = 'Daniela Ruz-Mieres', email = 'dr540@ast.cam.ac.uk' }
|
|
21
23
|
]
|
|
22
24
|
classifiers = [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
'Programming Language :: Python :: 3',
|
|
26
|
+
'Operating System :: OS Independent'
|
|
25
27
|
]
|
|
26
28
|
dependencies = [
|
|
27
29
|
'aenum',
|
|
@@ -29,11 +31,12 @@ dependencies = [
|
|
|
29
31
|
'astroquery',
|
|
30
32
|
'fastavro',
|
|
31
33
|
'hdfs',
|
|
34
|
+
'joblib',
|
|
32
35
|
'matplotlib',
|
|
33
36
|
'numpy',
|
|
34
37
|
'packaging',
|
|
35
38
|
'pandas>=1.5.0',
|
|
36
|
-
'scipy',
|
|
39
|
+
'scipy>=1.10',
|
|
37
40
|
'tqdm>=4.66.3'
|
|
38
41
|
]
|
|
39
42
|
|
|
@@ -42,7 +45,8 @@ dev = [
|
|
|
42
45
|
'pytest',
|
|
43
46
|
'pytest-cov',
|
|
44
47
|
'pytest-mock',
|
|
45
|
-
'flake8'
|
|
48
|
+
'flake8',
|
|
49
|
+
'openpyxl>=3.1'
|
|
46
50
|
]
|
|
47
51
|
docs = [
|
|
48
52
|
'hatch',
|
|
@@ -50,9 +54,14 @@ docs = [
|
|
|
50
54
|
'sphinx-rtd-theme'
|
|
51
55
|
]
|
|
52
56
|
|
|
53
|
-
[pytest]
|
|
54
|
-
addopts =
|
|
55
|
-
testpaths = 'tests'
|
|
57
|
+
[tool.pytest.ini_options]
|
|
58
|
+
addopts = ""
|
|
59
|
+
testpaths = ['tests']
|
|
60
|
+
markers = [
|
|
61
|
+
"archive: marks archive tests (deselect with '-m \"not archive\"')",
|
|
62
|
+
"plotter: marks plotter tests (deselect with '-m \"not plotter\"')",
|
|
63
|
+
"long: marks slow tests (deselect with '-m \"not long\"')"
|
|
64
|
+
]
|
|
56
65
|
|
|
57
66
|
# To build docs
|
|
58
67
|
[tool.hatch.envs.docs]
|
|
@@ -65,9 +74,7 @@ build = 'pip install -e .[docs] && sphinx-build docs docs/build'
|
|
|
65
74
|
allow-direct-references = true
|
|
66
75
|
|
|
67
76
|
[tool.hatch.version]
|
|
68
|
-
path = 'src/gaiaxpy/core/__init__.py'
|
|
69
77
|
source = 'vcs'
|
|
70
|
-
raw-options = {version_scheme = 'guess-next-dev', local_scheme = 'node-and-date'}
|
|
71
78
|
|
|
72
79
|
[tool.hatch.build]
|
|
73
80
|
packages = ['src']
|
|
@@ -80,4 +87,4 @@ packages = ['src/gaiaxpy']
|
|
|
80
87
|
|
|
81
88
|
[project.urls]
|
|
82
89
|
homepage = 'https://gaia-dpci.github.io/GaiaXPy-website/'
|
|
83
|
-
documentation = 'https://gaiaxpy.readthedocs.io/en/latest/'
|
|
90
|
+
documentation = 'https://gaiaxpy.readthedocs.io/en/latest/'
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
from .core.version import __version__
|
|
3
|
+
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"get_required_columns",
|
|
7
|
+
"calibrate",
|
|
8
|
+
"convert",
|
|
9
|
+
"generate",
|
|
10
|
+
"plot_spectra",
|
|
11
|
+
"apply_error_correction",
|
|
12
|
+
"PhotometricSystem",
|
|
13
|
+
"load_additional_systems",
|
|
14
|
+
"remove_additional_systems",
|
|
15
|
+
"get_chi2",
|
|
16
|
+
"get_inverse_covariance_matrix",
|
|
17
|
+
"get_inverse_square_root_covariance_matrix",
|
|
18
|
+
"pwl_to_wl",
|
|
19
|
+
"wl_to_pwl",
|
|
20
|
+
"pwl_range",
|
|
21
|
+
"wl_range"
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def __getattr__(name):
|
|
26
|
+
if name == 'get_required_columns':
|
|
27
|
+
from .input_reader.required_columns import get_required_columns
|
|
28
|
+
return get_required_columns
|
|
29
|
+
|
|
30
|
+
if name == "calibrate":
|
|
31
|
+
from .calibrator.calibrator import calibrate
|
|
32
|
+
return calibrate
|
|
33
|
+
|
|
34
|
+
if name == "generate":
|
|
35
|
+
from .generator.generator import generate
|
|
36
|
+
return generate
|
|
37
|
+
|
|
38
|
+
if name in {"PhotometricSystem", "load_additional_systems", "remove_additional_systems"}:
|
|
39
|
+
from .photometric_system.photometric_system import (
|
|
40
|
+
PhotometricSystem,
|
|
41
|
+
load_additional_systems,
|
|
42
|
+
remove_additional_systems
|
|
43
|
+
)
|
|
44
|
+
return locals()[name]
|
|
45
|
+
|
|
46
|
+
if name == "convert":
|
|
47
|
+
from .converter.converter import convert
|
|
48
|
+
return convert
|
|
49
|
+
|
|
50
|
+
if name == "plot_spectra":
|
|
51
|
+
from .plotter.plot_spectra import plot_spectra
|
|
52
|
+
return plot_spectra
|
|
53
|
+
|
|
54
|
+
if name == "apply_error_correction":
|
|
55
|
+
from .error_correction.error_corrector import apply_error_correction
|
|
56
|
+
return apply_error_correction
|
|
57
|
+
|
|
58
|
+
if name in {
|
|
59
|
+
"get_chi2",
|
|
60
|
+
"get_inverse_covariance_matrix",
|
|
61
|
+
"get_inverse_square_root_covariance_matrix"
|
|
62
|
+
}:
|
|
63
|
+
from .cholesky.cholesky import (
|
|
64
|
+
get_chi2,
|
|
65
|
+
get_inverse_covariance_matrix,
|
|
66
|
+
get_inverse_square_root_covariance_matrix
|
|
67
|
+
)
|
|
68
|
+
return locals()[name]
|
|
69
|
+
|
|
70
|
+
if name in {"pwl_to_wl", "wl_to_pwl", "pwl_range", "wl_range"}:
|
|
71
|
+
from .core.dispersion_function import pwl_to_wl, wl_to_pwl, pwl_range, wl_range
|
|
72
|
+
return locals()[name]
|
|
73
|
+
|
|
74
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"""Calibrate continuous BP/RP mean spectra onto a wavelength and flux scale.
|
|
2
|
+
|
|
3
|
+
The public entry point is gaiaxpy.calibrate. This package selects the external
|
|
4
|
+
calibration configuration, evaluates spectra on a common wavelength grid and
|
|
5
|
+
combines the available BP/RP contributions for each source.
|
|
6
|
+
"""
|