MROTATE(1)
π¦ NAME π¦
okay bestie, quick vibe check: this is the MROTATE(1) page from the Montage manual π and it's all about mRotate β the tool that spins a FITS image around by whatever angle you feel like, no cap β¨
π SYNOPSIS π
mRotate [-d level] [-s statusfile] [-r rotang] in.fits out.fits [ra dec
xsize [ysize]]
π DESCRIPTION π
So mRotate rotates a FITS image by an arbitrary angle πΈ that's literally the whole job, she's a one-trick pony and she ate π
but fr fr, listen: this module is meant for quick-look only. It is not flux conserving. So like, she's gorgeous for a peek, she is not the girl you take to your science paper π know the difference bestie π«Ά
βοΈ OPTIONS βοΈ
-dlevel β turn on extra debugging tea β (levelcan be1-3) π-sstatusfile β output and errors get written to statusfile instead ofstdoutπ-rrotang β hand her the angle (in degrees) to rotate the image by π
π ARGUMENTS π
in.fitsβ the input FITS image, your main character πout.fitsβ path to the output (rotated) FITS image, the glow-up version β¨ra dec xsizeβ center location and width (in degrees) of the output image β optional π by default, the entire input image area gets included in the output image πysizeβ height (in degrees) of the output image, and you only give this if you also gave a new center location and width. Optional β it defaults to xsize π¦
π RESULT π
[struct stat="OK"]
The output file will contain the same image as the input file, just rotated by rotang degrees π and if you gave a new center location and width, the output image will be the "subimage" covering that area πΌοΈ
π£ MESSAGES π£
here's the whole group chat of things she might yell at you, no skipping π
- 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 β
FITS library error
β¨ EXAMPLES β¨
okay watch her work, it's giving effortless π
$ mRotate -r 90 in.fits out.fits
[struct stat="OK"]
π BUGS π
bestie, the tea is messy, sit down π
- The drizzle algorithm has been implemented but has not been tested in this release π so like, proceed with caution, iykyk
- If a header template contains carriage returns (i.e., created/modified on a Windows machine), the
cfitsiolibrary will be unable to read it properly, resulting in the error:[struct stat="ERROR", status=207, msg="illegal character in keyword"]π classic windows moment, not her fault fr - 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's safer to turn on the "level only" background matching (the
-lflag inmBgModel) π
π COPYRIGHT π
2001-2015 California Institute of Technology, Pasadena, California
If your research uses Montage, please include the following acknowledgement: "This research made use of Montage. It is funded by the National Science Foundation under Grant Number ACI-1440620, and was previously funded by the National Aeronautics and Space Administration's Earth Science Technology Office, Computation Technologies Project, under Cooperative Agreement Number NCC5-626 between NASA and the California Institute of Technology." π«Ά
The Montage distribution includes an adaptation of the MOPEX algorithm developed at the Spitzer Science Center π
and that's the whole page bestie π this was Montage 5, dated Dec 2016 β go rotate something cute, love u, bye πβ¨π¦
π¦ where this page comes from
- debian bookworm: montage 6.0+dfsg-7+b8 Β· BSD-3-Clause
- debian trixie: montage 6.1+dfsg-1+b1 Β· BSD-3-Clause
- ubuntu jammy: montage 6.0+dfsg-7build5 Β· BSD-3-Clause
- ubuntu noble: montage 6.0+dfsg-9 Β· BSD-3-Clause
- ubuntu questing: montage 6.1+dfsg-2
- ubuntu resolute: montage 6.1+dfsg-2build2 Β· BSD-3-Clause
- ubuntu stonking: montage 6.1+dfsg-2build2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms