[ncl-talk] Fwd: regrid and plot
Dennis Shea
shea at ucar.edu
Fri Sep 30 13:13:13 MDT 2016
I have taken a 'quick' look at your script. I do not 'know' the model (ie,
data) you are using. Your script was a bit confusing. :-)
--
Attached:
[1]
A very basic script that illustrates plotting the SWVP variable *and* using
the linint2 and area_hi3lores interpolation functions on this field. This
is fairly simple.
[2]
I took a look at your original script. I was a bit confused. I made some
changes. I know the numbers are *not correct*. Again I do not know your
data. I computed some sample weighted vertical sums but not the weighted
vertical averages [ sum(X*DP)/sum(DP) ] . I did not look at or make any
changes to your plot codes. You will have to change these. This should give
you a start. The key is for you to to correctly compute the layer
thickness(es) [dp]. I think your surface pressures must be (PP+p ???).
[3]
When you send questions to ncl-talk, it is best to indicate the version of
NCL you are using. Further, clean scripts are appreciated.
Good luck
D
On Thu, Sep 29, 2016 at 10:10 AM, Paolina Bongioannini Cerlini <
paolina.cerlini at unipg.it> wrote:
> Sorry sorry, I forgot to say that in BM-256x256x64_3km_SWVP-write.ncl
> script you need to read before
> file with 2D output and then 3D output, since there are different
> variables stored.
> I put both types of files in the incoming ftp dir.
> :)
>
> Paolina
> ----- Original Message -----
> From: "Dennis Shea" <shea at ucar.edu>
> To: "paolina cerlini" <paolina.cerlini at unipg.it>
> Cc: "ncl-talk" <ncl-talk at ucar.edu>
> Sent: Thursday, 29 September, 2016 04:19:58
> Subject: Re: [ncl-talk] Fwd: regrid and plot
>
> What is needed is one or two sample netCDF files:
>
> EG:
>
> RCE_IDEAL_256x256x64_3000m_10s_90days_uv0_256_0004237920.nc
> RCE_...
>
> THX
>
> On Wed, Sep 28, 2016 at 10:47 AM, Paolina Bongioannini Cerlini <
> paolina.cerlini at unipg.it> wrote:
>
> > Hello,
> > thank you for suggesting me to upload the .ncl .ps
> > output.txt files in you server.
> > Paolina
> >
> >
> > ----- Original Message -----
> > From: "Dennis Shea" <shea at ucar.edu>
> > To: "paolina cerlini" <paolina.cerlini at unipg.it>
> > Cc: "ncl-talk" <ncl-talk at ucar.edu>
> > Sent: Wednesday, 28 September, 2016 18:30:02
> > Subject: Re: [ncl-talk] Fwd: regrid and plot
> >
> > Could you please put the file onto our ftp area?
> >
> > ftp ftp.cgd.ucar.edu
> > anonymous
> > your_email
> > cd incoming
> > prompt
> > put ...
> > quit
> >
> > Please let ncl-talk know ehen the file transfer has been successfully
> > completed.
> >
> > THX
> >
> >
> > On Wed, Sep 28, 2016 at 10:23 AM, Paolina Bongioannini Cerlini <
> > paolina.cerlini at unipg.it> wrote:
> >
> > >
> > >
> > > ----- Forwarded Message -----
> > > From: "paolina cerlini" <paolina.cerlini at unipg.it>
> > > To: "ncl-talk" <ncl-talk at ucar.edu>
> > > Sent: Wednesday, 28 September, 2016 17:24:51
> > > Subject: regrid and plot
> > >
> > > Hello NCL people,
> > >
> > > I have on output from a model and I want to read it, to elaborate it,
> > > then to re-grid it on a lower resolution grid, then re-plot it.
> > >
> > > I succeeded in doing it but
> > > the plot is not doing the right axes and titles.
> > > Maybe it is some trivial error about Levels.
> > > I attach the script and output both on the screen and .ps
> > > Thank for your help.
> > >
> > > Paolina
> > >
> > > --
> > > Paolina Bongioannini Cerlini Ph.D.
> > > University of Perugia
> > > CIRIAF -room 8
> > > 06125 - Perugia
> > >
> > > Tel.+39 075 5853576
> > > e-mail: paolina.cerlini at unipg.it
> > > skype: pcerlini
> > > --
> > > --
> > > Paolina Bongioannini Cerlini Ph.D.
> > > University of Perugia
> > > CIRIAF -room 8
> > > 06125 - Perugia
> > >
> > > Tel.+39 075 5853576
> > > e-mail: paolina.cerlini at unipg.it
> > > skype: pcerlini
> > > --
> > >
> > > _______________________________________________
> > > ncl-talk mailing list
> > > ncl-talk at ucar.edu
> > > List instructions, subscriber options, unsubscribe:
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > >
> > >
> > --
> > Paolina Bongioannini Cerlini Ph.D.
> > University of Perugia
> > CIRIAF -room 8
> > 06125 - Perugia
> >
> > Tel.+39 075 5853576
> > e-mail: paolina.cerlini at unipg.it
> > skype: pcerlini
> > --
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> --
> Paolina Bongioannini Cerlini Ph.D.
> University of Perugia
> CIRIAF -room 8
> 06125 - Perugia
>
> Tel.+39 075 5853576
> e-mail: paolina.cerlini at unipg.it
> skype: pcerlini
> --
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160930/274e955e/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SWVP_ex01.ncl
Type: text/x-ncl
Size: 4004 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160930/274e955e/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BM-256x256x64_3km_SWVP-write.ncl
Type: text/x-ncl
Size: 7885 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160930/274e955e/attachment-0001.bin
More information about the ncl-talk
mailing list