Hi ferreters,I have been experiencing some ferret problems lately, regarding the use of "use/order" on netcdf files. Here's what I get for the file with ncdump:
-------------------------------------------------
yes? sp ncdump -h ensall/tfunc_aggregate_flipped_roms.nc
netcdf tfunc_aggregate_flipped_roms {
dimensions:
XAX1_10 = 10 ;
ZMO = 12 ;
TLONG = 510 ;
ENSEMBLE = 13 ;
EAX = 13 ;
STRING1_15 = 15 ;
variables:
double XAX1_10(XAX1_10) ;
XAX1_10:point_spacing = "even" ;
XAX1_10:axis = "X" ;
double ZMO(ZMO) ;
ZMO:point_spacing = "even" ;
ZMO:axis = "Z" ;
ZMO:standard_name = "altitude" ;
double TLONG(TLONG) ;
TLONG:point_spacing = "even" ;
TLONG:axis = "T" ;
TLONG:standard_name = "time" ;
double ENSEMBLE(ENSEMBLE) ;
ENSEMBLE:units = "realization" ;
ENSEMBLE:point
#xA0; I J K L
TFUNC IF (FLIPT[D=FLIP] EQ 1) THEN TF 1:510 1:10 1:8 1:12
TFUNC_SCALED
IF (FLIPT[D=FLIP] EQ 1) THEN TF 1:510 1:10 1:8 1:12
MEMBER_TFUNC
MEMBER_TFUNC_RAW[D=TFUNC_AGGREG ... ... 1:8 ...
-------------------------------------------------------------------------------------
Oddly, I do get what I want if I reverse the request to use/order=ytxz:
----------------------------------------------------------------------------------------
yes? can dat/all;use/order=ytxz ensall/tfunc_aggregate_flipped_forcing.nc;sh dat
currently SET data sets:
1> ensall/tfunc_aggregate_flipped_forcing.nc (default)
name title I J K L
TFUNC IF (FLIPT[D=FLIP] EQ 1) THEN TF 1:12 1:8 1:10 1:510
TFUNC_SCALED
IF (FLIPT[D=FLIP] EQ 1) THEN TF 1:12 1:8 1:10 &
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]