Re: Triangular meshes

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 02 2012 - 10:38:52 MDT

Hi Mathieu,
See example #2 here, the bottom panel:
http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex2

You will need to set res@tmXBMode = "Explicit", and set res@tmXBValues
and res@tmXBLabels appropriately. Note that the range specified in
tmXBValues needs to match the range present in x in the gsn_xy call.
plot = gsn_xy(wks,x,y,False)

for example, if x = ispan(0,10,1), the values specified in
res@tmXBValues should fall within 0 to 10...
Adam

On 10/02/2012 10:22 AM, Mathieu Dutour wrote:
> Thanks for your help.
>
> Another question: Is it possible in ncl to set up the X-axis to
> have dates like
> 2007/11/15 up to 2007/12/15
> or
> 11/15 11/25 12/05 12/15
>
> Matlab allows this but none of the examples shown in
> http://www.ncl.ucar.edu/Applications/gsn_xy.shtml
> show such a behavior. The nearest there is is with
> 01OCT ---> 30OCT
>
> Best,
>
> Mathieu
>
> On Tue, Oct 2, 2012 at 11:03 AM, Mary Haley <haley@ucar.edu
> <mailto:haley@ucar.edu>> wrote:
>
> Hi,
>
> Ivica Jan had a similar question. The grid in the GIF image that you
> refer to was actually drawn by a Fortran 77 program that calls
> NCAR Graphics.
>
> Unfortunately we have no way to automatically draw the mesh for
> an unstructured grid in NCL, except by generating the triangles as
> Ivica mentioned, and using gsn_polyline.
>
> We do have a ticket on this already (NCL-316), which is to add the
> capability to our "CellFill"
> contouring package to draw the cells for triangles. Right now, you
> can only do
> cell fills of rectilinear or curvilinear grids. For an example of
> this, see
> example "orca_2.ncl" at
> http://www.ncl.ucar.edu/Applications/orca.shtml
> (click on the second thumbnail to see the full image).
>
> I've added this request to V6.2.0, but I can't guarantee we'll get
> it in by
> that version.
>
> Meanwhile, you can look at the Fortran program that created
> this GIF image at:
>
> http://www.ncarg.ucar.edu/supplements/conpackt/
>
> Scroll down to "EXAMPLES" and click on "The Example ctcbay.f"
>
> You can generate this example by typing:
>
> ncargex ctcbay
>
> --Mary
>
> On Oct 2, 2012, at 9:55 AM, Mathieu Dutour wrote:
>
> > Hi,
> >
> > how can we draw nice finite element meshes?
> > What I am looking after is
> > http://www.ncl.ucar.edu/Document/Graphics/Images/ctcbay.gif
> > The example on
> > http://www.ncl.ucar.edu/Document/Graphics/contour_grids.shtml
> > does not draw the grid itself, but instead the contour.
> >
> > Mathieu
> >
> >
> > _______________________________________________
> > 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

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 2 10:39:01 2012

This archive was generated by hypermail 2.1.8 : Mon Oct 08 2012 - 15:54:16 MDT