logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mRotate - Rotate a FITS image by an arbitrary angle

Arguments

       in.fits
              Input FITS image.

       out.fits
              Path to output (rotated) FITS image.

       ra dec xsize
              Center location and width (in degrees) of output image - optional.  By default, entire input image
              area will be included in output image.

       ysize  Height (in degrees) of output image, if a new center location and width are provided.  Optional  -
              defaults to xsize.

Bugs

       The drizzle algorithm has been implemented but has not been tested in this release.

       If a header template contains carriage returns (i.e., created/modified on a Windows machine), the cfitsio
       library will be unable to read it properly, resulting in the  error:  [struct  stat="ERROR",  status=207,
       msg="illegal character in keyword"]

       It  is  best  for  the  background  correction  algorithms  if  the area described in the header template
       completely encloses all of the input images in their entirety. If parts of input images are "chopped off"
       by the header template, the background correction will be affected. We  recommend  you  use  an  expanded
       header  for  the  reprojection  and background modeling steps, returning to the originally desired header
       size for the final coaddition. The default background matching  assumes  that  there  are  no  non-linear
       background  variations  in  the individual images (and therefore in the overlap differences). If there is
       any uncertainty in this regard, it is safer to turn on the "level only"  background  matching  (the  "-l"
       flag in mBgModel.

Description

       Rotates  a  FITS  image  by an arbitrary angle.  This module is meant for quick-look only; it is not flux
       conserving.

Examples

       $ mRotate -r 90 in.fits out.fits
              [struct stat="OK"]

Messages

       OK     [struct stat="OK"]

       ERROR  No status file name given

       ERROR  Cannot open status file: statusfile

       ERROR  No rotation angle given

       ERROR  Rotation angle string is invalid: 'rotang'

       ERROR  No debug level given

       ERROR  Debug level string is invalid: 'level'

       ERROR  Debug level value cannot be negative

       ERROR  Invalid input file 'in.fits'

       ERROR  Invalid output file 'out.fits'

       ERROR  Center RA string (ra) cannot be interpreted as a real number

       ERROR  Center Dec string (dec) cannot be interpreted as a real number

       ERROR  X size string (xsize) cannot be interpreted as a real number

       ERROR  Y size string (ysize) cannot be interpreted as a real number

       ERROR  Invalid 'x' size

       ERROR  Invalid 'y' size

       ERROR  Location is off image

       ERROR  No pixels match output area

       ERROR  No pixels match input area

       ERROR  wcsinit() failed

       ERROR  Image file in.fits missing or invalid FITS

       ERROR  FITSlibraryerror

Name

       mRotate - Rotate a FITS image by an arbitrary angle

Options

       -d level
              Print out additional debugging information (level can be 1-3)

       -s statusfile
              Output and errors are written to statusfile instead of stdout.

       -r rotang
              Provide an angle (in degrees) to rotate the image.

Result

[structstat="OK"]

       Output  file  will  contain  the  same  image as the input file, but rotated by rotang degrees.  If a new
       center location and width were provided, the output image will be the "subimage" covering that area.

Synopsis

       mRotate [-d level] [-s statusfile] [-r rotang] in.fits out.fits [radecxsize [ysize]]

See Also