desihub / fastspecfit

Fast spectral synthesis and emission-line fitting of DESI spectra.
https://fastspecfit.readthedocs.org
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

Running FastSpecFit on daily #153

Closed fprada closed 10 months ago

fprada commented 11 months ago

Hello, let me move this ticket over this repo following @moustakas recommendation.

See below our previous messages:

Hi @moustakas, this is a question from Elenea: I've tried to run FastSpecFit for daily data writting this line in the NERSC terminal: fastspec /global/cfs/cdirs/desi/survey/catalogs/main/LSS/daily/datcomb_BGS_ANY_tarwdup_zdone.fits --mp 128 --ntargets 100 --outfile fastspec-example.fits but I've got this error: ValueError: Redrockfile /global/cfs/cdirs/desi/survey/catalogs/main/LSS/daily/datcomb_BGS_ANY_tarwdup_zdone.fits missing standard prefix redrock-; please specify redrockfile_prefix argument. It has never happened to me when running FastSpecFit for Iron. Why does this happens?

@fprada it'd be better if we moved this ticket over to https://github.com/desihub/fastspecfit/issues, but briefly, this isn't going to work because the LSS daily catalogs don't include the spectra, which FastSpecFit needs. The message is just saying that by default it's looking for a file with a redrock- prefix because it "replaces" that prefix coadd- to find (and read) the spectra. You can bypass this assumption by explicitly passing the argument redrockfiles and `--specfile-prefix.

moustakas commented 10 months ago

Let's track this discussion in https://github.com/desihub/desispec/issues/2104.