logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mHdr - Connect to the IRSA service to create a header template

Arguments

       object|location
              Object  string  or  coordinate  location;  should  be in quotes if there are any spaces or special
              characters.

       width  Width (x-axis) of area

       outfile
              Path to output header template

Bugs

       The drizzle algorithm has been implemented but has not been tested in this release.

       If a header template contains carriage returns (i.e., created/modified on a Windows machine), the cfitsio
       library  will  be  unable  to read it properly, resulting in the error: [struct stat="ERROR", status=207,
       msg="illegal character in keyword"]

       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 is safer to turn on the "level only" background matching (the "-l"
       flag in mBgModel.

Description

       Connects to the IRSA service HdrTemplate  to  create  a  header  template  based  on  a  location,  size,
       resolution and rotation.

Examples

       If a user wants to create a mosaic centered on m31, 1 degree on each side, the first step is to create  a
       header template that describes the desired mosaic:

       mHdr "10.68469 +41.26904" 1 m31.hdr
              [struct stat="OK", count=16]

       Now m31.hdr can be used by other Montage modules to generate a mosaic.

Messages

       OK     [struct stat="OK", count=header-lines]

       ERROR  Can't open output file outfile

       ERROR  location parameter required

       ERROR  width parameter required

       ERROR  Invalid object/coordinates

       ERROR  Couldn't find host irsa.ipac.caltech.edu

       ERROR  Couldn't create socket

       ERROR  irsa.ipac.caltech.edu: connect failed

Name

       mHdr - Connect to the IRSA service to create a header template

Options

       -s system

              Specify a coordinate system.  Can be one of:

              "equatorial" or "eq" (default) "ecliptic" or "ec" "galactic" or "ga" "supergalactic" or "sgal"

       -e equinox

              Specify an equinox.  Default is 2000.0

       -h height
              Height (y-axis) of area in degrees.  Default is equal to width

       -p pixsize
              Size of a pixel (in arcsec); default is 1

       -r rotation
              Rotation of image; default is 0

       -t 2mass-band
              If the data is 2MASS, the correct MAGZP will be added to the header.

Result

[structstat="OK",count=header-lines]

Synopsis

       mHdr  [-s  system]  [-e  equinox]  [-h height] [-p pixsize] [-r rotation] [-t 2mass-band] object|location
       width outfile

See Also