[ncl-talk] ncl-talk Digest, Vol 174, Issue 45
Ivica Janeković
ivica.jan at gmail.com
Wed May 30 17:54:08 MDT 2018
I am using masking and all is working as should. What is your error?
example:
....
gridv=addfile(hisfile, "r")
mu = gridv->u(start_record:stop_record:timestep,:,:)
mv = gridv->v(start_record:stop_record:timestep,:,:)
; mask
mu = mask(mu,(mu.lt.-1e5).or.(mu.gt.1e5),False)
mv = mask(mv,(mv.lt.-1e5).or.(mv.gt.1e5),False)
mu at lon2d=lon2d
mu at lat2d=lat2d
mv at lon2d=lon2d
mv at lat2d=lat2d
Cheers,
Ivica
On Thu, May 31, 2018 at 6:38 AM, <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. plot masked vectors (Michele Petrini - CITG)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 30 May 2018 22:38:37 +0000
> From: Michele Petrini - CITG <M.Petrini at tudelft.nl>
> To: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
> Subject: [ncl-talk] plot masked vectors
> Message-ID: <C26FA7BA-202E-4BB5-A91F-78B8B4E644F1 at tudelft.nl>
> Content-Type: text/plain; charset="utf-8"
>
> Dear helpdesk,
>
> I am trying to plot velocity vectors over a contour (+other stuff, see
> attached pdf).
>
> I have a question, is there a way to mask out the small vectors and leave
> only velocity vectors exceeding some threshold (let?s say 100 m/yr)?
>
> If I try to mask the u/v variables, I get an error.
>
> Looking on the internet, I see that there is someone suggesting to overlay
> two vector contours, but the procedure seems to be a little bit
> complicated, and I wonder if there exists a simpler way,..
>
> thanks!
> Michele
>
>
> ******************************************************************
> Michele Petrini, PhD
>
> Department of Geoscience and Remote Sensing, TUDelft
> Delft, The Netherlands
>
> M.Petrini at tudelft.nl<mailto:M.Petrini at tudelft.nl>
> +39 3398367372
> michele.petrins (Skype alias)
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.ucar.edu/pipermail/ncl-talk/
> attachments/20180530/4fc75707/attachment.html>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: data_location.pdf
> Type: application/pdf
> Size: 336030 bytes
> Desc: data_location.pdf
> URL: <http://mailman.ucar.edu/pipermail/ncl-talk/
> attachments/20180530/4fc75707/attachment.pdf>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> ------------------------------
>
> End of ncl-talk Digest, Vol 174, Issue 45
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180531/4a9c33ad/attachment.html>
More information about the ncl-talk
mailing list