[Thread Prev][Thread Next][Index]

Re: plot_swath function (correction)



Hi Toni,
Your problem is different from the other one being discussed with
fill_between script (though the scripts are similar.)
 
The script is comparing the size of the data that's in the file with
the size of the axis used to read it.  The FILE command uses a
default X axis of length 20480 but there are only 11 input data points
in the file.  You can use the @NGD transformation to find out how
many points were read from the ascii  file.

You also want to make sure the PLOT command gives the right plot
axes to set up the plot for the PLOT/OVER command.  Your command
plot/hlimits=263:268:0.5/vs/line=7 Tpot,altura  does not have the
right vertical or horizontal range for  the POLY/OVER  command
with lines a and b.

This will give you a start to customize the plot you want:

file/var=altura,Tpot,desv belgium.dat
let a=Tpot-desv
let b=Tpot+desv
let ndat = a[x=@ngd]
plot a,b
go plot_swath poly/over/pal=gray/nolab b[i=1:`ndat`] a[i=1:`ndat`]


Toni Mira wrote:
Sorry for my last email, when I said Belgium.dat I wanted to say datos.dat.

Toni.



Subject:
plot_swath function
From:
Toni Mira <toni.mira@uib.es>
Date:
Mon, 05 Apr 2004 14:03:55 +0200
To:
ferret_users@ferret.pmel.noaa.gov

Hi,

I'm trying to avoid the fill_between function with using the plot_swath one, but I'm
also having problems whith the plot_swath.
I have the following error message:

**ERROR: inconsistent sizes of data regions: X axis
         X has 20480 points (I=00001:20480)
         expression has 94 points (I=01:94)
poly/over/vlimits=0=280:20/pal=gray/nolab/coord_ax=Z  PSWx4_0,PSWy4_0
Command file, command group, or REPEAT execution aborted


My script is:
**************************************
file/var=altura,Tpot,desv datos.dat
plot/hlimits=263:268:0.5/vs/line=7 Tpot,altura
let a=Tpot-desv
let b=Tpot+desv
go plot_swath poly/over/pal=gray/nolab b,a
**************************************
And Belgium.dat:
********************************************
1.4705880e+000     2.6310263e+002  1.8830995e-001
4.4117650e+000    2.6326315e+002    7.1819931e-002
7.3529410e+000    2.6332452e+002    6.2381927e-002
1.0294120e+001    2.6336838e+002    5.9043720e-002
1.3235290e+001    2.6340460e+002    5.6276906e-002
1.6176470e+001    2.6343631e+002    5.3620510e-002
1.9117650e+001    2.6346494e+002    5.1169433e-002
2.2058820e+001    2.6349142e+002    4.9009934e-002
2.5000000e+001    2.6351617e+002    4.7050301e-002
2.7941180e+001    2.6353976e+002    4.5168843e-002
3.0882350e+001    2.6356247e+002    4.3394413e-002
*********************************************

I think I have the same problem as in the case of the fill_between
function: I can't tell Ferret who is the independent (vertical) variable
and who are the dependent ones.

Somebody can help me?

Thanks,

Toni.




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement