[ncl-talk] plot xy after masking

Mary Haley haley at ucar.edu
Tue Jun 13 08:01:56 MDT 2017


Dear Kunal,

You said you were unable to plot the time series, but didn't give any
information about why not. Do you mean you don't know how to do it, or do
you have a script that is either giving you an error or the wrong plot? If
you already have a script, then it would help if you provide some
information about what you are trying to do, and how it's not working (i.e.
include the error message, if there is one).

We have many time series plots examples.  Please go to the "tips" link from
our examples page:

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

>From the second link, use your browser search to search for "time series".
You will find several links that look like this:

*Using a box plot to show the the median, minimum/maximum value, and the
25th/75th percentiles of two time series*
    box_5.ncl <http://www.ncl.ucar.edu/Applications/Scripts/box_5.ncl> (box
plots <http://www.ncl.ucar.edu/Applications/box.shtml#ex5>)

*Drawing a time series plot*
    ave_1.ncl <http://www.ncl.ucar.edu/Applications/Scripts/ave_1.ncl>
(weighted
averages <http://www.ncl.ucar.edu/Applications/ave.shtml#ex1>)
    bar_15.ncl <http://www.ncl.ucar.edu/Applications/Scripts/bar_15.ncl> (bar
plots <http://www.ncl.ucar.edu/Applications/bar.shtml#ex15>)
    bar_horz_15.ncl
<http://www.ncl.ucar.edu/Applications/Scripts/bar_horz_15.ncl> (bar plots
<http://www.ncl.ucar.edu/Applications/bar.shtml#ex15>)
    climo_2.ncl <http://www.ncl.ucar.edu/Applications/Scripts/climo_2.ncl> (
climatology <http://www.ncl.ucar.edu/Applications/climo.shtml#ex2>)
    demod_cmplx_1.ncl
<http://www.ncl.ucar.edu/Applications/Scripts/demod_cmplx_1.ncl> (spectral
analysis <http://www.ncl.ucar.edu/Applications/spec.shtml#ex1>)
    demod_cmplx_2.ncl
<http://www.ncl.ucar.edu/Applications/Scripts/demod_cmplx_2.ncl> (spectral
analysis <http://www.ncl.ucar.edu/Applications/spec.shtml#ex2>)

To look at a particular example, note the example script name, like
"climo_2.ncl", and then click on the text in parentheses next to it
("climatology"). This will take you to the examples page that has that
example with a thumbnail and a short description.

Please take a moment to look at other time series examples on this page.
You may find something close to what you are trying to accomplish.

Good luck,

--Mary




On Tue, Jun 13, 2017 at 1:59 AM, Kunal Bali <kunal.bali9 at gmail.com> wrote:

> Dear NCL user
>
> I have masked the data so that I can get the values of the ocean only.
> using
>
>  mfile          = addfile("/usr/local/lib/ncl/lib/ncarg/data/cdf/
> landsea.nc","r")
>   lsmask         = mfile->LSMASK
>   lsm            = landsea_mask(lsmask,var&latitude,var&longitude)
>   var_ocean_only = mask(var,lsm.eq.0,True)
>   copy_VarMeta(var,var_ocean_only)
>   plot = gsn_csm_contour_map(wks,var_ocean_only,res)
>
> I am able to plot the spatial map but not able to plot time series.
> Now I need to plot the time series data of 30 days.
> please provide some information on that.
>
>
>
> Thank You
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170613/4e2beab7/attachment.html 


More information about the ncl-talk mailing list