Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using specutils to code a 3D spectra Time-series #1055

Open
Petra63 opened this issue Apr 19, 2023 · 0 comments
Open

Using specutils to code a 3D spectra Time-series #1055

Petra63 opened this issue Apr 19, 2023 · 0 comments

Comments

@Petra63
Copy link

Petra63 commented Apr 19, 2023

I have several FITS files that I have downloaded from DACE CCF spectra
(https://dace.unige.ch/sun/?)

I would like to create a 3d-spectra-timeseries-with-python

This is an example of one of the filenames on the DACE database
r.HARPN.2018-01-18T14:20:10.645_CCF_A.fits

XTENSION= 'IMAGE ' / IMAGE extension
BITPIX = -32 / number of bits per data pixel
NAXIS = 2 / number of data axes
NAXIS1 = 49 / length of data axis 1
NAXIS2 = 70 / length of data axis 2
PCOUNT = 0 / required keyword; must = 0
GCOUNT = 1 / required keyword; must = 1
EXTNAME = 'SCIDATA '
CHECKSUM= 'T9gHV8fFT8fFT8fF' / HDU checksum updated 2020-08-25T17:28:02
DATASUM = '2349888738' / data unit checksum updated 2020-08-25T17:28:02

I have attempted to follow the coding on the following site
(https://stellartrip.net/3d-spectra-timeseries-with-python/?lang=en)

However I am getting an errors, is there a standard code that I can use to add several FITS files to generate a MESHplot.
KeyError: "Keyword 'CDELT1' not found."

More info on the file
SIMPLE = T / file does conform to FITS standard
BITPIX = 8 / number of bits per data pixel
NAXIS = 0 / number of data axes
EXTEND = T / FITS dataset may contain extensions
COMMENT FITS (Flexible Image Transport System) format is defined in 'Astronomy
COMMENT and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H
DATE = '2020-08-25T17:28:02' / file creation date (YYYY-MM-DDThh:mm:ss UT)
VERSION = 120203 / Application parameter value
DWELL = 300000 / Application parameter value
RD_TIME = 0 / Application parameter value
RS_TIME = 383 / Application parameter value
FRM_TYPE= 1 / Application parameter value
NUM_EXPS= 1 / Application parameter value
EL_GAIN = 1 / Application parameter value
SPEED = 1 / Application parameter value
SER_REG = 0 / Application parameter value
CLK_MON1= 0 / Application parameter value
CLK_MON2= 1 / Application parameter value
TELESCOP= 'TNG '
TIMESYS = 'UTC ' / Explicit time scale specification
DATE-OBS= '2018-01-18T14:20:10.645' / Date and time of start of obs. in UTC
PROCESS = 'Single raw read' / Data processing mode
FILENAME= 'HARPN.2018-01-18T14-20-10.645.fits' / FITS file generatedName
TIME = '14:25:31' / Time FITS file was written

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant