Re: adding polymarker in terrain plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 22 2013 - 08:52:34 MDT

Sangeeta,

In order to correctly place markers, lines, or polygons on an existing plot using gsn_polyxxx, you must use coordinate values that are in the same data space as your plot.

In the PDF you sent, it indicates the range of your X and Y axes both go from 0 to 50.

You are trying to add a polymarker at location x = 85.3 and y = 27.7. The x value is outside the range of 0 to 50, and hence that's why it doesn't show up.

My guess is that your HGT variable probably has lat/lon coordinate arrays attached to it, but ou are using "gsn_contour", which is a generic function that doesn't look for coordinate arrays.

Try using gsn_csm_contour instead, or, if you really want this over a map, I suggest gsn_csm_contour_map. Hopefully then you will be in latitude/longitude space, and the marker code will work.

--Mary

On Oct 22, 2013, at 2:46 AM, sangeeta maharjan <sangeetamaharjan@gmail.com> wrote:

> Dear All
>
> I tried to locate a place using gsn_add_polymarker() in terrain plot
> but no polymarker was seen in the plot. Am I using the ncl function
> correctly in my script?
>
> I have included my script herewith for your reference.
>
> I am pleased to have any help on it.
>
> Thanks.
> Sangeeta Maharjan.
> <terrain_polymarker.ncl><plt.pdf>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 22 08:52:47 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 22 2013 - 10:35:27 MDT