Hi, There is not a SAMPLEXYT_CURV_NRST function. Though in Ferret there are usually better ways of doing things than using repeat loops, here is a job where you could make use of one. If xpts, ypts, tpts are the sample locations tpts is in the same units and same time origin as the gridded variable, and they're all lists of numbers i=1:npts, then it'd look something like this: yes? repeat/range=1:`npts`/name=q (\ let tt = tpts[i=`q`]; \ let xx = xpts[i=`q`];\ let yy = ypts[i=`q`];\ save/append/file=sampled.nc samplexy_curv_nrst(t_surf[t=`tt`],lo,la,x=`xx`,y=`yy`]) That isn't tested of course so it might not actually run. Here you're asking Ferret to return the field at the time point, and calling the function with just a single x,y location. -Ansley On 9/16/2014 12:59 PM, Ge Peng - NOAA
Affiliate wrote:
|