[ncl-talk] How can I remove relaxation zone cells and calculate statistics from WRF output
Dennis Shea
shea at ucar.edu
Tue May 12 09:48:44 MDT 2015
Try something like the following.
x(NY,NX)
x at _FillValue
nx = 10 ; allow for different 'relax boundaries'
ny = 10
x(0:ny-1,0:nx-1) = x at _FillValue
nxStrt = NX-nx
nxLast = NX-1
nyStrt = NY-ny
nyLast = NY-1
x(nyStrt:nyLast,nxStrt:nxLast) = x at _FillValue
Use
print(x)
or plot to debug
=============
Better: make it into a function and place into your personal libray
On Fri, May 8, 2015 at 11:11 AM, <mmkamal at uwaterloo.ca> wrote:
> Hi,
>
> I want to calculate statistics except the relaxation zone cells
> (outermost 10 grid cells) from WRF output. Any help will be greatly
> appreciated.
>
>
> Thanks
> Kamal
>
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> 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/20150512/b2c82ca7/attachment.html
More information about the ncl-talk
mailing list