Page 1 of 1

ISIS to .dat o.fit

Posted: Mon Dec 14, 2020 1:14 pm
by Andrew Smith
I have converted some CALSPEC spectrophotometry standatds to .dat as they are in Fits table format.

I have tried converting to normal fits using the ISIS-> profile -> save function and saving as .fit However I find there seems to be an error in the conversion. See the comparison.
ISIS Dat to Fit.png
ISIS Dat to Fit.png (44.46 KiB) Viewed 2478 times
Here is an image of the start of the .dat file
ISIS Dat to Fit1.png
ISIS Dat to Fit1.png (27.1 KiB) Viewed 2478 times
I think the issue is that ISIS is assuming a constant increment looking at the full .dat file the increment varies.

Regards Andrew

Re: ISIS to .dat o.fit

Posted: Mon Dec 14, 2020 6:04 pm
by David Boyd
Hello Andrew,

When I converted the NGSL files from FITS table format I had the same problem. I defined a regular wavelength spacing and quadratic interpolated the original flux grid onto that using interp1d to produce the simple FITS file version.

David