You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can we convert a FITSHeader in a String format and vice-versa?
It would be great to modify a Header by making a WCSTransform object, making the changes and then saving that to original FITS file.
Using to_header from WCS.jl, we can get the header in string format but how can I write that to a FITSHeader?
The text was updated successfully, but these errors were encountered:
Rather than converting a FITSHeader to a String, I think it could be useful a function that constructs a WCSTransform from the relevant keys of a FITSHeader. This function would live in WCS.jl, which however doesn't currently depend on FITSIO.jl
Do you mean, supplying specific fields present in WCS Header to a function along with a FITSHeader object?
I think that would be a easier workaround as we can use setproperty!() of WCS.jl and pass a symbol to set those fields to some empty initialised WCSTransform object.
The FITSHeader looks like a dictionary, I was thinking to
look up the relevant WCS keys in FITSHeader
feed them into WCSTransform(...)
However, this is a high-level functionality that it's not even clear where it should live (see my message above), I think this is a very low-priority issue, even though an interesting one.
How can we convert a FITSHeader in a String format and vice-versa?
It would be great to modify a Header by making a WCSTransform object, making the changes and then saving that to original FITS file.
Using
to_header
fromWCS.jl
, we can get the header in string format but how can I write that to a FITSHeader?The text was updated successfully, but these errors were encountered: