Author Topic: Parsing error in PI ver. 1.8.5  (Read 2352 times)

Offline pantarei

  • Newcomer
  • Posts: 14
Parsing error in PI ver. 1.8.5
« on: 2017 September 23 03:39:08 »
Hello, using Batch Preprocessing script I had this error during files integration:

"Error: Parsing OBJCTRA FITS keywords: Parsing sexagesimal expression: Parsing 64-bit floating point expression: conversion error:..."

I never had it using the previous version. I use PI for Mac.

In attach a screen shot of the process console.

Best regards

Max

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Parsing error in PI ver. 1.8.5
« Reply #1 on: 2017 September 23 12:35:26 »
Hi Max,

This is the expected behavior if OBJCTRA keyword values contain commas. The only valid decimal separator is the period character, so "20,5" is incorrect and "20.5" is correct.

Can you upload one of the original raw FITS files, before calibration, so I can investigate this problem further?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pantarei

  • Newcomer
  • Posts: 14
Re: Parsing error in PI ver. 1.8.5
« Reply #2 on: 2017 September 24 04:33:17 »
Thanks Juan,
I would upload one of the FITS shots but since I'm not expert in this Forum I will be grateful if someone will help me for. Attached files seem to be yup to 512K and no fits are included.

Thank
Best regards

Max
« Last Edit: 2017 September 24 08:12:03 by pantarei »

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Parsing error in PI ver. 1.8.5
« Reply #3 on: 2017 September 24 08:18:30 »
put the file on google drive, or microsoft onedrive, or dropbox, or any other file hosting service and post a link here.

rob

Offline pantarei

  • Newcomer
  • Posts: 14
Re: Parsing error in PI ver. 1.8.5
« Reply #4 on: 2017 September 25 02:14:29 »
Sorry, I believed it was possible to upload into PI server.
Here is the link in Google Drive.

https://drive.google.com/file/d/0B2-Vvp0G9meVdWNsMldKeUVHbEE/view?usp=sharing

Many Thanks

Max

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Parsing error in PI ver. 1.8.5
« Reply #5 on: 2017 September 25 08:48:21 »
Hi Max,

Thanks for uploading the image. This FITS file contains the following header keywords:

OBJCTRA  '22 56 35,4'                         
OBJCTDEC '+62 40 01'                          Nominal Declination of center of image
RA       '22 56 35,4'                         
DEC      '+62 40 01'                         
CENTAZ   '328,7   '                           Nominal Azimuth of center of image in deg
CENTALT  '67,7    '                           Nominal Altitude of center of image in deg


The headers with comma characters in their numeric values are incorrect and cannot be parsed, hence the error messages. These keywords have not been generated by PixInsight, so we have no bug here. Please check the software(s) that have generated these keywords.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pantarei

  • Newcomer
  • Posts: 14
Re: Parsing error in PI ver. 1.8.5
« Reply #6 on: 2017 September 25 10:41:46 »
Thanks Juan,
the software used is MaxIm DL ver, 5.24 but I never manipulated FITS header keywords before. Maybe MaxIm translates header in italian language where comma has different value respect USA.

Anyway I think this will not affect the result, I hope...

Best regards
Max

Offline Philippe B.

  • PixInsight Old Hand
  • ****
  • Posts: 399
    • CIEL AUSTRAL
Re: Parsing error in PI ver. 1.8.5
« Reply #7 on: 2017 September 28 01:42:05 »
We have exactly same error in PI as we use THE SKY X software for acquisition :'(
There was not error message in previous version of PI.

Very strange...

 

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Parsing error in PI ver. 1.8.5
« Reply #8 on: 2017 September 28 02:07:00 »
I checked the FITS standard document https://fits.gsfc.nasa.gov/standard30/fits_standard30aa.pdf . Section 4.2.4 clearly states that real numbers should use the decimal point "." , not a comma "," . The issue is most likely caused by SkyX using an incorrect locale ("Italian") instead of "C" when generating those files - not uncommon for software that is being developed in non-European countries. So your best bet is probably to manually fix up your FITS files, and report the problem to the software vendor

Having said that: I would really love if PI had some way of tolerating common errors in FITS files. I absolutely agree with Juan that it is important to stick to standards, but in the end we also have to live in the real imperfect world with rather buggy software....

Georg
« Last Edit: 2017 September 28 08:05:58 by georg.viehoever »
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Parsing error in PI ver. 1.8.5
« Reply #9 on: 2017 September 28 05:13:36 »
We have exactly same error in PI as we use THE SKY X software for acquisition :'(
There was not error message in previous version of PI.

Very strange...

Previous versions of PixInsight didn't try to parse these keyword values. In version 1.8.5, the ImageIntegration tool gathers these values to generate the corresponding keywords in the integrated image.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Parsing error in PI ver. 1.8.5
« Reply #10 on: 2017 September 28 05:21:21 »
Hi Georg,

Having said that: I would really love if PI had some way of tolerating common errors in FITS files. I absolutely agree with Juan that it is important to stick to standards, but in the end we also have to live in the real imperfect world with rather buggy software....

Actually, as far as I know, PixInsight is one of the most tolerant and adaptable FITS readers. We can import FITS data in virtually any numeric format, numeric range, and orientation. Other applications are quite far from providing this degree of flexibility. However, I won't write a single line of code to support nonstandard decimal separators in numeric FITS keyword values. This is just asking for too much... :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/