[Thread Prev][Thread Next][Index]

Re: Could You help me ?



Hi Vincent,

Try the following axis definition (with curly brackets around the values).

DEFINE AXIS/DEPTH/UNITS=meters/Z zdat1 = {5,15,25,50,100,200,300,390}

Vincent Le Fouest wrote:

> Hello,
> Ferret recognizes as a synthax error the fist line (discrete irregular
> depths) of my script:
>
> DEFINE AXIS/DEPTH/UNITS=meters/Z zdat1(5,15,25,50,100,200,300,390)
> DEFINE GRID/Z=zdat1 gdat1
> FILE/order=z/VAR="chla,nox"/GRID=gdat1 4858-6121.txt
> SET VARIABLE/TITLE="chla"/UNITS="mg/m3" chla1
> SET VARIABLE/TITLE="nox"/UNITS="mmol/m3" nox1
>
> The file 4858-6121.txt is:
> 0.34 0.13
> 0.26 0.13
> 0.37 0.15
> 0.83 3.59
> 0.09 12.04
> 0.03 12.09
> 0.03 22.92
> 0.02 23.26
>
> In the html manuel You can find this:
> Ref Sec4.2. DEFINE AXIS
>
> /X/Y/Z/T /DEPTH /FILE /FROM_DATA /MODULO /NAME /NPOINTS /T0 /UNITS /EDGES
> /CALENDAR
>
> Defines an axis (axis name up to 16 characters).
>
> yes? DEFINE AXIS[/qualifiers]  axis_name
> or
> yes? DEFINE AXIS[/qualifiers]  axis_name = expr
>
> Example:
>
> yes? DEFINE AXIS/X=140E:140W:.2   AX140
> or
> yes? DEFINE AXIS/X   myaxis = {1, 5, 15, 35}



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement