CImageView:CenterAtWcs CImageView:GetPlotAvgMode

CImageView:GetFlipFITS


The GetFlipFITS method retrieves the state of the flag that controls whether FITS format images are displayed in the traditional sense, with row number increasing upward.

Syntax

bTrue = CImageView:GetFlipFITS()

bullet.gif    bTrue is the state of the FITS flip flag.

bullet.gif    This method returns true if the CImageView is configured to display FITS images in the nontraditional, flipped sense.

Remarks

The CImageView class defaults to displaying FITS images in the tradition sense—"unflipped", with row number increasing upward. Use this method to check the protocol before displaying the image. See additional remarks for the SetFlipFITS method. See FITS Image Orientation.

Example

The following script saves the FITS flip flag before displaying the image, then resets it afterward:

V = new_imageview()

-- create a CImageView

I = new_image()

-- create a CImage

I:Open(sPath)

-- load a FITS format image from a file

bFlipped = V:GetFlipFITS()

-- retrieve the flag and save it

V:SetFlipFITS(true)

-- change to "flipped" for this image

V:Display(I)

-- display the image

V:SetFlipFITS( bFlipped )

-- restore the FITS flip flag

Related Topics

CImageView, CImage class, SetFlipFITS, FITS Image Orientation


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.