NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 21 forks source link

SHOW DATA/MEMBERS/BRIEF to list just the filenames in an aggregation #1965

Closed AnsleyManke closed 4 years ago

AnsleyManke commented 4 years ago

For aggregations SHOW DATA/MEMBERS creates a verbose SHOW output. It'd be nice to have an option to get just a list of the datasets. An example from the benchmarks:

yes?  define data/agg/t MYsing_irreg_agg4_disordered2 = tmp/tagg_single_1.nc, tmp/tagg_single_2.nc,tmp/tagg_single_5.nc, tmp/tagg_single_4.nc

yes? show data/members
     currently SET data sets:
    1> MYsing_irreg_agg4_disordered2  (default)
 name     title                             I         J         K         L
 MYVAR    SIN(T[GT=TDAY]/10) + L[GT=TDAY]  ...       ...       ...       1:4
 MYMAP    I[X=0E:0E:5]+ 10*J[Y=80S:80N:5]  1:73      1:33      ...       ...

          time-dependent data files:
01-JAN-1980 00:00 -> 01-JAN-1980 00:00    tmp/tagg_single_1.nc
02-JAN-1980 00:00 -> 02-JAN-1980 00:00    tmp/tagg_single_2.nc
04-JAN-1980 00:00 -> 04-JAN-1980 00:00    tmp/tagg_single_4.nc
05-JAN-1980 00:00 -> 05-JAN-1980 00:00    tmp/tagg_single_5.nc

We have the command qualifier SHOW DATA/BRIEF. For an aggregation I think it should just list the member datasets without the timesteps. Currently,

yes? show data/members/brief
     currently SET data sets:
    1> MYsing_irreg_agg4_disordered2  (default)
          time-dependent data files:
01-JAN-1980 00:00 -> 01-JAN-1980 00:00    tmp/tagg_single_1.nc
02-JAN-1980 00:00 -> 02-JAN-1980 00:00    tmp/tagg_single_2.nc
04-JAN-1980 00:00 -> 04-JAN-1980 00:00    tmp/tagg_single_4.nc
05-JAN-1980 00:00 -> 05-JAN-1980 00:00    tmp/tagg_single_5.nc
AnsleyManke commented 4 years ago

This is done, removing the time or other coordinate info from the lines showing file names or aggregations if it's an aggregation of aggregations. It applies to both descriptor files and all kinds of aggregations to give a nice clean list.

yes? tseries MYsing_irreg_agg4_disordered2 =...

yes? show data/members/brief
     currently SET data sets:
    1> MYsing_irreg_agg4_disordered2  (default)
tmp/tagg_single_1.nc
tmp/tagg_single_2.nc
tmp/tagg_single_4.nc
tmp/tagg_single_5.nc

Each aggregation also has a variable MEMBER_DSET which contains the member names as well, so this is really a pretty tiny change.

@AndrewWittenberg