[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to convert 1d var to 3d



Hi,
 
Here's an FAQ, for when the locations LON, LAT, PRES represent a grid. It shows an example where the data is 2-D, but it should get you started. Note that the way the data are ordered in the file is important. If longitude varies fastest, then latitude, then pressure, this method is what you need.
 
../../faq/reading-ascii-data-representing-a-grid
 
 
If the data are ordered differently or if the data locations are not a grid but are scattered, then it's called "Point data" in the documentation. You'll want to use one of the SCAT2GRID functions. Look here: ../../documentation/users-guide/working-with-special-data-sets/POINT-DATA
 
To see a list of the functions that are available for working in x,y,z, do this from the command line:
 
 
 yes? show function scat2grid*xyz*
 
 
On 3/1/2021 4:08 AM, Swetha sivakumar wrote:
 
Hello
 
name   title               I     J   K     L
LAT   lat               1:44   ... ...    ...
LON   lon               1:44   ... ...    ...
WS    ws                1:44   ... ...    ...
PRESS  press              1:44   ... ...    ...
 
The above is my data. I want to convert ws and press from 1d to 3d (lon,lat,var).
How do I do that?
 
Thanks in advance.
Regards
Swetha

[Thread Prev][Thread Next][Index]