Creates the header template for a specific WWT/TOAST tile. These tiles are not usually of any use except in serving the WWT interface, though the files are standard FITS and PNG so can be viewed that way if so desired. Tiles are identified by WWT tile ID (a Z-ordered quandrant digits string).
mHdrWWT tileID hdrFile


For the top-level (all-sky) TOAST tile, the tileID is an empty string. For the next level down the sky is divided in four "quadrants" with the tileID being "0", "1", "2" and "3". This proceeds to finer granularity, with tiles at the fifth level down having IDs like "3102".
Output header file, normally having a name that includes the tileID (e.g., "planck.hdr", "planck3102.hdr").
Generates the specified header file, which will then be used by mProjectQL to reproject input data into TOAST tile FITS files (which in turn are converted by mViewer into TOAST tile PNG files). Normally, all this is only used in conjunction with the WWT interface.


Tile IDs are in the form of a Z-ordered recursion. For informational purposes, the program also outputs the location of the tile in the "x" and "y" location it has in the array of tiles for its tile level.

$ mHdrWWT "3102" planck3102.hdr
[struct stat="OK", level=4, xtile=12, ytile=6]

Return Codes:

  • [struct stat="OK", level=level, xtile=i, ytile=j]
  • [struct stat="ERROR", msg="Usage: mHdrWWT tileID outFile"]
  • [struct stat="ERROR", msg="Invalid character in ID string (must be in [0,1,2,3])"]
  • [struct stat="ERROR", msg="Cannot open output header file."]