[Fwd: Re: [ncl-talk] PolyMarkers Question]

From: Adam Phillips (asphilli AT cgd.ucar.edu)
Date: Tue Apr 26 2005 - 14:31:05 MDT

  • Next message: Nestor Waldyd: "ncargf90"

    Feedback from Sarav regarding the polymarker scripts sent out yesterday.
    Both examples will be put online, and we will try to add shaded contours
    to the basemap as Sarav suggests...

    -------- Original Message --------
    Subject: Re: PolyMarkers Question
    Date: Tue, 26 Apr 2005 15:28:46 -0400 (EDT)
    From: Saravanan Arunachalam <sarav@email.unc.edu>
    To: Adam Phillips <asphilli@cgd.ucar.edu>

    Wow, this is great. I am pretty impressed with the User Support
    provided by this group.

    Thanks for the scripts. May I suggest that when you post these scripts to
    the NCL page, also add a contouring option to the base map that includes
    the same color scale.

    Best.. Sarav

    On Mon, 25 Apr 2005, Adam Phillips wrote:

    > Hi Sarav,
    >
    > The question about binning with polymarkers has come up before,
    > unfortunately there isn't an example of this in the NCL Applications
    > polygon section, yet. (http://www.ncl.ucar.edu/Applications/polyg.shtml)
    >
    > Mary Haley had previously written an example that shows how to do this,
    > I modified it slightly to be more generic. That script is attached here
    > as markers.ncl. This script will draw markers that have been binned over
    > a preexisting map. The colormap, the colors to be used, and the setting
    > of the bins are done at the top of the program under the options section.
    >
    > You cannot draw a black outline around each marker though (as in your
    > example). Mary came up with an idea to use gsn_add_polygon to duplicate
    > that feature. I took the markers.ncl script and modified it so that
    > polygons are drawn instead of markers, allowing one to use the gsEdge
    > resources to draw a black boundary around the diamond, and then setting
    > gsFillColor to color the interior of the polygon. This script is
    > attached here as polygonfill.ncl, and the resulting plot is attached as
    > polygonfill.jpg.
    >
    > Let me know if you see any problems with the scripts, I believe these
    > two will be likely added to the ncl webpage soon...
    >
    > Adam
    >
    > Saravanan Arunachalam wrote:
    > > Hi,
    > >
    > > Can one enable coloring of polymarkers with NCL, just like you would for
    > > contouring, i.e. different colors for chosen bins. I looked through the
    > > documentation section of polymarkers, but didnt find this capability.
    > >
    > > Please see a plot at the link below, that was produced from a different
    > > software. The diamonds on these plots indicate not only the locations of
    > > observed stations, but also the magnitude of the observed values, i.e.
    > > the diamonds are colored using the same color-bin that are used for the
    > > tile-plot (represents the modeled data).
    > >
    > > ftp://ftp.unc.edu/pub/empd/sarav/tileplot_obsoverlay.png
    > >
    > > This type of plot helps in comparing model predictions compared to
    > > observations on the same plot.
    > >
    > > Thanks.
    > >
    > > Sarav Arunachalam
    > >
    > >
    > > _______________________________________________
    > > ncl-talk mailing list
    > > ncl-talk@ucar.edu
    > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
    >
    > --
    > --------------------------------------------------------------
    > Adam Phillips asphilli@ucar.edu
    > National Center for Atmospheric Research tel: (303) 497-1726
    > ESSL/CGD fax: (303) 497-1333
    > P.O. Box 3000
    > Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
    >

    -- 
    --------------------------------------------------------------
    Adam Phillips			             asphilli@ucar.edu
    National Center for Atmospheric Research   tel: (303) 497-1726
    ESSL/CGD                                   fax: (303) 497-1333
    P.O. Box 3000				
    Boulder, CO 80307-3000	  http://www.cgd.ucar.edu/cas/asphilli
    _______________________________________________
    ncl-talk mailing list
    ncl-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk
    



    This archive was generated by hypermail 2b29 : Tue Apr 26 2005 - 16:22:41 MDT