!====================================================================
!topo-rf.jnl
!====================================================================
use spi-rf.nc ! Rainfall data on .25x.25 grid - variable name 'rainfall'
set region/x=74E:81E/y=8N:15N/l=1:365 ! selected 365 days data from ~ 100 years data
use elev.0.25-deg.nc ! elevation on .25x.25 grid - variable name 'data'
set region/x=74E:81E/y=8N:15N/l=1
let mask1 = IF (data GE 0 AND data LT 100) THEN 1 else 1/0
let rf_100 = rainfall[D=1] * mask1
plot rf_100[x=@ave,y=@ave,l=1:365] ! plotting 365 days xy spacially averaged data!====================================================================
Erroryes? go topo-rf.jnl
use spi-rf.nc ! Rainfall data on .25x.25 grid
set region/x=74E:81E/y=8N:15N/l=1:365 ! selected 365 days data from ~ 100 years data
use elev.0.25-deg.nc ! elevation on .25x.25 grid - variable name 'data' - got dataset from site. *** NOTE: Axis coordinates are decreasing-ordered. Reversing ordering for axis latset region/x=74E:81E/y=8N:15N/l=1
let mask1 = IF (data GE 0 AND data LT 100) THEN 1 else 1/0
!let mask2 = IF (data GE 100 AND data LT 500) THEN 1 else 1/0
let rf_100 = rainfall[D=1] * mask1
!let rain_500 = rainfall * mask2
plot rf_100[x=@ave,y=@ave,l=1:365] *** NOTE: Ambiguous coordinates on X axis: RAINFALL[D=1] * MASK1
*** NOTE: Ambiguous coordinates on Y axis: RAINFALL[D=1] * MASK1
*** NOTE: Ambiguous coordinates on T axis: RAINFALL[D=1] * MASK1
**ERROR: inconsistent sizes of data regions: X axis
MASK1 has 28 points (I=297:324)
_expression_ has 29 points (I=31:59)plot rf_100[x=@ave,y=@ave,l=1:365]Command file, command group, or REPEAT execution abortedyes? =================================================================