bemiles / JWST_VHS1256b_Reduction

NIRSpec reduction from The JWST Early Release Science Program for Direct Observations of Exoplanetary Systems II: A 1 to 20 Micron Spectrum of the Planetary-Mass Companion VHS 1256-1257 b
MIT License
6 stars 2 forks source link

Adding more metadata to make output spectra compatible with specutils #1

Open bemiles opened 1 year ago

bemiles commented 1 year ago

adding more information to output files of the data reduction

bemiles commented 1 year ago

@jolielheureux test @kelle

kelle commented 1 year ago

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)
jolielheureux commented 1 year ago

@bemiles please take a look at #2 to review script for making spectra compatible for specutils