- edited description
Nightly 065: Fits tags OBJCTRA and OBJCTDEC are not filled when slewto AZ/ALT was used
Hello,
I have just noticed that the fits header tags OBJCTRA and OBJCTDEC are set to ‘00 00 00’ when slew ALT/AZ was used, though the mount reports that crucial data.
This is a problem when creating celestial models or doing mount stability tests (e.g. flexure, settle time) where you move to constant and repeating fixed positions via ALT,AZ and then solving the the images in batch mode. Then this crucial information is missing and the delta position cannot be calculated..
Please populate fields whenever the data from mount is available.
Thank you!
Rüdiger
Comments (24)
-
reporter -
repo owner OBJCTRA and OBJCTDEC are independend of your telescope. They will be filled out of a sequence.
RA and DEC however are taken from the telescope. See here https://nighttime-imaging.eu/docs/master/site/advanced/file_formats/fits/#telescope-headers
-
reporter Thanks Stefan, I am currently in discussion with Han (ASTAP author) because he is referencing to these fields and noticed they are empty and causing some issue. I have sent him the link to this issue, so we can find a solution.
Thx! Rüdiger
-
Hello Stefan,
Having the mount position documented with keyword RA and DEC is no problem but writing zeros to OBJECTRA and OBJECTDEC is the problem. This give two conflicting RA&DEC values. At the moment ASTAP reads both and keywords OBJCTRA, DEC comes at last giving the zero problem. I can probably fix that by swapping the reading of the keywords.
SBIG and MaximDL are using OBJCTRA and OBJCTDEC for center of image and not keyword RA, DEC. It would be more elegant to skip keyword OBJCTRA and OBJCTDEC if no information is available. Would that be possible?
SGP fills both keywords with the same value but then would be less elegant then skipping the keywords if no object is specified.
MaximDl definitions:
https://cdn.diffractionlimited.com/help/maximdl/FITS_File_Header_Definitions.htm
Thanks, Han
-
There is no real standard around these keywords other than
RA
andDEC
. My interpretation is that the “object RA/DEC” keywords refer to the coordinates of the object of interest in the frame. TheRA
andDEC
keywords refer to the actual location that the telescope is pointing. The two can be different, because the object of interest (OBJCTRA
andOBJCTDEC
) may not always be in the center of the frame (RA
andDEC
)The MaximDL definitions you link to mention no such requirement that the
OBJCTRA
andOBJCTDEC
keywords reflect the center of the image, only that they reflect the “Right Ascension/Declination of object being imaged.” Well, the “object being imaged” may not always be at the exact center of the frame.Over at the FITS standards site, they have a Dictionary of Commonly Used FITS Keywords and the definitions of
RA
andDEC
is very similar toOBJCTRA
andOBJTDEC
in that they also define their values to be “the object” rather than the center of the frame. If we want to use a keyword pair that is specifically for recording where the instrument is pointing, it looks like we should use theRA_PNT
andDEC_PNT
keywords, the definitions of which explicitly state that they are for recording where the instrument is pointed, regardless of the object’s coordinates.So it seems we should do the following:
OBJCTRA/DEC
remain the same and reflect the coordinates of the object of interest, not necessarily where the telescope is pointingRA
andDEC
are removed or have the same value asOBJCTRA
andOBJCTDEC
respectively- We add new keywords
RA_PNT
andDEC_PNT
to record the coordinates that the mount (telescope) is pointing at per the Dictionary of Commonly Used FITS Keywords
-
reporter respective 2: I have a very bad gut feeling about removing RA and DEC. I think that may cause some nasty side effects with other programs. Better make them equal.
respective 3: Adding the new keywords sounds reasonable.
Rüdiger
-
The OBJCTRA, OBJCTDEC are akward because they are strings but almost all astronomy program use them since it was standardized by SBIG as center of the image in 2003. See attached.
SBIG is now part of Difraction Limited (MaximDL). There is a link on their side but it not working at the moment.
RA, DEC keywords are used by many program because they are floats and documented at Nasa FITS keyword page.
RA_PNT and DEC_PNT are never used in practice. I would not advice to use these keywords because no other program will be able to read them. There are already enough keywords around.
The problem is the discrepancy in the header between two common keywords both used for mount positions. A value of ‘00 00 00’ is wrong. If no information is available, then the keyword should not be there.
Han
-
repo owner Well if OBJECTRA/DEC are truly the center coordinates, they have to be removed completely by the N.I.N.A. file writer, as we don’t platesolve the image and don’t know for sure what those coordinates are.
-
But wait, the Diffraction Limited document you linked does not say anything about
OBJCTRA
andOBJCTDEC
representing the center of the frame, only “the object”. The Diffraction Limited document even says “Note: this is an approximate field center value only.” The SBIG document says “center of image”. These two documents contradict each other. The meaning is of theOBJCT*
keywords is ambiguous.And if
RA
andDEC
are essentially synonyms ofOBJCTRA
andOBJCTDEC
due to their definition of being the coordinates of “the object”, not the center of the frame, then that leave no keywords that record the actual pointing coordinates of the telescope, as claimed by the mount driver. This is why I suggest the use ofRA/DEC_PNT
as they are defined explicitly for this purpose in the FITS Standard’s dictionary of common keywords. Who is to say that they are irrelevant? They are in the standard and have a defined purpose… -
reporter But at least we can agree on, if no object is defined, to set it to 00 00 00 is definitely wrong. Since 00 00 00 is actually a valid date, but does not represent the object in that case. The smallest common denominator would be not write it to the header.
-
repo owner yea if no object is available this keyword should be skipped. that’s something to fix.
-
Most programs use keywords RA, DEC for mount position. Some OBJCTRA, OBJCTDEC. The keywords RA, DEC are preferred since they are floats.
After SOLVING the “reference point” of the image is defined by CRVAL1, CRVAL2. Also by astrometry.net. So there is NO NEED for a center of image keywords.
“Center of image” is pre-dating astrometric (plate) solvers. Just read it as mount position.
E.g.the ESA standard (please ignore or see it as mount position):
/ RA of center of image in decimal degrees
-
Yes, after solving the WCS keywords are definitive for the center of image. However that’s a separate operation, after an image is created. For any given image, it might not be solved at all. So there must be an appropriate keyword to record the nominal RA and DEC of its axes. Looking over the FITS dictionary of keywords, this would be
RA_PNT
andDEC_PNT
.RA
andDEC
should be the object of interest.OBJCTRA
andOBJCTDEC
, by their keyword name alone, would imply “object” as well, not center of image (the former set being real numbers, the latter set being string HMS/DMS notation, ugh)I really don’t like the MaximDL, uh, “extensions”, because they themselves are inconsistently defined (see also: the original SBIG definition of
OBJCTRA
andOBJCTDEC
) but also inconsistent with their own “peer” keywords. For example, this except from the MaximDL document:OBJCTALT
– nominal altitude of center of imageOBJCTAZ
– nominal azimuth of center of imageOBJCTDEC
– Declination of object being imaged, string format DD MM SS, if available. Note: this is an approximate field center value only.OBJCTHA
– nominal hour angle of center of imageOBJCTRA
– Right Ascension of object being imaged, string format HH MM SS, if available. Note: this is an approximate field center value only.
The bolded parts are what I’m pointing out in this regard.
OBJCT*
keywords other thanOBJCTRA
andOBJCTDEC
refer directly to “center of image”, butOBJCTRA
andOBJCTDEC
are noted to not necessarily reflect the center of the image. Sigh. I can’t seriously consider this set of keywords to be a “standard” by any measure. This metadata schizophrenia is a single reason why FITS should be toss in the can and people move on to XISF. -
All these descriptions are equivalent to “mount position” What else would they have written to the FITS header 20 years ago?
For compatibility reasons the best strategy is to use keywords which are already used by other programs.
XISF still uses the same keywords packed in XML.
-
XISF has a facility in its header metadata for embedding traditional FITS keywords, but this is a facility that is provided for freeform “FITS style” header data. For defined, structured metadata, XISF defines Image Properties which may record the observation and instrument data. The definitions for these various properties are very explicit and, IMO, should always be preferred as the source of information over any embedded FITS keywords, especially due to the ambiguity around the FITS keywords we have talked about.
-
reporter Another important question came up in the internal discussion:
When storing the J2000 coords in the header, how are they calculated? Via True or Mean equinox of date? How are the J2000 coords calculated from the mounts JNOW coords? Is except precession also nutation and aberration considered?
These questions came up when comparing coords in ASTAP.
-
The question is:
If a mount communicates with Nina in Jnow=True equinox of date, for the conversion to J2000 is a nutation and aberration correction included?
So value 1 in
https://ascom-standards.org/Help/Platform/html/T_ASCOM_DeviceInterface_EquatorialCoordinateType.htm
I’m pretty sure the answer in no but that is the question. If no then the mount (10micron) can be better set to communicate in J2000. No conversion errors.
Most conversion is simple “mean equinox of date” to J2000. Not “true equinox of date” to J2000.
Han
-
reporter Hi Stefan, Hi Dale,
is aberration and nutation considered or only precision? We need the info, because if not considered we have to find a work around to get precise data. This could be also an reason why centering sometimes never is convergent, since error margin is lower than the conversion error. Thank you! -
repo owner The transformation of JNOW coordinates to J2000 are using the “iauAtic13” method described here https://www.iausofa.org/sofa_ast_c.pdf
Line 218 and following: https://bitbucket.org/Isbeorn/nina/src/develop/NINA.Astrometry/Coordinates.cs
-
reporter Many thanks! This was exactly what needed. Perfect!
-
Thanks, So very accurate. Precession, nutation and aberration is all taken care of.
-
repo owner - changed status to resolved
My understanding is that this issue is resolved.
-
reporter Yes, thanks!
-
repo owner - removed version
Removing version: 1.11 Nightly (automated comment)
- Log in to comment