Hi!
First of all thanks for the amazing software :)
I have detected some cases where astap does not create correctly a .wcs file
The exert below is from a produced .wcs file:
WARNING='Warning scale was inaccurate! Set FOV=0.76d, scale=2.5", FL=601mmStarCOMMENT cmdline:"C:\Users\Petros Pissias\Desktop\apps\astro\astap\astap.exe" -f COMMENT "C:\Users\Petros Pissias\Desktop\space\2020-08-17 eagle helix\LIGHT-EAGLCOMMENT E\reg\L_2020-08-17_22-08-38_Bin1x1_120s__10C.reg.fit" -r 360 -z 0 -fov 0COMMENT -wcs -annotate END
The issue seems to be that the single quote for the WARNING field is not closed.
For reference I am using the nom.tam.fits Java library to read the .wcs header and I have the following exception:
The default wcs output by ASTAP is not conform the FITS standard. It is written as a text file with carriage return & line feed. Also the line length is not limited to 80 bytes. This was a simplification which was later corrected by adding the command-line option -wcs This option was chosen not to break the existing behavior.
Could you try to test it with -wcs option added?
Han
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Okay problem clear. Will add a second single-quote=' at the end of the warning. The warning is too long for the total 80 bytes causing it to be lost. In the default .wcs text format it can be longer then 80 bytes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
First of all thanks for the amazing software :)
I have detected some cases where astap does not create correctly a .wcs file
The exert below is from a produced .wcs file:
The issue seems to be that the single quote for the WARNING field is not closed.
For reference I am using the nom.tam.fits Java library to read the .wcs header and I have the following exception:
which seems to go away when I close manually the single quote before the next COMMENT.
Thanks again,
Petros
Hello Petros,
The default wcs output by ASTAP is not conform the FITS standard. It is written as a text file with carriage return & line feed. Also the line length is not limited to 80 bytes. This was a simplification which was later corrected by adding the command-line option -wcs This option was chosen not to break the existing behavior.
Could you try to test it with -wcs option added?
Han
Hi Han,
thanks for your reply,
this was indeed run with the -wcs option, the command was (taken form the COMMENT elements of the generated wcs file)
I am attaching a generated .wcs file that has this problem that I just generated with a similar command.
If you see this file, it has the issue I describe above with not closing the single quote on the WARNING element.
Many thanks in advance,
Petros
Okay problem clear. Will add a second single-quote=' at the end of the warning. The warning is too long for the total 80 bytes causing it to be lost. In the default .wcs text format it can be longer then 80 bytes.
Thanks Han,
have a good day!
No problem feedback is important and helpful.
I will solve it using the CONTINUE keyword. Maybe not all programs will except it but it is according the standard:
WARNING = 'Warning scale was inaccurate! Set FOV=1.32d, scale=2.7", FL=581mm S&'
CONTINUE= 'tar database limit was reached!'
Clear skies, Han
Is fixed in version 0.9.450 just uploaded.
Clear skies, Han
Thank you Han,
Clear skies and thanks again for the amazing software.
Petros