MGHGRDENSITYRECT2__DEFINE
Class Name
MGHgrDensityRect2
Purpose
This class implements a "density plot", ie a representation of 2-D
numeric data on a flat surface using colour or grey-scale
density. A rectangular array of cells (quadrilaterals) is set out
and the data values are represented by the colour at the centre of
the cells (STYLE=0) or at the vertices (STYLE=1).
The MGHgrDensityRect2 (MDR2) implementation regrids the data to an
IDLgrImage of fixed dimensions. It is thus similar to an
MGHgrDensityRect (MDR), but differs in that an MDR2 is a
stand-alone image whereas an MDR is a polygon with the image
mounted as a texture map. The MDR2 is redrawn slightly faster but
doesn't behave very well in a 3D environment. Also the MDR2
doesn't currently support curvilinear grids, though this could be
grafted in as it has been with the MDR. In any case, if I ever
find a compelling use for the MDR2 I should overhaul the code
along the lines of the MDR.
###########################################################################
This software is provided subject to the following conditions:
1. NIWA makes no representations or warranties regarding the
accuracy of the software, the use to which the software may
be put or the results to be obtained from the use of the
software. Accordingly NIWA accepts no liability for any loss
or damage (whether direct of indirect) incurred by any person
through the use of or reliance on the software.
2. NIWA is to be acknowledged as the original author of the
software where the software is used or presented in any form.
###########################################################################
Modification History
Mark Hadfield, 1998-09:
Written, based on earlier density plot implementations.
Mark Hadfield, 2002-07:
Now allows a curvilinear horizontal grid via 2-dimensional
DATAX and DATAY arrays.