Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes

./

map_init.pro

topmap_init

result = map_init( [center=center] [, width=width] [, pixwidth=pixwidth] [, pixscale=pixscale] [, coordsys=coordsys] [, type=type], _extra=_extra)

This function creates a blank image and fits header, based on input parameters describing the desired image size and orientation.

Keywords

center in optional

A 2 element array specifying the sky location of the center pixel. The coordinate system can be specified with COORDSYS. This keyword is required.

width in optional

The width of the image in DEGREES. A one or two element vector. If width is not specified, both pixwidth and pixscale must be.

pixwidth in optional

The width of the image in PIXELS. A one or two element vector. If pixwidth is not specified, both width and pixscale must be.

pixscale in optional

The size of an individual pixel in DEGREES. A one or two element vector. If not specified, both width and pixwidth must be.

coordsys in optional

An optional string indicating which coordinate system to use. Options are FK5 and GAL. Default is FK5

type in optional

The data type to use for the image. Default is 'FLOAT'.

_extra

Author information

History:

March 2010: Written by Chris Beaumont December 2010: Fixed a big when checking type of coordsys

File attributes

Modifcation date: Tue Dec 7 16:06:10 2010
Lines: 145