Open bemiles opened 1 year ago
@jolielheureux test @kelle
current code:
#save text
data_out = n.vstack((wavelength, flux, flux_err, bands))
data_out = n.transpose(data_out)
header = ' Spectrum of VHS 1256b \n
The JWST Early Release Science Program for Direct Observations of Exoplanetary Systems II:\n
A 1 to 20 Micron Spectrum of the Planetary-Mass Companion VHS 1256-1257 b\n
NIRSpec Data Reduced by JWST pipeline version 1.7.2, CRDS version 11.16.12, CRDS context jwst_0977.pmap\n
MIRI Data Reduced by JWST pipeline version 1.7.2, CRDS version 11.16.12, CRDS context jwst_0977.pmap\n
Wavelength (microns), Flux (W/m^2/microns), Flux Error (W/m^2/microns), JWST Observing Mode'
n.savetxt('VHS1256b_V2.txt', data_out, fmt = '%s', delimiter=',',header = header)
@bemiles please take a look at #2 to review script for making spectra compatible for specutils
adding more information to output files of the data reduction