Closed dhomeier closed 7 years ago
No, not this package. Look for https://github.com/spacetelescope/synphot_refactor for Astropy units and models.
Do you happen to know if JWST ETC is going to accept real units?
Background of this is, I will have to provide a number of spectral models for JWST calibration and analysis, and as long as the only accepted value for TUNIT2
is a string that is useless for most other applications and running against the recommendations of the FITS standard §4.3, this would effectively force me to maintain two copies of the spectral library with only a header keyword changed...
This is not the right place for ETC questions. Maybe @vglaidler can point us to the proper place for public requests.
Thanks, I'd appreciate that. Trying to check at the JWST Forum to find out what their strategy re. incompatible toolkit packages is.
Please submit questions regarding the JWST ETC at the JWST help desk, http://jwsthelp.stsci.edu. Thank you.
Apparently
pysynphot
is supposed to be compatible withastropy
, yet it does not accept FITS files in any flux "units" other than'Flam'
, which in turn is useless toastropy
, or likely any units-aware FITS reader.It would be near-trivial to at least add the corresponding canonical
astropy
spectral flux density wav
units'erg / (s cm2 Angstrom)'
,'erg / (Angstroms cm2 s)'
to thefactory
keys inunits.py
; or with a little bit more code to (try
to) importastropy.units
to test for all compatible unit names.Perhaps even better, unit parsing and optionally converting might be done directly in
_readFITS
.