Skip to main content
Version: Next

getPixelSizes

Callable

  • getPixelSizes(frame: FrameStore, rounding?: number): { x: number; y: number }

  • Calculates the pixel sizes (in arcseconds per pixel) along the rendered X and Y axes by measuring WCS geodesic distances around the reference pixel (CRPIX).


    Parameters

    • frame: FrameStore

      The FrameStore providing WCS transform (frame.wcsInfo) and FITS headers

    • optionalrounding: number

      Optional number of decimal places to round the pixel size in arcseconds. If omitted, raw (unrounded) arcsecond values are returned.

    Returns { x: number; y: number }

    An object with { x, y } pixel sizes in arcseconds; NaN values if they cannot be determined

    • x: number
    • y: number