Re: ncl-talk Digest, Vol 40, Issue 41

From: Muhammad Amjad <callamjad_at_nyahnyahspammersnyahnyah>
Date: Thu, 29 Mar 2007 10:21:02 +0500

Dear NCL users,
I have a .nc file containg six hours data for the one year. Now I want to
convert this six hours data into daily data and then daily data into
monthaly data. Can any body help me.
Thanking in advance
Amjad

On 3/29/07, ncl-talk-request_at_ucar.edu <ncl-talk-request_at_ucar.edu> wrote:
>
> Send ncl-talk mailing list submissions to
> ncl-talk_at_ucar.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> or, via email, send a message with subject or body 'help' to
> ncl-talk-request_at_ucar.edu
>
> You can reach the person managing the list at
> ncl-talk-owner_at_ucar.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ncl-talk digest..."
>
>
> Today's Topics:
>
> 1. Legend (luciana mara freitas diniz)
> 2. Re: Legend (Adam Phillips)
> 3. Re: Legend (Adam Phillips)
> 4. Coordinate subscripts (Mateus da Silva Teixeira)
> 5. How to plot grid lines for the NARR data? (Haibin Li)
> 6. Re: Coordinate subscripts (ozan mert gokturk)
> 7. missing values (Mateus da Silva Teixeira)
> 8. Re: Coordinate subscripts (Mateus da Silva Teixeira)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 28 Mar 2007 15:34:08 -0300
> From: "luciana mara freitas diniz" <lucianamfd_at_gmail.com>
> Subject: Legend
> To: ncl-talk <ncl-talk_at_ucar.edu>
> Message-ID:
> <fbefe6770703281134p3d2ff492k3dc32e108c680ce5_at_mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi, Ncl users!
>
> I have a problem with a legend...
> When reading an archive ".nc" and plotting the global map, the numbers of
> the legend appear correctly, but when the resources mpMaxLatF,
> res_at_mpMinLatF, res_at_mpMaxLonF, res_at_mpMinLonF are used, the numbers of
> legend
> does not appear, although specified.
>
> What it can be this?
>
> Thanks a lot.
>
>
>
> --
> Luciana Mara Freitas Diniz
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20070328/3c71013e/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Wed, 28 Mar 2007 12:46:26 -0600
> From: Adam Phillips <asphilli_at_cgd.ucar.edu>
> Subject: Re: Legend
> To: luciana mara freitas diniz <lucianamfd_at_gmail.com>
> Cc: ncl-talk <ncl-talk_at_ucar.edu>
> Message-ID: <460AB802.5040906_at_cgd.ucar.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Luciana,
>
> It is hard to diagnose what is wrong without seeing your script or a
> .gif/.jpg of the plot. Please email me (not the ncl-talk list) back and
> attach your script/plot.
> Thanks,
> Adam
>
> luciana mara freitas diniz wrote:
> > Hi, Ncl users!
> >
> > I have a problem with a legend...
> > When reading an archive ".nc" and plotting the global map, the numbers
> > of the legend appear correctly, but when the resources
> > mpMaxLatF, res_at_mpMinLatF, res_at_mpMaxLonF, res_at_mpMinLonF are
> > used, the numbers of legend does not appear, although specified.
> >
> > What it can be this?
> >
> > Thanks a lot.
> >
> >
> >
> > --
> > Luciana Mara Freitas Diniz
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk_at_ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> --
> --------------------------------------------------------------
> Adam Phillips asphilli_at_ucar.edu
> National Center for Atmospheric Research tel: (303) 497-1726
> ESSL/CGD/CAS fax: (303) 497-1333
> P.O. Box 3000
> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 28 Mar 2007 13:40:16 -0600
> From: Adam Phillips <asphilli_at_cgd.ucar.edu>
> Subject: Re: Legend
> To: luciana mara freitas diniz <lucianamfd_at_gmail.com>
> Cc: ncl-talk <ncl-talk_at_ucar.edu>
> Message-ID: <460AC4A0.70404_at_cgd.ucar.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Luciana,
>
> In most cases NCL will automatically position the label bar such that
> the label bar labels will be on the page. Every so often, the label bar
> labels (and even occasionally the label bar itself) are pushed off of
> the page do to a combination of resources that are set. When this
> happens, you have a couple of easy options.
>
> 1) set one (or more) of the vp resources vpHeightF/vpWidthF/vpYF/vpXF to
> manually set the size of your plot. In your case, I set vpHeightF = 0.6
> and I can see your label bar labels.
>
> 2) You can set the plot manager label bar resources to nudge the label
> bar up or down, left or right.
>
> http://www.ncl.ucar.edu/Document/Graphics/Resources/pm.shtml#pmLabelBarOrthogonalPosF
>
> http://www.ncl.ucar.edu/Document/Graphics/Resources/pm.shtml#pmLabelBarParallelPosF
>
> There are other ways to get around this, but the above two options
> almost always work..
> Good luck.
> Adam
>
> luciana mara freitas diniz wrote:
> > Hi, Ncl users!
> >
> > I have a problem with a legend...
> > When reading an archive ".nc" and plotting the global map, the numbers
> > of the legend appear correctly, but when the resources
> > mpMaxLatF, res_at_mpMinLatF, res_at_mpMaxLonF, res_at_mpMinLonF are
> > used, the numbers of legend does not appear, although specified.
> >
> > What it can be this?
> >
> > Thanks a lot.
> >
> >
> >
> > --
> > Luciana Mara Freitas Diniz
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk_at_ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> --
> --------------------------------------------------------------
> Adam Phillips asphilli_at_ucar.edu
> National Center for Atmospheric Research tel: (303) 497-1726
> ESSL/CGD/CAS fax: (303) 497-1333
> P.O. Box 3000
> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 28 Mar 2007 17:19:01 -0300
> From: Mateus da Silva Teixeira <mtex2k3_at_yahoo.com.br>
> Subject: Coordinate subscripts
> To: ncl-talk_at_ucar.edu
> Message-ID: <460ACDB5.9090400_at_yahoo.com.br>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dear NCL users,
>
> I'm trying to do something that I am not sure if I can.
> I saw in reference manual that I can use a vector as a subscript. It is
> possible to do the same thing with coordinate subscritps?
> By examples is more simple to show:
> With index subscript:
> > a=(/1,2,3,4,5,6,7,8,9/)
> > a!0 = "X"
> > a&X = (/1,2,3,4,5,6,7,8,9/)
> > a((/0,4,7/)) = -9999
> > print(a)
> (0) -9999
> (1) 2
> (2) 3
> (3) 4
> (4) -9999
> (5) 6
> (6) 7
> (7) -9999
> (8) 9
>
> But, I want to do it by passing the coordinates of the variable.
> Is it possible?
>
> Thanks
> Mateus
>
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 28 Mar 2007 17:06:48 -0400
> From: "Haibin Li" <haibin1977_at_gmail.com>
> Subject: How to plot grid lines for the NARR data?
> To: ncl-talk_at_ucar.edu
> Message-ID:
> <5d6a2b300703281406u78ab0f66j10b6d7445c7a769c_at_mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello there,
> Thanks to the sample code provided on the UCAR NARR data website, I
> was able to plot the NARR data in the original Lambert Conformal map
> projection. But I would like to further plot/delineate the grid lines
> (277*349 ) for the Lambert Conformal projection of NARR data. I just
> wonder whether there is a way to do it and how. The reason I want to
> do this is that I have some station data and I want to identify those
> grids corresponding to known (lat,lon) stations and extract those grid
> values.
> Thanks.
>
>
>
>
> Regards,
> Haibin
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 29 Mar 2007 00:19:19 +0300
> From: ozan mert gokturk <gokturko_at_itu.edu.tr>
> Subject: Re: Coordinate subscripts
> To: mtex2k3_at_yahoo.com.br
> Cc: ncl-talk_at_ucar.edu
> Message-ID: <20070329001919.b3i10n7rls5wcwgw_at_webmail.itu.edu.tr>
> Content-Type: text/plain; charset=UTF-8; format="flowed"
>
> Hi Mateus,
>
> You can do this just like in standard subscripting, if I got the question
> correct. Just give the dimension name, and coordinates, enclosed in curly
> braces:
>
> ncl 0> a = (/10,20,30,40,50,60,70,80,90/)
> ncl 1> a!0 = "X"
> ncl 2> a&X = (/3,6,9,12,15,18,21,24,27/)
> ncl 3> print(a({X|(/6,18/)}))
>
>
> Variable: a (subsection)
> Type: integer
> Total Size: 8 bytes
> 2 values
> Number of Dimensions: 1
> Dimensions and sizes: [X | 2]
> Coordinates:
> X: [6..18]
> (0) 20
> (1) 60
>
>
> Hope this helps..
>
> --Ozan
>
>
>
> Quoting Mateus da Silva Teixeira <mtex2k3_at_yahoo.com.br>:
>
> > Dear NCL users,
> >
> > I'm trying to do something that I am not sure if I can.
> > I saw in reference manual that I can use a vector as a subscript. It is
> > possible to do the same thing with coordinate subscritps?
> > By examples is more simple to show:
> > With index subscript:
> > > a=(/1,2,3,4,5,6,7,8,9/)
> > > a!0 = "X"
> > > a&X = (/1,2,3,4,5,6,7,8,9/)
> > > a((/0,4,7/)) = -9999
> > > print(a)
> > (0) -9999
> > (1) 2
> > (2) 3
> > (3) 4
> > (4) -9999
> > (5) 6
> > (6) 7
> > (7) -9999
> > (8) 9
> >
> > But, I want to do it by passing the coordinates of the variable.
> > Is it possible?
> >
> > Thanks
> > Mateus
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk_at_ucar.edu
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 28 Mar 2007 18:32:59 -0300
> From: Mateus da Silva Teixeira <mtex2k3_at_yahoo.com.br>
> Subject: missing values
> To: ncl-talk_at_ucar.edu
> Message-ID: <460ADF0B.5050000_at_yahoo.com.br>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dear NCL users,
>
> I have a 3D array dimensioned (year | 1960:2004, month | 1:12, day |
> 1:31) in which I put precipitation data - I should do it because my data
> source.
> Because the array dimensionality, some fake days do appear, like Feb 30
> and April 31, for example.
> So, in order to eliminate these fake days I substitute the data
> _FillValue for another, like -1.0.
> When I print the array for one year, the fake days appear correctly
> marked with -1.0. I show to you the right end of the first year of this
> array:
>
> 0.00 0.00 0.00 13.40 0.00 3.80 21.00 <-
> JANUARY
> 0.00 0.00 0.00 32.00 -1.00 -1.00 -1.00
> 7.20 4.40 3.40 7.00 0.00 0.00 0.00
> 0.00 0.00 19.20 0.00 0.00 0.00 -1.00
> 0.00 0.00 0.00 0.00 0.00 0.00 0.00
> 0.00 0.00 8.40 0.00 7.20 0.00 -1.00
> 0.00 0.00 0.00 0.00 0.00 0.00 0.00
> 0.00 0.00 0.00 0.00 0.00 0.00 0.00
> 30.40 0.00 0.00 0.00 0.00 0.00 -1.00
> 0.00 0.00 0.00 0.00 0.00 0.00 0.00
> 0.00 0.00 0.00 0.00 0.00 0.00 -1.00
> 11.00 15.00 4.00 0.00 0.00 0.00 0.00 <-
> DECEMBER
>
> To eliminate these days, I transform these array to an 1D array and find
> the indexes of the fake days, like below
>
> seriePluv = ndtooned(selPeriodo(0,:,:)) ; selPeriodo is
> the 3D array, getting only the first year (the data showed above).
> seriePluv@_FillValue = fakeDays_value ; fakeDays_value = -1.0
> print(num(ismissing(seriePluv))) ; verifying
> the number of the fake days of the first year => should be 7
>
>
> However, the result is completely strange: it returns 68 fake days for
> this first year.
> Am I doing something wrong?
> I already try another values to mark the fake days, but nothing changed!
>
> Thanks
> Mateus
>
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 28 Mar 2007 18:37:01 -0300
> From: Mateus da Silva Teixeira <mtex2k3_at_yahoo.com.br>
> Subject: Re: Coordinate subscripts
> To: ozan mert gokturk <gokturko_at_itu.edu.tr>
> Cc: ncl-talk_at_ucar.edu
> Message-ID: <460ADFFD.1010100_at_yahoo.com.br>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Ozan,
>
> Thank you so much be the help!
>
> Mateus
>
> ozan mert gokturk escreveu:
> > Hi Mateus,
> >
> > You can do this just like in standard subscripting, if I got the
> question
> > correct. Just give the dimension name, and coordinates, enclosed in
> curly
> > braces:
> >
> > ncl 0> a = (/10,20,30,40,50,60,70,80,90/)
> > ncl 1> a!0 = "X"
> > ncl 2> a&X = (/3,6,9,12,15,18,21,24,27/)
> > ncl 3> print(a({X|(/6,18/)}))
> >
> >
> > Variable: a (subsection)
> > Type: integer
> > Total Size: 8 bytes
> > 2 values
> > Number of Dimensions: 1
> > Dimensions and sizes: [X | 2]
> > Coordinates:
> > X: [6..18]
> > (0) 20
> > (1) 60
> >
> >
> > Hope this helps..
> >
> > --Ozan
> >
> >
> >
> > Quoting Mateus da Silva Teixeira <mtex2k3_at_yahoo.com.br>:
> >
> >> Dear NCL users,
> >>
> >> I'm trying to do something that I am not sure if I can.
> >> I saw in reference manual that I can use a vector as a subscript. It is
> >> possible to do the same thing with coordinate subscritps?
> >> By examples is more simple to show:
> >> With index subscript:
> >> > a=(/1,2,3,4,5,6,7,8,9/)
> >> > a!0 = "X"
> >> > a&X = (/1,2,3,4,5,6,7,8,9/)
> >> > a((/0,4,7/)) = -9999
> >> > print(a)
> >> (0) -9999
> >> (1) 2
> >> (2) 3
> >> (3) 4
> >> (4) -9999
> >> (5) 6
> >> (6) 7
> >> (7) -9999
> >> (8) 9
> >>
> >> But, I want to do it by passing the coordinates of the variable.
> >> Is it possible?
> >>
> >> Thanks
> >> Mateus
> >>
> >> _______________________________________________
> >> ncl-talk mailing list
> >> ncl-talk_at_ucar.edu
> >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >>
> >
> >
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> >
>
>
>
> ------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> End of ncl-talk Digest, Vol 40, Issue 41
> ****************************************
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 28 2007 - 23:21:02 MDT

This archive was generated by hypermail 2.2.0 : Sun Apr 01 2007 - 11:52:47 MDT