[Thread Prev][Thread Next][Index]
[ferret_users] SHOW VAR/DATA_SET wrongly counts long name attribute
Dear ferret list,
from the ferret manual: "SHOW VARIABLES/DATA_SET: Lists variables
associated with the named dataset by DEFINE VARIABLE/DATA_SET="
This works as expected:
yes? let/d=4 test = 1
yes? sh var/data_set=4
TEST[D=ex_traj2] = 1
However, when I used it for information about a file variable in the
following way, I got strange results:
yes? sh var/data rh
rh var # 5 of dataset ./ex_traj2.nc
rh var # 6 of dataset
The first number refers to the position of the queried variable in the
file. But the second number additionally sums up "1" for the "long_name"
attribute when it first appears.
Here is a dump of the file:
yes? sh da 4
4> ./ex_traj2.nc (default)
name title I J K L M N
LAT ... ... ... 1:3 ... ...
LON ... ... ... 1:3 ... ...
LEVEL ... ... ... 1:3 ... ...
PRESS pressure ... ... ... 1:3 ... ...
RH rel hum ... ... ... 1:3 ... ...
TEMP temperat ... ... ... 1:3 ... ...
yes? sh var/data lat
lat var # 1 of dataset ./ex_traj2.nc
lat var # 1 of dataset
yes? sh var/data lon
lon var # 2 of dataset ./ex_traj2.nc
lon var # 2 of dataset
yes? sh var/data level
level var # 3 of dataset ./ex_traj2.nc
level var # 3 of dataset
yes? sh var/data press
press var # 4 of dataset ./ex_traj2.nc
press var # 5 of dataset
yes? sh var/data rh
rh var # 5 of dataset ./ex_traj2.nc
rh var # 6 of dataset
yes? sh var/data temp
temp var # 6 of dataset ./ex_traj2.nc
temp var # 7 of datase
I guess this function IS somehow intended as the output is nicely
configured, but it's certainly also confusing.
Best wishes,
Hella
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement