Welcome to

Atlasmaker

Script Definitions

The following scripts are in the "python" subdirectory, and they are executable -- you don't need to say "python Run.py", but just "Run.py".

makeTiles.py Script

colorPicture.py Script

This script is a rollup of the makeChart, getData, Run, and utility programs defined below. It makes a simple square projection centered at the given point. For more flexibility, edit this script, or build something new from the component scripts.

Run.py Script

The following arguments are applicable when running Atlasmaker in parallel mode. If the -np argument is present, the projection is done through the parallel executive, with the specified number of processors. If the -machinefile argument is present, its value is assumed to point to a file of machine names that will be used as worker nodes. If neither of those is present, the computation is serial. In all cases, the background subtraction and coaddition is done serially.

getData.py Script

This script uses a given chart and an NVO images server to fetch data. The chart is used to form the request to the server, which returns a set of URLs. These URLs are instantiated, and the resulting data stored in the place indicated through the -data argument. This code understands http:// and srb:// URLs. In the latter case, it attempts ti initiate SRB transport by running the "Sinit" command. If that succeeds, it assumes that "Sget" and "Sexit" will also work. For more information on SRB check here.

makeChart.py Script

This script creates a chart with minimal input information. The mandatory parameters are the RA and Dec of a point in the sky that will be in the approximate center of the created mosaic, and the width and height of the image that will be produced, in pixels. If there is an "atlas" argument, the relevant page is found though a call to a Hyperatlas service (see here for more information). Otherwise, a "scale" argument is needed to define the scale in degrees per pixel. In the latter case, the projection will be TAN and the reference point at the center of the image.

other Utilities

These utilities are in the "util" subdirectory.

mReduceFloat -o <outfile> <infile>
This program takes a FITS file with BITPIX=-64 (double pixels), and converts it to a file with BITPIX=-32 (float pixels).

mReduce -a <minq> -z <maxq> -o <outfile> <infile>
This program takes a FITS file with BITPIX=-64 (double pixels), and converts it to one with BITPIX=8 (byte pixels). The parameters "minq" and "maxq" are quantiles of the pixel distribution that are used to maximize the information content of the resulting image. A pixel brightness minp is found so that the proportion of pixels "minq" are less than minp, and similarly for "maxq". Pixels less than minp are mapped to zero, and greater than maxp mapped to 255. Pixels between are mapped with a square root stretch. Thus if "minq" is 0.5, then minp is the median pixel brightness.

mCombine <fileR> <fileG> <fileB>
This program takes three FITS files with BITPIX=8 (byte pixels) and interleaves the pixels to a color PPM file, which is emitted on standard output. It is intended to be used with the JPEG compression utility "cjpeg" which is in util/jpeg.