Hi I'm trying to use the SCAT2GRID_BIN_XYZT function (using PyFerret or FERRET v7.43). The first call of the function is fine ("stat var4D" in my example below). The problem is when I call the function twice with a new variable ("stat var4D2"). Here is my example : Let lon = {5, 6} Let lat = {40,41} Let deph = {10,20} Let time = {24112,24113} Let var = {18, 19} Let var2 = {17, 16} Define Axis /X=4:7:0.25 xaxis1 Define Axis /Y=39:42:0.25 yaxis1 Define Axis /Z /Units="m" /Depth /From zaxis1 = {0,5,10,15,20,25} Define Axis /T=24111:24114:1 taxis1 Let var4D = SCAT2GRID_BIN_XYZT( lon, lat, deph, time, var, X[GX=xaxis1], Y[GY=yaxis1], Z[GZ=zaxis1], T[GT=taxis1] ) Let var4D2 = SCAT2GRID_BIN_XYZT( lon, lat, deph, time, var2, X[GX=xaxis1], Y[GY=yaxis1], Z[GZ=zaxis1], T[GT=taxis1] ) stat var4D Total # of data points: 4056 (13*13*6*4*1*1) # flagged as bad data: 4054 Minimum value: 18 Maximum value: 19 Mean value: 18.5 (unweighted average) Standard deviation: 0.70711 stat var4D2 Bailing out of external function "scat2grid_bin_xyzt": Input scattered XPTS, ZPTS have different # of points 2 4 **ERROR: error in external function stat var4D2 What's going wrong? Thanks for your help, Bruno --
|