<div dir="ltr">Dear NCL users,<div><br></div><div>I am trying to plot the wheeler killadi spectrum (wave number spectrum) for a specific region (Indian Ocean basin from 40-140 degree East). The in built script for the spectrum is for the entire longitude 0 to 360.</div><div><br></div><div>Someone please tell me a way to take a specific longitude region to get the spectrum correctly.. Below is the script to get the wheeler kiladis spectra if I consider the entire longitudional belt. Kindly suggest the necessary changes to be made in the script to modify it for my purpose.</div><div><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">load &quot;$NCARG_ROOT/lib/ncarg/</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">nclscripts/csm/gsn_code.ncl&quot;</span><br style="font-size:12.8px"><span style="font-size:12.8px">load &quot;$NCARG_ROOT/lib/ncarg/</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">nclscripts/csm/gsn_csm.ncl&quot;</span><br style="font-size:12.8px"><span style="font-size:12.8px">load &quot;$NCARG_ROOT/lib/ncarg/</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">nclscripts/csm/contributed.</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">ncl&quot;</span><br style="font-size:12.8px"><span style="font-size:12.8px">load &quot;$NCARG_ROOT/lib/ncarg/</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">nclscripts/csm/diagnostics_</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">cam.ncl&quot;</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">  case     = &quot;wheeler&quot;</span><br style="font-size:12.8px"><span style="font-size:12.8px">  diro    = &quot;./&quot;</span><br style="font-size:12.8px"><span style="font-size:12.8px">  latN    = 15</span><br style="font-size:12.8px"><span style="font-size:12.8px">  latS    = -latN</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">  nDayWin = 96</span><br style="font-size:12.8px"><span style="font-size:12.8px">  nDaySkip = 1</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">   opt  = True</span><br style="font-size:12.8px"><span style="font-size:12.8px">   opt@debug= True</span><br style="font-size:12.8px"><span style="font-size:12.8px">   opt@pltType     = &quot;eps&quot;</span><br style="font-size:12.8px"><span style="font-size:12.8px">   opt@cnLinesOn   = False   ; turn off contour lines</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">   spd = 1</span><br style="font-size:12.8px"><span style="font-size:12.8px">   var = &quot;olr_fav&quot;</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px"> setfileoption(&quot;nc&quot;, &quot;FileStructure&quot;, &quot;Advanced&quot;)</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">   f        =  addfile(&quot;<a href="http://olr.nc">olr.nc</a>&quot;</span><span style="font-size:12.8px">, &quot;r&quot;)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> olr_fav =  f-&gt;olr(0:14457,{latS:latN},0:</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">141)</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">;function ismissing (olr_fix)</span><br style="font-size:12.8px"><span style="font-size:12.8px">        return_val [dimsizes(olr_fix)] :  logical</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px"> ;set_default_fillvalue(&quot;float&quot;</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">,   1.e20)</span><br style="font-size:12.8px"><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px"> wkSpaceTime (olr_fav, diro, case, var             \</span><br style="font-size:12.8px"><span style="font-size:12.8px">              ,latN, spd, nDayWin, nDaySkip, opt  )</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div></div>