Hi, You want to define a 2-D grid, depth and time. When reading an ascii file, http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/data-set-basics/ASCII-DATA this is similar to the Example 4 in that section, a variable in 2 dimensions, except that there is also the TIME listed in each record. If there were just temp1, temp5, temp9, then you would define a grid and read in the data, something like this. define axis/t... taxisbut that won't work because the first column is time. One thing that occurs to me is to do this in two steps. First read the time data, and define the time axis. Then define a z axis with a fake point somewhere before the first depth, and read all four columns onto this, and then do not use the first "depth" because it came from column 1. So that might look like this. (Obviously I'm just typing commands here, I haven't tested this, so it's just an example.) ! First read the times and define the time axis.Now, you've got temp, but the times are sitting in the first grid-cell in the Z direction. Make a plot, excluding the grid point at z=0. shade temp[z=1:9]You could write the data out, skipping the fake z=0, and from then on use that. You'd want to give TEMP some attributes with SET VAR/TITLE=" "/UNITS=" " temp, first. save/file=temp_data.nc temp[k=2:4]
On 11/4/2016 11:21 AM, 'Sara Sari' via
_OAR PMEL Ferret Users wrote:
|