OnWorks favicon

mAdd - Online in the Cloud

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

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



mAdd - Re-project and mosaic your images, with background rectification


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


Coadd the reprojected images 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, and the other containing coadded pixel area values. The pixel area values
can be used as a weighting function if the output pixel values are themselves to be
coadded with other projected images, and may also be used in validating the fidelity of
the output pixel values.


-p imgdir
Specifies path to directory containing reprojected images. If the -p switch is not
included, mAdd 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. This flag refers to input images; the area file for the output
image will still be created.

-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
mAdd output and errors will be written to statusfile instead of stdout.


ASCII table (generated by mImgtbl) containing metadata for all images to be

FITS header template to be used in generation of output FITS

Name of output FITS image.


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


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

ERROR MPI initialization failed

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 in image list

ERROR Memory allocation failed

ERROR Too many open files

ERROR Input wcsinit() failed.

ERROR Failed to allocate enough memory for output arrays

ERROR Bad WCS in header template.

ERROR Images are not in same pixel space.

ERROR Template file not found.

ERROR FITS library error

ERROR general error message


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

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

Use mAdd online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Fork of TeamWinRecoveryProject(TWRP)
    with many additional functions, redesign
    and more Features:Supports Treble and
    non-Treble ROMsUp-to-date Oreo kernel,
    Download OrangeFox
  • 2
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • 3
    Clementine is a multi-platform music
    player and library organizer inspired by
    Amarok 1.4. It has a fast and
    easy-to-use interface, and allows you to
    search and ...
    Download Clementine
  • 4
    ATTENTION: Cumulative update 2.4.3 has
    been released!! The update works for any
    previous 2.x.x version. If upgrading
    from version v1.x.x, please download and
    Download XISMuS
  • 5
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 6
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 7
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • More »

Linux commands

  • 1
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    Run acl_gran
  • 2
    rsbac-admin - Rule Set Based Access
    Control DESCRIPTION: rsbac-admin is a
    set of tool used to manage systems using
    a Rule Set Based Access Control (RSBAC)
    Run acl_grant
  • 3
    cpupower idle-set - Utility to set cpu
    idle state specific kernel options
    SYNTAX: cpupower [ -c cpulist ]
    idle-info [options] DESCRIPTION: The
    cpupower idle-se...
    Run cpupower-idle-set
  • 4
    cpupower-info - Shows processor power
    related kernel or hardware
    configurations ...
    Run cpupower-info
  • 5
    g15daemon - provides access to extra
    keys and the LCD available on the
    logitech G15 keyboard. DESCRIPTION:
    G15Daemon allows users access to all
    extra keys by d...
    Run g15daemon
  • 6
    laditools - tools to control and
    monitor LADI (JACK and ladish) systems ...
    Run g15ladi
  • More »