EnglishFrenchSpanish

OnWorks favicon

mAddCube - Online in the Cloud

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

This is the command mAddCube 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


mAddCube - Co-add the reprojected cubes to form the output mosaic

SYNOPSIS


mAddCube [-p imgdir] [-n(o-areas)] [-a mean|median|count] [-e(xact-size)] [-d level] [-s
statusfile] images.tbl template.hdr out.fits

DESCRIPTION


Coadd the reprojected cubes in an input list to form an output mosaic with FITS header
keywords specified in a header file. Creates two output files, one containing the coadded
pixel values for each cube plane, and the other containing coadded pixel area values. The
pixel area values can be used as a weighting function if the output cube values are
themselves to be coadded with other projected cubes, and may also be used in validating
the fidelity of the output pixel values.

OPTIONS


-p imgdir
Specifies path to directory containing reprojected images. If the -p switch is not
included, mAddCube will look for the input images in the current working directory.

-n Co-addition ignores weighting by pixel areas and performs coaddition based only on
pixel postions. Will not output an area image for the output image.

-a type
Select type of averaging to be done on accumulated pixel values (either mean or
median). To generate a map showing counts of how many times each pixel was
overlapped by the input images, use count.

-e Enables exact size mode. The output image will match the header template exactly,
instead of shrinking the output to fit the data.

-d level
Turns on debugging to the specified level (1-3).

-s statusfile
mAddCube output and errors will be written to statusfile instead of stdout.

ARGUMENTS


images.tbl
ASCII table (generated by mImgtbl) containing metadata for all images to be
coadded. For cubes, mImgtbl needs to be run with the -C option which picks up the
third dimension parameters (and fourth if they exist).

template.hdr
FITS header template to be used in generation of output FITS cube.

out.fits
Name of output FITS image.

RESULT


If successful, mAddCube creates a FITS datacube file out.fits that is a coadd of all the
FITS cubes in the table images.tbl, according to the header template given. A
corresponding out_area.fits is also created.

MESSAGES


OK [struct stat = "OK", time=time]

ERROR Invalid argument for -a flag

ERROR Cannot open status file: statusfile

ERROR Invalid image metadata file: filename

ERROR Need columns: cntr,fname, crpix1, crpix2, cdelt1, cdelt2, naxis1, naxis2, crval1,
crval2, naxis3 in image list

ERROR Too many open files

ERROR Input wcsinit() failed.

ERROR Bad WCS in header template.

ERROR FITS library error

ERROR general error message

ERROR Allocation failed for file info (realloc)

ERROR Allocation failed for file info structs

ERROR Allocation failed for area file info structs

ERROR Allocation failed for input buffer

ERROR Allocation failed for input area buffer

ERROR Allocation failed for start/end info

ERROR Allocation failed for data line pointers

ERROR Allocation failed for data line

ERROR Allocation failed for area line pointers

ERROR Allocation failed for area line

ERROR Allocation failed for data counts

ERROR Allocation failed for output data line

ERROR Allocation failed for output area line

ERROR Allocation failed for data line (realloc)

ERROR Allocation failed for area line (realloc)

ERROR Allocation failed for median array

ERROR Allocation failed for median array (realloc)

ERROR Allocation failed for linked list structs

ERROR Allocation failed for linked list structs (additions)

EXAMPLES


The following example runs mAddCube on 4 FITS images, generating the output file
mosaic.fits. Related files are images.tbl and template.hdr.

$ mAddCube -p proj images.tbl template.hdr output/mosaic.fits
[struct stat="OK", time=1]

Use mAddCube online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 2
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 3
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • 4
    Amidst
    Amidst
    Amidst or Advanced Minecraft Interface
    and Data/Structure Tracking is a tool to
    display an overview of a Minecraft
    world, without actually creating it. It
    can ...
    Download Amidst
  • 5
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 6
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • More »

Linux commands

Ad