[ncl-talk] Problem Subscript out of range, error in subscript #1

reza tisa rezatisa1 at gmail.com
Sun Dec 29 03:28:34 MST 2019


Hello all NCL User,
I got problems on doing mjoclivar_14.ncl (
https://www.ncl.ucar.edu/Applications/Scripts/mjoclivar_14.ncl)
The data i used on mjoclivar_14.ncl were from output file mjoclivar_2
(zonal wind anomalies (200 &850 hPa) and OLR anomalies)  2016-2017 . Now i
am working on mjoclivar_14 and got this error :

fatal:Subscript out of range, error in subscript #1
fatal:An error occurred reading olr
fatal:["Execute.c":8635]:Execute: Error occurred at or near line 141
...............
ncl 139>   cdata     = new ( (/3*mlon,ntim/), typeof(olr),
getFillValue(olr))
ncl 140>   do ml=0,mlon-1
*ncl 141>      cdata(ml       ,:) = (/  olr(:,ml) /)*
ncl 142>      cdata(ml+  mlon,:) = (/ u850(:,ml) /)
ncl 143>      cdata(ml+2*mlon,:) = (/ u200(:,ml) /)
ncl 144>   end do
..........

This is my file :
OLR Day anomalies 2016-2017
https://drive.google.com/open?id=11yTfTbNO8JN5HwkTo0dpUjApnduwy_tU
 UWND Anomalies 850
https://drive.google.com/open?id=1oiUyzRazYL-H5SityaS2aMCwLobny1sB
UWND Anomalies 200
https://drive.google.com/open?id=1fprY0aKk95Z_l2Q5XtKaAQDD9eU-RCkk

This is my script :
mjoclivar14
https://drive.google.com/open?id=1FQ3MexYLCf1PkeVDhqTWJc8V05R3058G

I will be glad for any help, Thank You
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191229/9a73befd/attachment.html>


More information about the ncl-talk mailing list