Add host galaxy spectrum download feature - #437
Conversation
|
A couple additional to-do things we discussed today: And future feature requests to enable spectra in blast will include: |
7f09370 to
40835f6
Compare
40835f6 to
7de4360
Compare
|
As of commit 0a04198, I have added the generation and display of the host spectrum plot on the transient page under the SED plot, done in the same way as the SED plot. The layout of the page might need to be revisited because the alignment and blank spaces are a bit awkward now. This resolves Issue #433. For now, I have commented out the download of spectra from NED because it is a very heterogenous dataset and homogenizing them all for plotting and the future spectral fitting might be a headache. The code currently only queries SPARCL for DESI and SDSS spectra, which are returned and placed in a uniform I have also bumped the Python version from 3.11 to 3.13 in Next steps will be to integrate spectral fitting into the workflow, but I will open a new Issue and PR for that. |

Resolves #432
Summary
Adds host galaxy spectrum download functionality to the Blast pipeline. Archival spectra are fetched from SPARCL (DESI-DR1, SDSS-DR17, BOSS-DR17) with a NED fallback, stored as FITS files via a new
HostSpectrummodel. The downstream goal is to feed these spectra into STARLIGHT for stellar population fitting (something likeHostSpectrumFitting).Changes
New model:
HostSpectrumHostvia ForeignKeyNew pipeline:
fetch_host_spectrum()(app/host/host_spectrum.py)New task:
host_spectrum_downloadhost_informationand alongsidemwebv_host,global_aperture_construction,local_aperture_photometryWorkflow placement (feedback please)
Not sure if this is the right place in the chain — flagging for review.
Bug Fix
TaskLock name mismatch in
query_sdss()(app/host/host_utils.py)The SDSS query lock was being acquired under one name and released under a different one.
TaskLock.objects.release_lock('sdss_query')(lowercase)TaskLock.objects.release_lock('SDSS_query')(matches acquire)Next steps for me
full_devend-to-end testing (waiting for my new computer)