mDAG

Description:
mDAG creates an XML-based Directed Acyclic Graph (DAG) that specifies "jobs" or Montage modules to be run to produce a mosaic, "files" to be consumed or generated during processing (input, intermediate, and output files), and "dependencies" between jobs and files that imply an order in which jobs should be run. In this "abstract graph", logical names are assigned to jobs and files. The abstract graph is intended to be an input to a job scheduler, such as Pegasus in the Chimera Virtual Data System.
Syntax:
mDAG survey band objstr width height cdelt workdir workurlbase [urlbase]
mDAG -h survey band hdrfile workdir workurlbase [urlbase]

Arguments:

survey
mDAG has custom code for dealing with surveys (e.g. DSS) where we know we have to use the slower mProject module rather than mProjectPP.
band
mDAG also has custom code for the 2MASS survey where Montage scales the data to a project-specified magnitude zero point by band (J,H,K).
objstr
Object name, resolved through NED/SIMBAD for sky location.
width/height
Size of the image in degrees.
cdelt
Pixel scale in degrees.
hdrfile
Instead of objstr, width, height, and cdelt the user an provide a pre-built FITS header.
workdir
There are a collection of files the processing will need ane which mDAG creates. The user needs to create a location for this and give it to mDAG.
workurlbase
While working, some files in the workspace are accessed via URL. Again, this needs to be set up by the user beforehand.
urlbase
Optionally, results can be made URL-accessible if this parameter is given.

Switches:

-h
Output mosaic is based on a header file rather than explicit object name (for location), sizes and scale.
Results:
If successful, the workspace will be populated with severeal tables and with the "dag.xml" file to be given to the workflow manager.

Example:

mDAG 2mass j m51 0.5 0.5 0.00277778 m51work http://montage-web.ipac.caltech.edu/workspace/m51

[struct stat="OK", id="20150904_095958_21631"]

Return Codes:

  • [struct stat="ERROR", msg="Error opening debug file"]
  • [struct stat="ERROR", msg="Usage: mDAG survey band objstr width height cdelt workdir workurlbase [urlbase] | mDAG -h survey band hdrfile workdir workurlbase [urlbase] (object/location string must be a single argument)"]
  • [struct stat="ERROR", msg="Error opening header template file"]
  • [struct stat="ERROR", msg="Error opening big header template file"]
  • [struct stat="ERROR", msg="Error opening image list"]
  • [struct stat="ERROR", msg="Error opening working file list for write"]
  • [struct stat="ERROR", msg="Error opening working file list for read"]
  • [struct stat="ERROR", msg="Error opening parent list"]
  • [struct stat="ERROR", msg="Error opening sorted parent list"]
  • [struct stat="ERROR", msg="Bad template: file"]
  • [struct stat="ERROR", msg="Output wcsinit() failed."]
  • [struct stat="ERROR", msg="general error message"]
  • [struct stat="ERROR", msg="No return message from object lookup."]
  • [struct stat="ERROR", msg="Invalid location specification or object name."]
  • [struct stat="ERROR", msg="Can't find RA in lookup return."]
  • [struct stat="ERROR", msg="Can't find Dec in lookup return."]
  • [struct stat="ERROR", msg="Couldn't find host hostname"]
  • [struct stat="ERROR", msg="Couldn't create socket()"]
  • [struct stat="ERROR, msg="hostname: connect failed."]