Re: map contour plot with gridded 1-D lat&lon

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 04 2013 - 09:15:06 MST

Dear Lijun,

I'm not sure if anybody every responded to this message.

It sounds like you have a "rectilinear" grid, which is one of the easier ones to plot. You didn't what kind of file this data is on, but I'm going to assume this is a NetCDF file.

As a start, please look at example "ce_1.ncl" at:

http://www.ncl.ucar.edu/Applications/cylineq.shtml

If you are just starting out with NCL, you may want to look at the NCL mini language reference manual:

http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf

and our "getting started" page:

http://www.ncl.ucar.edu/get_started.shtml

Good luck,

--Mary

On Nov 25, 2013, at 2:46 PM, Lijun Diao <ljdiao@gmail.com> wrote:

> Hi, all:
>
> I have one two-dimentional data array and one-dimensional lat and lon arrays as:
>
> float var(lat, lon) ;
>
> lat = 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5, 26.5,
> 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5, 38.5,
> 39.5, 40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5, 50.5,
> 51.5, 52.5, 53.5, 54.5, 55.5, 56.5, 57.5, 58.5, 59.5, 60.5 ;
>
> lon = -141.5, -140.5, -139.5, -138.5, -137.5, -136.5, -135.5, -134.5,
> -133.5, -132.5, -131.5, -130.5, -129.5, -128.5, -127.5, -126.5, -125.5,
> -124.5, -123.5, -122.5, -121.5, -120.5, -119.5, -118.5, -117.5, -116.5,
> . ... ;
>
> How can I plot the contour plot with map?
>
> thanks,
>
> -----------------------------------------------------------------------------
> Lijun Diao
> ldiao@uh.edu
> Research Assistant
> Department of Earth & Atmospheric Sciences
> University of Houston
> 4800 Calhoun RD., Bldg. S&R1-312
> Houston, TX 77204-5007
> _______________________________________________
> 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 Wed Dec 4 09:15:18 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 04 2013 - 20:42:38 MST