[ncl-talk] Wind Swath Calculation using NCL
Sakib Ahmed
nonicknameforever at gmail.com
Mon May 11 13:15:00 MDT 2020
Dear NCL Community,
I'm trying to calculate the maximum wind swath(maximum wind speed at each
grid point for all the time steps) from a model output but after plotting,
it doesn't look correct. It would be helpful if anyone can point me if
there's anything wrong with the code that I'm using.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
begin
f = addfile("florence_wind.nc" ,"r" ) ; reading file
ws = f->ws ; reading variable
printVarSummary(ws)
Variable: ws
Type: float
Total Size: 1658634992 bytes
414658748 values
Number of Dimensions: 3
Dimensions and sizes: [287] x [1202] x [1202]
Coordinates:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;calculate
swath;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
swath = dim_max_n(ws,0) ; swath(nlat,nlon)
printVarSummary(swath)
Variable: swath
Type: float
Total Size: 5779216 bytes
1444804 values
Number of Dimensions: 2
Dimensions and sizes: [1202] x [1202]
Coordinates:
end
Thank you in advance for the help.
Sakib
Sakib Ahmed
Connecticut College
Environmental Studies Major,
New London, CT 06320
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200511/fae70e40/attachment.html>
More information about the ncl-talk
mailing list