Re: Identifying area/country identifier

From: Dave Kennison (kennison@XXXXXX)
Date: Fri Oct 25 2002 - 10:26:53 MDT

  • Next message: Jonathan Murray: "installation problem no ctrans/NCARG_ROOT?"

    Russ,

    > I would like to put colored labels or dots on a map with the color of the
    > dots (or labels) dependent on the country. My question is: Given the
    > lat/lon of a point, how do you get NCAR to tell you what country ID number
    > corresponds to that single point?
    >
    > Is the solution to draw a small line through each point and use MAPITM to
    > tell me (via the masking subroutine) the area identifier of the line? This
    > solution would be really, really cumbersome.
    >
    > Thanks.........russ mcelhaney (mcelhane@huntsville.sparta.com)

    Once you have an area map containing geographic information, you can use the
    AREAS routine ARGTAI to obtain area ID information for a point. It expects
    to be called with the user coordinates of the point, but you can get those
    from lat/lon coordinates by calling the EZMAP routine MAPTRN or MAPTRA. Be
    careful to check the returned user coordinates for the special value 1.E12,
    which EZMAP uses as a signal that the point you're asking about is not on
    the map defined by its current state.

    Dave Kennison
    _______________________________________________
    ncarg-talk mailing list
    ncarg-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncarg-talk



    This archive was generated by hypermail 2b29 : Mon Oct 28 2002 - 07:24:48 MST