PAHFIT / pahfit

Model Decomposition for Near- to Mid-Infrared Spectroscopy of Astronomical Sources
https://pahfit.readthedocs.io/
18 stars 26 forks source link

Integration of cube fitting #173

Open drvdputt opened 2 years ago

drvdputt commented 2 years ago

My work to make PAHFIT run on spectral cubes is in a separate repo: https://github.com/drvdputt/PAHFIT-cube.

The readme is quite outdated though. I initially tried some things based on a set of Spitzer cubes (LL1, LL2, SL1, and SL2). By now, it also works for MIRI cubes. (With work I mean the mechanics are there. The science packs are a whole other issue of course.)

Brief summary of the contents:

Main script run_pahfit_cube.py

Merging/reprojection scripts

Use of model trimming tool

Integration into PAHFIT

Now the question is: do we want to put all of this in the main PAHFIT repo, or in a separate package under the same organization? Considering both the run script and the instrument-specific reprojection tools mentioned above.

This could also be relevant for #34. The parallel fitting of the cube spectra could be generalized for use with many individual spectra (not necessarily from a cube).

jdtsmith commented 2 years ago

Hi @drvdputt, this looks very interesting. In principle I'm signed up to do some of this type of thing for various Cycle 1 proposals, and have some ideas about making the parallel/joint fits more performant/robust (i.e. not fully separate). I think it should definitely live in a separate repo, as a "driver" to the PAHFIT model (in all its glorious flexibility). cubePAHFIT?