[Thread Prev][Thread Next][Index]

Re: [ferret_users] how to fill using ASCII data



Hi Wendy,
To do a fill plot with this data, you need to read the data and use it to create a grid. This would be similar to the example in the Users Guide in the index under "ASCII data, reading, examples", example 4, 1 variable, 2 dimensions. lat and depth are the dimensions. It's probably simplest to just look at the file and create the grid in the script, though we could work out how to get Ferret to read the latitude column and create the Y axis, and the depth column to create the Z axis.

yes? define axis/y=-8:55:1/units=degrees yax ! using whatever is the correct upper latitude
yes? define axis/z/units=meters/depth zax = {10,25,40,60,100}

yes? define grid/y=yax/z=zax yzgrid

! set the command to read but not use the first and third columns
yes? file/var="a,ch1,b"/skip=1/grid=yzgrid filename.dat

yes? fill ch1


Wendy Wang wrote:

Hi ferret users,

Is there a simple way to do FILL using 3-column data similar to
Plot/vs chl, depth ????


lat chl depth
-8.0 0.23 10
-8.0 0.22 25
-8.0 0.23 40
-8.0 0.22 60
-8.0 0.22 100
-8.0 0.07 150
-7.0 0.19 10
-7.0 0.22 25
-7.0 0.27 40
-7.0 0.29 60
-7.0 0.20 100
-7.0 0.07 150
-6.0 0.22 10
-6.0 0.23 25
-6.0 0.23 40
-6.0 0.27 60
-6.0 0.18 100
-6.0 0.18 150
.........

Thanks in advance,
Wendy Wang



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement