Variant::ToDouble(): Invalid conversion from ByteVector type

alopezpenalver

New member
Hi,

StarAlignment process shows this bug error: "Variant::ToDouble(): Invalid conversion from ByteVector type".
It's important because I can't align the images.

Curious thing is that it appears also alignment the picture with itself !!!
The versi?n of Pixinsight is 1.8.8-2 Ripley (x64).
Trying to align in other laptop, with the version 1.08.06.1447, it's work right, I can execute the alignment.

It's a bug?
 
This should only happen if you are registering FITS files with StarAlignment, and these FITS files have been generated by PixInsight, probably by the ImageCalibration tool, forcing the FITS output format, or by transforming existing XISF files to FITS.

In such case this is not a bug because the FITS format has been deprecated in PixInsight. If you force generation of FITS files from a tool, or transform existing XISF files to the FITS format, and then load them in a tool, there are no guarantees.

If the above scenario does not apply, please provide the files that are causing these issues, so we can analyze them in order to fix a potential problem.
 
  I have the same problem also.  I do everything in the fits format and not xisf and have been doing this for years.  Earlier versions of PI didn't have this problem with star alignment. 

  I found that I could do a batch conversion from fits to xisf and star alignment would work.  I just take my lrgb masters and apply the conversion from fits to xisf. 
 
Getting the same error message as well trying to align Ha, Oiii and Sii FITS images which I have stacked. Never had this error message before and am lost now as to what to do.
 
Juan, I hear what you say about FITs v XISF but shouldn't PI handle this a bit more gracefully....bad data should never blow the software as I was taught when I started programming 47 years ago LOL (yes the machine had 4500 thermionic values in it before you ask!!)
 
I have the same issue plus I get the same error if I just load the image. The image is already an xisf.

Any ideas?


The FITSHeader:


