Re: assigning a color value to array elements

From: Ethan Alpert (ethan AT unknown)
Date: Mon Jan 29 2001 - 13:20:47 MST

  • Next message: Phil Austin: "bcopyswap and Linux"

    If you're using NCL set the contour resource "cnRasterModeOn" to True,
    set "cnLevelSelectionMode" to "EXPLICITLEVELS" and set "cnLevels" to the
    unique values you want.

    See:
    http://ngwww.ucar.edu/ngdoc/ng/ref/hlu/obj/ContourPlot.res.html#cnRasterModeOn

    If you're using the FORTRAN utilities you can use CPCICA which will color
    a GKS cell array.

    See:
    http://ngwww.ucar.edu/ngdoc/ng/supplements/conpack/#CPCICA
    >
    > Hello -
    >
    > We are working with an array of classification data, where each array element
    > corresponds to a particular class of some classification system (e.g. land
    > cover type). It is not a continuous field so it is not appropriate to contour
    > the field (i.e. class 5 does not necessarily occur between class 5 and 7 in
    > the field). We want to use the NCAR graphics package to assign a color on a
    > map to each array element which corresponds to a particular class number.
    > Is there a way to do this?
    >
    > Thanks!
    >
    > Mary Bousquet
    > MESO, Inc.
    >
    >
    >
    >



    This archive was generated by hypermail 2b29 : Mon Jan 29 2001 - 13:28:25 MST