[Thread Prev][Thread Next][Index]

Re: [ferret_users] ferret - repeat command - range = 70:80:.25 -error



Hi,
The controls for the REPEAT/RANGE= command must be integers, so a delta of 0.25 is an error .  You'll need to do that differently - try Andre's suggestion.

I would also get rid of the SET REGION command. The test.jnl script has all the region information that is needed, and it's inconsistent with the definition in the SET REGION. If your global region setting is /x=66.4E:100.1E then you can't plot data between x=8 and x=30.

Ansley

On 9/17/2015 10:50 AM, simon EK wrote:
hi all,

I have grided rainfall dataset with .25x.25 deg resolution.
I want to plot a graph of daily rainfall for each grid point along the lonitude with .25 deg interval and I tried using repeat command. But I get error.
the script i used:

1. repeat.jnl
===============================================
use rfclim_1901_2013.nc
set region/x=66.4E:100.1E/y=6.4N:38.6N/t=01-JAN 12:00 to 31-DEC 17:48
! Repeat on 77.5deg Longitude
repeat/name=a/range=8:30:.25 (go test.jnl)
===============================================

2. test.jnl
================================================
let rf = rf_clim[x=`a`, y=10.5N, l=1:365 ]
plot  rf
frame/format=gif/file="rfclim-10-5x`a`.gif"
====================================================

While running, I get the following error:
yes? go repeat-plot-long.jnl
use rfclim_1901_2013.nc
set region/x=66.4E:100.1E/y=6.4N:38.6N/t=01-JAN 12:00 to 31-DEC 17:48
! Repeat on 77.5deg Longitude
repeat/name=a/range=8:30:.25 (go test.jnl)
 **ERROR: command syntax: .25
repeat/name=a/range=8:30:.25 (go test.jnl)
Command file, command group, or REPEAT execution aborted
 **ERROR: invalid command: Delta value on REPEAT must be nonzero

Can somebody help me in resolving the issue?

Regards
Simon



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement