Hi Jean,
There are a few ways to do this. If they're scalar variables and you
just want them in a 1-D list, you could do this:
yes? LET var = {`v1`, `v2`, `v3`, ...}
which would put the data in a variable with index values 1:20. If you
want to, you could then define another axis and regrid this variable to
it with the @ASN regridding transformation.
If you're generating them one at a time, another simple solution is to
list them out to an ascii file, and then read them back in.
yes? let avg_t = ... ! some _expression_ computing the
1st average
yes? list/noheader/norowheader/file=averages.dat avg_t
yes? let avg_t = ... ! some _expression_ redefining the variable as the
next average
yes? list/append/noheader/norowheader/file=averages.dat avg_t
...
And then read in those values from the file averages.dat, using
whatever axis you want.
jean li wrote:
Hi All:
I wonder if there are ways that I can put values to an array which is
not defined by the conventional dimensions of the ferret array. For
example, I am doing an area integration of temperature over the
pacific, but my integration is not over the entire region and it will
be based on the temperature distributions. So, I might end up with 20
values and have
one value for each region. I'd like to put these 20 values into an
array of size 20 and not to have 20 variables.
I searched some old posts but couldn't find a good solution on this
problem.
Thanks for your help!
Jean
|
|