JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

Problem with .fts file header keywords #188

Open afkowalski opened 1 year ago

afkowalski commented 1 year ago

Hi there,

I'm having trouble reading in a .fts file because the NAXISn keyword does not exist in the header. The NAXIS keyword exists. Note, this is a somewhat old data file used in solar physics.

Thank you, Adam K.

julia> using FITSIO

julia> img = FITS("trac_WL_a1_20030617_221948.fts") ERROR: CFITSIO has encountered an error while processing tracWLa1_20030617_221948.fts. Error code 224: missing NAXISn keywords Detailed error message follows: ffgtknjj found unexpected keyword or value for keyword no. 4. Expected positive integer keyword NAXIS1, but instead found keyword DATE with value '03/06/17, 22:19:48.278' ffopen could not interpret primary array header of file: trac_WL_____a1_20030617_221948.fts

Stacktrace: [1] fits_assert_ok @ ~/.julia/packages/CFITSIO/BfhtD/src/CFITSIO.jl:225 [inlined] [2] fits_open_file(filename::String, mode::Int64) @ CFITSIO ~/.julia/packages/CFITSIO/BfhtD/src/CFITSIO.jl:380 [3] FITS(filename::String, mode::String; extendedparser::Bool) @ FITSIO ~/.julia/packages/FITSIO/Qdq7v/src/FITSIO.jl:183 [4] FITS (repeats 2 times) @ ~/.julia/packages/FITSIO/Qdq7v/src/FITSIO.jl:180 [inlined] [5] top-level scope @ REPL[2]:1