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

mPix2Coord - Output the sky location corresponding to a pixel coordinate

Arguments

       template.hdr
              ASCII header template describing the image (either a FITS image, or a JPEG file created  from  the
              FITS file)

       ixpix  X coordinate (pixel location) on image

       jypix  Y coordinate (pixel location) on image

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

       Takes  an  image  FITS  header  template  and a pixel (x,y) coordinate, and outputs the corresponding sky
       location.  Newer mExamine can do the same and more for real image files.

Examples

       To find out what the coordinates are at the 100,130 pixel on an image defined by template.hdr:

       $ mPix2Coord template.hdr 100 130
              [struct stat="OK", lon=0.027777, lat=0.036110]

Messages

       OK     [struct stat="OK", lon=ra, lat=dec]

       ERROR  Bad template: template.hdr

       ERROR  Output wcsinit() failed.

Name

       mPix2Coord - Output the sky location corresponding to a pixel coordinate

Options

       -d     Print out additional debugging information

Result

[structstat="OK",lon=ra,lat=dec]

       where ra,dec are the sky coordinates that correspond to the input pixel.

Synopsis

       mPix2Coord [-d] template.hdr ixpix jypix

See Also