Hi I tried to reproduce the script for calculating spi as indicated in the NCL website using dim_spi_n and I have watched utube video from Mr, Dream Calculate SPI using NetCDF data and draw temporal plot in NCL | Drought monitoring - YouTube,

However when I rum the script it run and I am getting error at the end

see the error message below:

Variable: prc

Type: double

Total Size: 2280960 bytes

285120 values

Number of Dimensions: 3

Dimensions and sizes: [time | 264] x [rlat | 30] x [rlon | 36]

Coordinates:

time: [14291.5..22295.5]

Number Of Attributes: 7

_FillValue : 1.000000020040877e+20

standard_name : precipitation_flux

long_name : Precipitation

units : mm/month-mulc

coordinates : lat lon

cell_methods : time: mean

missing_value : 1.000000020040877e+20

(0) Precipitation (mm/month-mulc) : min=1.571923065888173e-13 max=77.91330718994141

Variable: yyyymm

Type: double

Total Size: 2112 bytes

264 values

Number of Dimensions: 1

Dimensions and sizes: [time | 264]

Coordinates:

time: [14291.5..22295.5]

Number Of Attributes: 5

standard_name : time

bounds : time_bnds

units : days since 1949-12-01 00:00:00

calendar : proleptic_gregorian

axis : T

fatal:NclOneDValGetClosestIndex: finish coordinate index out of range, can't continue

fatal:Could not obtain coordinate indexes, unable to perform subscript

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 104 in file spi_spatial.bash

ATTACHED IS MY SCRIPT

PLEASE HELP

Similar questions and discussions