EnglishFrenchSpanish

OnWorks favicon

mSubimage - Online in the Cloud

Run mSubimage in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mSubimage that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


mSubimage - Create a "cutout" of a FITS image

SYNOPSIS


mSubimage [-d] [-a] [-h hdu] [-s statusfile] in.fits out.fits ra dec xsize [ysize]

mSubimage -p [-d] [-h hdu] [-s statusfile] in.fits out.fits xstartpix ystartpix xpixsize
[ypixsize]

DESCRIPTION


Creates a subimage (or "cutout") of a FITS file. Note that in "normal" mode,
all the parameters (location and size) are in degrees; in pixel (-p) mode, all of
them are in pixels

OPTIONS


-d Turns on debugging.

-a All pixels - Force retrieval of whole image (useful to extract an entire HDU)

-h hdu Operate on the specified FITS header extension (HDU)

-s statusfile
Output and errors are sent to statusfile instead of to stdout

-p Pixel mode - create subimage using pixel locations, instead of a location on the
sky

ARGUMENTS


in.fits
Input FITS file.

out.fits
Path to output FITS file.

ra In normal mode, RA of center of output image.

dec In normal mode, declination of center of output image.

xstartpix
In pixel mode, pixel along the x-axis where the cutout image will begin

ystartpix
In pixel mode, pixel along the y-axis where the cutout image will begin

xsize In normal mode, width of output image in degrees.

ysize In normal mode, height of output image in degrees (default is equal to xsize.

xpixsize
In pixel mode, width of output image in pixels

ypixsize
In pixel mode, height of output image in pixels (default is equal to xpixsize

RESULT


[struct stat="OK", content="blank, flat or normal"]

The content keyword indicates whether all pixels where NaN (blank), all pixels were the
same value (flat), or the image appears to be normal.

MESSAGES


OK [struct stat="OK", content="blank, flat or normal"]

ERROR HDU value (hdu) must be a non-negative integer

ERROR Cannot open status file: statusfile

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

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

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

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

ERROR Invalid 'x' size

ERROR Invalid 'y' size

ERROR Image file filename missing or invalid FITS

ERROR Cannot find HDU hdu

ERROR Output wcsinit() failed.

ERROR Location is off image

ERROR Region outside image

ERROR No pixels match area.

ERROR Can't create output file: out.fits

ERROR FITS library error

EXAMPLES


$ mSubimage image1.fits subimage.fits 307.9 37.29 .01 .01
[struct stat="OK", content="normal"]

Use mSubimage online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

Ad