Make FITScube the 0-based array layer of the WCS; fix Rebin WCS and real keyword precision Pixel convention - FITScube::WorldCoordinates* and World2Pixel* now take and return 0-based array coordinates (first pixel centre at 0.0) and convert to/from the FITS 1-based convention of wcslib internally. Previously array indices were passed to wcslib unconverted, so one-way callers were off by one pixel; round trips cancelled the error, which hid it. - FITSwcs is unchanged and stays in the FITS convention. - PixelIndex(vector<double>) returns Nelements() for coordinates below -0.5 or NaN instead of wrapping around in the size_t cast. - AddLayer writes CRPIX3 = 1 by default, so CRVAL3 is the value of the first layer under the new convention. Rebin WCS - Start from the complete WCS (FITSwcs::asFITShdu) instead of copying CRPIX/CRVAL/CDELT/PC/CD only. CTYPE was lost, so every rebinned image fell back to a linear WCS, wrong by 1/cos(dec) in right ascension. - CRPIXj -> (CRPIXj - 0.5)/b_j + 0.5; column j of PC or CD scaled by b_j. CDELT is no longer scaled as well (the scale was applied twice for PC headers). - SIP coefficients and A_DMAX/B_DMAX rescaled; warn on CPDIS/CQDIS lookup-table distortions, which are not rescaled. FITShdu - ValueForKey(key, double/float) writes the shortest text that reads back exactly (15-17 / 6-9 significant digits). std::to_string kept only 6 decimals between 1e-4 and 1e4, truncating CD, PV, CRVAL, ... values. Tests - New WorldCoordinatesConvention test pins FITScube (array) against FITSwcs (FITS) and checks the PixelIndex bound. - Test_RebinningWCS compares against the exact binned-pixel centre (4i+1.5) at 1e-9 instead of 0.1 deg. - LayerParent/LayerChild expect CRPIX3 = 1 and 1-k.