Code:
var P = new FITSHeader;
P.keywords = [ // name, value, comment
   ["SIMPLE", "T", "file does conform to FITS standard"],
   ["BITPIX", "16", "number of bits per data pixel"],
   ["NAXIS", "2", "number of data axes"],
   ["NAXIS1", "3000", "length of data axis 1"],
   ["NAXIS2", "3000", "length of data axis 2"],
   ["EXTEND", "T", "FITS dataset may contain extensions"],
   ["COMMENT", "", "FITS (Flexible Image Transport System) format is defined in \'Astronomy"],
   ["COMMENT", "", "and Astrophysics\', volume 376, page 359; bibcode: 2001A&A...376..359H"],
   ["BZERO", "32768", "offset data range to that of unsigned short"],
   ["BSCALE", "1", "default scaling factor"], // row 10
   ["PROGRAM", "\'PixInsight 1.8.8-7\'", "Software that created this HDU"],
   ["COMMENT", "", "PixInsight Class Library: PCL 2.4.7"],
   ["COMMENT", "", "FITS module version 1.1.8"],
   ["COLORSPC", "\'Grayscale\'", "PCL: Color space"],
   ["RESOLUTN", "72.", "PCL: Resolution in pixels per resolution unit"],
   ["RESOUNIT", "\'inch \'", "PCL: Resolution unit"],
   ["THUMBIMG", "\'Thumbnail\'", "PCL: File includes thumbnail image extension"],
   ["ROWORDER", "\'TOP-DOWN\'", "Order of pixel rows stored in the image array"],
   ["INSTRUME", "\'Toupcam ATR3CMOS09000KPA(USB2.0)\'", "CCD Name"],
   ["TELESCOP", "\'Telescope Simulator\'", "Telescope name"], // row 20
   ["OBSERVER", "\'Unknown \'", "Observer name"],
   ["OBJECT", "\'roseta \'", "Object name"],
   ["EXPTIME", "120.", "Total Exposure Time (s)"],
   ["CCD-TEMP", "-5.1", "CCD Temperature (Celsius)"],
   ["PIXSIZE1", "3.76", "Pixel Size 1 (microns)"],
   ["PIXSIZE2", "3.76", "Pixel Size 2 (microns)"],
   ["XBINNING", "1.", "Binning factor in width"],
   ["YBINNING", "1.", "Binning factor in height"],
   ["XPIXSZ", "3.76", "Pixel size including binning, X-axis (um)"],
   ["YPIXSZ", "3.76", "Pixel size including binning, Y-axis (um)"], // row 30
   ["FRAME", "\'Light \'", "Frame Type"],
   ["IMAGETYP", "\'Light Frame\'", "Frame Type"],
   ["XBAYROFF", "0.", "X offset of Bayer array"],
   ["YBAYROFF", "0.", "Y offset of Bayer array"],
   ["BAYERPAT", "\'RGGB \'", "Bayer color pattern"],
   ["FOCALLEN", "134.97697", "Focal length (mm)"],
   ["APTDIA", "68.", "Telescope diameter (mm)"],
   ["SCALE", "5.745837", "arcsecs per pixel"],
   ["AIRMASS", "1.534721", "Airmass"],
   ["OBJCTRA", "\'23 59 26.468\'", "Right ascension (hours) (compatibility)"], // row 40
   ["OBJCTDEC", "\'+89 53 02.80\'", "Declination (deg) (compatibility)"],
   ["RA", "359.860282693285", "Right ascension of the center of the image (deg"],
   ["DEC", "89.8841115287515", "Declination of the center of the image (deg)"],
   ["PIERSIDE", "\'EAST \'", "East, looking West"],
   ["RADECSYS", "\'FK5 \'", "RADECSYS"],
   ["SECPIX1", "5.7458370225", "SECPIX1"],
   ["SECPIX2", "5.7458370225", "SECPIX2"],
   ["DATE-OBS", "\'2021-02-16T17:19:51.591\'", "Start date/time of observation (UTC)"],
   ["COMMENT", "", "Generated by INDI"],
   ["GAIN", "100.", "Gain"], // row 50
   ["COMMENT", "", "Astrometric solution by PixInsight 1.8.8-7"],
   ["TIMESYS", "\'UTC \'", "Time scale: Universal Time, Coordinated"],
   ["DATE-END", "\'2021-02-16T17:21:51.591\'", "End date/time of observation (UTC)"],
   ["OBSGEO-L", "22.125", "Geodetic longitude of observation location (deg"],
   ["LONG-OBS", "22.125", "Geodetic longitude (deg) (compatibility)"],
   ["OBSGEO-B", "40.6167", "Geodetic latitude of observation location (deg)"],
   ["LAT-OBS", "40.6167", "Geodetic latitude (deg) (compatibility)"],
   ["RADESYS", "\'ICRS \'", "Coordinates referred to ICRS / J2000.0"],
   ["COMMENT", "", "Calibration with PixInsight 1.8.8-7"],
   ["HISTORY", "", "Calibration with ImageCalibration module version 1.5.1"], // row 60
   ["HISTORY", "", "Calibration with ImageCalibration process"],
   ["HISTORY", "", "ImageCalibration.inputHints: fits-keywords normalize raw cfa use-roworder-keywor"],
   ["HISTORY", "", "ImageCalibration.outputHints: properties fits-keywords no-compress-data block-al"],
   ["HISTORY", "", "ImageCalibration.overscan.enabled: false"],
   ["HISTORY", "", "ImageCalibration.masterBias.enabled: false"],
   ["HISTORY", "", "ImageCalibration.masterDark.enabled: true"],
   ["HISTORY", "", "ImageCalibration.masterDark.fileName: masterDark-BINNING_1-EXPTIME_120.xisf"],
   ["HISTORY", "", "ImageCalibration.masterDark.calibrate: true"],
   ["HISTORY", "", "ImageCalibration.masterFlat.enabled: true"],
   ["HISTORY", "", "ImageCalibration.masterFlat.fileName: masterFlat-BINNING_1-FILTER_TR.xisf"], // row 70
   ["HISTORY", "", "ImageCalibration.masterFlat.calibrate: false"],
   ["HISTORY", "", "ImageCalibration.masterFlat.scalingFactors: 0.391999 0.747059 0.419018"],
   ["COMMENT", "", "CosmeticCorrection with PixInsight 1.8.8-7"],
   ["HISTORY", "", "CosmeticCorrection module version 1.2.5"],
   ["HISTORY", "", "CosmeticCorrection: Total corrected pixels = 5144"],
   ["COMMENT", "", "Demosaicing with PixInsight 1.8.8-7"],
   ["HISTORY", "", "Demosaicing with Debayer module version 1.8.2"],
   ["HISTORY", "", "Demosaicing with Debayer process"],
   ["HISTORY", "", "Debayer.pattern: RGGB"],
   ["HISTORY", "", "Debayer.method: VNG"], // row 80
   ["HISTORY", "", "Noise evaluation with Debayer module version 1.8.2"],
   ["HISTORY", "", "Debayer.noiseEstimates: 6.988e-05 7.297e-05 7.273e-05"],
   ["NOISE00", "6.988e-05", "Gaussian noise estimate, channel #0"],
   ["NOISEF00", "0.558", "Fraction of noise pixels, channel #0"],
   ["NOISEA00", "\'MRS\'", "Noise evaluation algorithm, channel #0"],
   ["NOISE01", "7.297e-05", "Gaussian noise estimate, channel #1"],
   ["NOISEF01", "0.485", "Fraction of noise pixels, channel #1"],
   ["NOISEA01", "\'MRS\'", "Noise evaluation algorithm, channel #1"],
   ["NOISE02", "7.273e-05", "Gaussian noise estimate, channel #2"],
   ["NOISEF02", "0.508", "Fraction of noise pixels, channel #2"], // row 90
   ["NOISEA02", "\'MRS\'", "Noise evaluation algorithm, channel #2"]
];
 
Ok I've noticed that the solution written into the FITSHeader was wrong.

So I've used the ImageSolver script and solved again my reference image and then the StarAlignment process run with no issues.
 
Back
Top