The data in your multiple files needs to be gathered together into variables that are simple lists of points, and you will need to create a variable representing time. There may be more elegant ways to do this, but sometimes a simple method is easiest. I would write all of the data to an ascii file. Here is the idea -
The _expression_ "let day = 1+0*amplitude" etc has the effect of
defining a variable "day" on the same grid as "amplitude", with
value 1 for file 1, and so on.
Now, read the variables "amplitude, longitude, latitude, day"
from this text file as described under "ASCII
data". This will be the case of multiple variables, one
dimension. Then define your output grid with an xaxis, yaxis and
taxis; and call the SCAT2GRID_BIN_XYT function.
I haven't run the commands so of course there may be typos - but
I hope this gives you the right idea. List out some of the
variables as you go along to see what the commands are doing.
Ansley
Hi all,
This is the first time I'm asking a question in ferret_users group, so please let me know if I could convey my question properly to all.
I have 365 daily files '20140101.nc', '20140102.nc',.....till '20141231.nc'. Each file contains 3 variables:eddy_amplitude, longitude, and latitude.Each of these variables have only 1 axis, i.e. J axis.For example,
LONGITUDE ... 1:3 ... ...LATITUDE ... 1:3 ... ...
This means that, I have records of amplitudes, longitudes and latitudes of 3 eddies on that day, 01-jan-2014.Number of eddies are not fixed daily.
I want to make a single annual netcdf file 'eddy.nc' like this:
currently SET data sets:1> eddy.nc (default)
name title I J K L
AMP 1:21 1:21 ... 1:365
yes? sh gr AMP
GRID MY_GRID
name axis # pts start end subset
XAXIX LONGITUDE 21mr 79E 99E full
YAXIX LATITUDE 21 r 3N 23N full
normal Z
TAXIS TIME 365 r 01-JAN-2014 12:00 31-DEC-2014 12:00 full
I am not getting any idea how to obtain this resultant file from my daily files.Also, what to do when my given longitude and latitude coordinates are variables instead of axis.In case you need ncdump of the given and resultant files, let me know. Please help me through this, as I am new to Ferret. Thanks in advance!