From 755f4dd5aa8bee02517070bb4724a013798b622d Mon Sep 17 00:00:00 2001 From: teutoburg Date: Fri, 20 Mar 2026 14:40:07 +0100 Subject: [PATCH 1/4] Cleanup yamls, rm outdated readme --- database/README.md | 79 ------------------------------- database/default_curves.yml | 6 +-- database/default_filters.yml | 90 ++++++++++++++++++------------------ database/default_spectra.yml | 8 ++-- database/index.yml | 64 ++++++++++++------------- 5 files changed, 80 insertions(+), 167 deletions(-) delete mode 100644 database/README.md diff --git a/database/README.md b/database/README.md deleted file mode 100644 index f78c5a1..0000000 --- a/database/README.md +++ /dev/null @@ -1,79 +0,0 @@ -# Database for speXtra - -Prototyping the speXtra database - -speXtra will be shipped with a single data file (besides the Vega spectrum) which -will contain the web location of the database - -The database will be organized as follow (re-using a bit the synphot CDBS structure) - - -``` -database -│ index.html -│ index.yml -│ -└───templates -│ │ -│ └─── library1 -│ │ │ contents.html -│ │ │ index.yml -│ │ │ spectral_template1.fits -│ │ │ spectral_template2.fits -│ │ │ ... -│ │ -│ └─── library2 -│ │ contents.html -│ │ index.yml -│ │ another_spectral_template1.ascii -│ │ ... -│ -└───extinction -│ │ extinction.html -│ │ extinction.yml -│ │ extinction_curve1.fits -│ │ extinction_curve2.fits -│ │ ... -│ -└───filters -``` - -# Libraries to add - -* [High-resolution Spectra for a Wide Range of Habitable Zone Planets around Sun-like Stars](https://arxiv.org/abs/2007.02420) - - - -# TODO - -Questions marks indicate that no decision has been made yet. - -* Add more filters to database - -* Spectra of bright objects? - -* Sky spectra at different resolutions? - -* Moon illumination? - - -* At the root directory, there should be a file describing the contents of -the database. Every time that data is added this file should be updated. - -* Ideally the format of the data file should allow to be displayed in a browser for -a quick look. Not sure if yaml fits the bill (hence the question marks) - - * yaml content can be acceptably displayed as markdown. Use something like - [zero-md](https://zerodevx.github.io/zero-md/) for that. - * [highlight.js](https://highlightjs.org/) is another option - -* Similarly each data directory should contain a file describing the contents, -like list of templates, a summary and references. - -* Data files should be readable by synphot - -* **Content files should be able to be parsed by speXtra and display the contents -to the user and/or pass them to the API** - -Following the same standard other datafiles can be added like filters, etc. - diff --git a/database/default_curves.yml b/database/default_curves.yml index 86f5245..722450b 100644 --- a/database/default_curves.yml +++ b/database/default_curves.yml @@ -1,3 +1,3 @@ -calzetti : "calzetti/starburst" -mw_diffuse : "cardelli/milkyway_diffuse" -mw_dense : "cardelli/milkyway_dense" +calzetti: "calzetti/starburst" +mw_diffuse: "cardelli/milkyway_diffuse" +mw_dense: "cardelli/milkyway_dense" diff --git a/database/default_filters.yml b/database/default_filters.yml index 314da1d..3787562 100644 --- a/database/default_filters.yml +++ b/database/default_filters.yml @@ -1,45 +1,45 @@ -U : "etc/U" -B : "etc/B" -V : "etc/V" -R : "etc/R" -I : "etc/I" -Z : "etc/Z" -Y : "etc/Y" -J : "etc/J" -H : "etc/H" -K : "etc/K" -Ks : "2MASS/2MASS.Ks" -L : "etc/L" -M : "etc/M" -N : "etc/N" -Q : "etc/Q" -u : "SLOAN/SDSS.u" -g : "SLOAN/SDSS.g" -r : "SLOAN/SDSS.r" -i : "SLOAN/SDSS.i" -z : "SLOAN/SDSS.z" -HAlpha : "Gemini/GMOS-N.Ha" -PaBeta : "Gemini/NIRI.PaBeta-G0221" -BrGamma : "Gemini/NIRI.BrG-G0218" -FUV : "GALEX/GALEX.FUV" -NUV : "GALEX/GALEX.NUV" -F435W : "HST/ACS_WFC.F435W" -F475W : "HST/ACS_WFC.F475W" -F606W : "HST/ACS_WFC.F606W" -F775W : "HST/ACS_WFC.F775W" -F814W : "HST/ACS_WFC.F814W" -F850LP : "HST/ACS_WFC.F850LP" -F105W : "HST/WFC3_IR.F105W" -F110W : "HST/WFC3_IR.F110W" -F125W : "HST/WFC3_IR.F125W" -F140W : "HST/WFC3_IR.F140W" -F160W : "HST/WFC3_IR.F160W" -ch1 : "Spitzer/IRAC.I1" -ch2 : "Spitzer/IRAC.I2" -ch3 : "Spitzer/IRAC.I3" -ch4 : "Spitzer/IRAC.I4" -W1 : "WISE/WISE.W1" -W2 : "WISE/WISE.W2" -W3 : "WISE/WISE.W3" -W4 : "WISE/WISE.W4" -G : "GAIA/GAIAO.G" +U: "etc/U" +B: "etc/B" +V: "etc/V" +R: "etc/R" +I: "etc/I" +Z: "etc/Z" +Y: "etc/Y" +J: "etc/J" +H: "etc/H" +K: "etc/K" +Ks: "2MASS/2MASS.Ks" +L: "etc/L" +M: "etc/M" +N: "etc/N" +Q: "etc/Q" +u: "SLOAN/SDSS.u" +g: "SLOAN/SDSS.g" +r: "SLOAN/SDSS.r" +i: "SLOAN/SDSS.i" +z: "SLOAN/SDSS.z" +HAlpha: "Gemini/GMOS-N.Ha" +PaBeta: "Gemini/NIRI.PaBeta-G0221" +BrGamma: "Gemini/NIRI.BrG-G0218" +FUV: "GALEX/GALEX.FUV" +NUV: "GALEX/GALEX.NUV" +F435W: "HST/ACS_WFC.F435W" +F475W: "HST/ACS_WFC.F475W" +F606W: "HST/ACS_WFC.F606W" +F775W: "HST/ACS_WFC.F775W" +F814W: "HST/ACS_WFC.F814W" +F850LP: "HST/ACS_WFC.F850LP" +F105W: "HST/WFC3_IR.F105W" +F110W: "HST/WFC3_IR.F110W" +F125W: "HST/WFC3_IR.F125W" +F140W: "HST/WFC3_IR.F140W" +F160W: "HST/WFC3_IR.F160W" +ch1: "Spitzer/IRAC.I1" +ch2: "Spitzer/IRAC.I2" +ch3: "Spitzer/IRAC.I3" +ch4: "Spitzer/IRAC.I4" +W1: "WISE/WISE.W1" +W2: "WISE/WISE.W2" +W3: "WISE/WISE.W3" +W4: "WISE/WISE.W4" +G: "GAIA/GAIAO.G" diff --git a/database/default_spectra.yml b/database/default_spectra.yml index 0289de7..f909033 100644 --- a/database/default_spectra.yml +++ b/database/default_spectra.yml @@ -1,5 +1,3 @@ -vega : "ref/vega" -sirus : "ref/sirius" -sun : "ref/sunHR" - - +vega: "ref/vega" +sirus: "ref/sirius" +sun: "ref/sunHR" diff --git a/database/index.yml b/database/index.yml index a5966b2..f42769a 100644 --- a/database/index.yml +++ b/database/index.yml @@ -1,40 +1,34 @@ -# Database contents - libraries: - ref : A library of reference stars - kc96 : Kinney-Calzetti Atlas - pickles : Pickles Stellar Library - dobos : SDSS galaxy composite spectra - irtf : IRTF spectral library - agn : AGN templates - nebulae : Emission line nebulae - brown : Galaxy SEDs from the UV to the Mid-IR - kurucz : Subset of Kurucz 1993 Models - sne : Supernova Legacy Survey - moehler : flux/telluric standards with X-Shooter - madden : High-Resolution Spectra of Habitable Zone Planets - bosz/hr : BOSZ stellar atmosphere Grid - High Resolution - bosz/mr : BOSZ stellar atmosphere Grid - Medium Resolution - bosz/lr : BOSZ stellar atmosphere Grid - Low Resolution - sky : Paranal sky background spectra - shapley : Rest-Frame Ultraviolet Spectra of z ∼ 3 Lyman Break Galaxies - etc/kinney : ESO ETC version of the Kinney-Calzetti Atlas - etc/kurucz : ESO ETC subset of the Kurucz 1993 models - etc/marcs/p : ESO ETC subset of the MARCS Stellar Models with Plane Parallel Geometry - etc/marcs/s : ESO ETC subset of the MARCS Stellar Models with Spherical Geometry - etc/misc : Other templates, nubulae and qso - etc/pickles : ESO ETC subset of the Pickles stellar library - + ref: Library of reference stars + kc96: Kinney-Calzetti Atlas + pickles: Pickles Stellar Library + dobos: SDSS galaxy composite spectra + irtf: IRTF spectral library + agn: AGN templates + nebulae: Emission line nebulae + brown: Galaxy SEDs from the UV to the Mid-IR + kurucz: Subset of Kurucz 1993 Models + sne: Supernova Legacy Survey + moehler: flux/telluric standards with X-Shooter + madden: High-Resolution Spectra of Habitable Zone Planets + bosz/hr: BOSZ stellar atmosphere Grid - High Resolution + bosz/mr: BOSZ stellar atmosphere Grid - Medium Resolution + bosz/lr: BOSZ stellar atmosphere Grid - Low Resolution + sky: Paranal sky background spectra + shapley: Rest-Frame Ultraviolet Spectra of z ∼ 3 Lyman Break Galaxies + etc/kinney: ESO ETC version of the Kinney-Calzetti Atlas + etc/kurucz: ESO ETC subset of the Kurucz 1993 models + etc/marcs/p: ESO ETC subset of the MARCS Stellar Models with Plane Parallel Geometry + etc/marcs/s: ESO ETC subset of the MARCS Stellar Models with Spherical Geometry + etc/misc: Other templates, nubulae and qso + etc/pickles: ESO ETC subset of the Pickles stellar library -# here go the extinction curves extinction_curves: - gordon : LMC and SMC extinction laws - cardelli : MW extinction laws - calzetti : extragalactic attenuation curves + gordon: LMC and SMC extinction laws + cardelli: MW extinction laws + calzetti: extragalactic attenuation curves -# here go filters not found at SVO filter_systems: - elt/micado : MICADO filters - elt/metis : METIS filters - etc : ESO ETC standard filters - + elt/micado: MICADO filters + elt/metis: METIS filters + etc: ESO ETC standard filters From 61057dc6cb8cd933f04078eeebeb13abadd03b9b Mon Sep 17 00:00:00 2001 From: teutoburg Date: Fri, 20 Mar 2026 16:35:08 +0100 Subject: [PATCH 2/4] rm duplicate pickles --- database/index.yml | 1 - database/libraries/etc/pickles/index.yml | 59 ------------------------ 2 files changed, 60 deletions(-) delete mode 100644 database/libraries/etc/pickles/index.yml diff --git a/database/index.yml b/database/index.yml index f42769a..2a8f919 100644 --- a/database/index.yml +++ b/database/index.yml @@ -21,7 +21,6 @@ libraries: etc/marcs/p: ESO ETC subset of the MARCS Stellar Models with Plane Parallel Geometry etc/marcs/s: ESO ETC subset of the MARCS Stellar Models with Spherical Geometry etc/misc: Other templates, nubulae and qso - etc/pickles: ESO ETC subset of the Pickles stellar library extinction_curves: gordon: LMC and SMC extinction laws diff --git a/database/libraries/etc/pickles/index.yml b/database/libraries/etc/pickles/index.yml deleted file mode 100644 index 73536f8..0000000 --- a/database/libraries/etc/pickles/index.yml +++ /dev/null @@ -1,59 +0,0 @@ -# Pickles Stellar Spectral Flux Library - -library_name : etc/pickles - -type : stars - -title : Pickles Stellar Spectral Flux Library (ESO ETC version) - -summary : | - This is a subset of Pickles Stellar Flux Library used in the ESO ETC. For the full version see here https://spextra.readthedocs.io/en/latest/spectral_libraries.html#pickles-stellar-library - -reference : Pickles, A. J. 1998, PASP, 110, 863 - -link : "https://www.eso.org/sci/facilities/paranal/decommissioned/isaac/tools/lib.html" - -spectral_coverage : - - uv - - vis - - nir - -resolution : 5 - -wave_unit: Angstrom - -flux_unit : FLAM - -wave_column_name : WAVELENGTH - -flux_column_name : FLUX - -data_type: ascii - -file_extension: .dat - -templates: # comments - a0v - a2v : null - a5v : null - b0v : null - b3v : null - f0v : null - f2v : null - f5v : null - g0v : null - g2v : null - g5v : null - k0v : null - k2v : null - k4v : null - k5v : null - k7v : null - m0v : null - m2v : null - m3v : null - m4v : null - m5v : null - m6v : null - o9v : null - From eb9813a24a4a6a61860cb92337d1a5a4ba4a6d74 Mon Sep 17 00:00:00 2001 From: teutoburg Date: Fri, 20 Mar 2026 21:10:04 +0100 Subject: [PATCH 3/4] rm duplicate kinney (identical to kc96) --- database/index.yml | 1 - database/libraries/etc/kinney/index.yml | 68 ------------------------- 2 files changed, 69 deletions(-) delete mode 100644 database/libraries/etc/kinney/index.yml diff --git a/database/index.yml b/database/index.yml index 2a8f919..1f63165 100644 --- a/database/index.yml +++ b/database/index.yml @@ -16,7 +16,6 @@ libraries: bosz/lr: BOSZ stellar atmosphere Grid - Low Resolution sky: Paranal sky background spectra shapley: Rest-Frame Ultraviolet Spectra of z ∼ 3 Lyman Break Galaxies - etc/kinney: ESO ETC version of the Kinney-Calzetti Atlas etc/kurucz: ESO ETC subset of the Kurucz 1993 models etc/marcs/p: ESO ETC subset of the MARCS Stellar Models with Plane Parallel Geometry etc/marcs/s: ESO ETC subset of the MARCS Stellar Models with Spherical Geometry diff --git a/database/libraries/etc/kinney/index.yml b/database/libraries/etc/kinney/index.yml deleted file mode 100644 index 5e6c74d..0000000 --- a/database/libraries/etc/kinney/index.yml +++ /dev/null @@ -1,68 +0,0 @@ -# THE KINNEY-CALZETTI SPECTRAL ATLAS OF GALAXIES - -library_name : etc/kinney - -type : galaxies - -title : The Kinney-Calzetti Spectral Atlas of Galaxies (ESO ETC version) - -summary : | - This is the ESO ETC version of the Kinney-Calzetti Spectral Atlas of Galaxies - - All spectra start at 1000A (bulge at 1235). - bulge and sc templates ends at ~7550A, - - WARNING!!! SPECTRA BEYOND 10000A (1 um) ARE NOT RELIABLE - - -reference : Kinney, A.L., Calzetti, D., Bohlin, R.C., McQuade, K., Storchi-Bergmann, T. & Schmitt, H.R. 1996, ApJ, 467, 38 - -link : "http://www.stsci.edu/hst/instrumentation/reference-data-for-calibration-and-tools/astronomical-catalogs/the-kinney-calzetti-spetral-atlas" - -spectral_coverage : - - uv - - vis - - nir - -resolution : 10 - -wave_unit: Angstrom - -flux_unit : FLAM - -wave_column_name : WAVELENGTH - -flux_column_name : FLUX - -data_type: ascii - -file_extension: .dat - -templates: # comments - ell : null - bulge : ends at 7545A - s0 : null - sa : null - sb : null - sc : end at 7660A - sb1 : starburst with E(B-V)<0.1 - sb2 : starburst with 0.11 Date: Fri, 20 Mar 2026 21:41:31 +0100 Subject: [PATCH 4/4] rm redundant readmes --- database/libraries/agn/AA_README_AGN | 53 ---------------- database/libraries/kc96/AA_README_KC96 | 60 ------------------- database/libraries/nebulae/AA_README_GALACTIC | 39 ------------ 3 files changed, 152 deletions(-) delete mode 100644 database/libraries/agn/AA_README_AGN delete mode 100644 database/libraries/kc96/AA_README_KC96 delete mode 100644 database/libraries/nebulae/AA_README_GALACTIC diff --git a/database/libraries/agn/AA_README_AGN b/database/libraries/agn/AA_README_AGN deleted file mode 100644 index a3fe784..0000000 --- a/database/libraries/agn/AA_README_AGN +++ /dev/null @@ -1,53 +0,0 @@ - - - THE AGN ATLAS - - -This atlas contains a few spectral templates of AGNs covering the -ultraviolet to near-infrared spectral range (see Table 1 for spectral -coverage). The LINER and Seyfert 2 templates have been obtained with the -large aperture (10" by 20") and low resolution spectrographs of the IUE -satellite. The optical spectra were obtained through a long slit with a 10" -width, were a window of 20" long was extracted to mach the IUE aperture -(Calzetti 1995, private comm.). The flux of the LINER and Seyfert2 templates -is normalized to a Johnson visual magnitude of 12.5 (STMAG). - -The Seyfert1 template consists of an UV spectrum obtained with the IUE low -resolution spectrographs and of a ground-based optical spectrum. The bright -QSO template is a composite spectrum from the Large Bright Quasar Survey -of Francie and collaborators (1991). The Seyfert1 and QSO spectral -templates are normalized to a Johnson blue magnitude of 12.5 (STMAG). - -The NGC 1068 template is a composite spectrum. The continuum contains the -nebular, stellar, and power-law contributions. The observed fluxes and FWHM -of the UV, optical and near-IR emission lines are also incorporated into the -template (J.R. Walsh, private comm; read also the header of the STSDAS binary -for further details). - -Details about how each template has been constructed can be found in the header -of the STSDAS binary file, or in the references given above. The header can be -read using the tupar task of the IRAF ttools package. STSDAS files can also be -dumped into an ASCII formatted file using the tdump task of the IRAF ttools package. - - - - - Table: List of Templates in the AGN Atlas - - - File Name Spectral coverage Comments - (angstroms) - - -liner_template 1235 - 7550 spectrum of M81 -seyfert2_template 1235 - 9945 average of various spectra -seyfert1_template 1132 - 7078 spectrum of NGC 5548 -qso_template 800 - 6000 average of various spectra -ngc1068_template 1000 - 11000 model: lines + cont. - - - -References ----------- - - Francis et al. 1991, ApJ 373, 465. diff --git a/database/libraries/kc96/AA_README_KC96 b/database/libraries/kc96/AA_README_KC96 deleted file mode 100644 index 2b5f99f..0000000 --- a/database/libraries/kc96/AA_README_KC96 +++ /dev/null @@ -1,60 +0,0 @@ - - - THE KINNEY-CALZETTI SPECTRAL ATLAS OF GALAXIES - - -This atlas contains a set of spectral templates of galaxies covering the -ultraviolet to near-infrared spectral range, i.e. from 0.12 up to 1 micron. -The ultraviolet range of the spectral templates has been obtained with the -large aperture (10" by 20") and low resolution spectrographs of the IUE -satellite. The optical spectra were obtained through a long slit with a 10" -width, were a window of 20" long was extracted to mach the IUE aperture. - -The spectral templates cover various galaxy morphological types from elliptical -to late type spiral. Starburst templates for low (E(B-V<0.10) to high -(0.61