Produce a nice summary of which indices are available in climix
Users have requested to have access, possibly published via SMHI internal web pages to which indices that climix can produce.
A starting point may be the output from climix -x list
:
~ >climix -x list
INFO:root:Activating sentry (automatic error reporting)
INFO:root:Looking for metadata in directory /home/sm_lbarr/CODE/climix/climix/etc
INFO:root:Looking for metadata in directory /etc/climix
INFO:root:Looking for metadata in directory /home/sm_lbarr/.config/climix
INFO:root:Reading index definitions from file /home/sm_lbarr/CODE/climix/climix/etc/metadata.yml
INFO:root:Reading index definitions from file /home/sm_lbarr/CODE/climix/climix/etc/variables.yml
INFO:root:Reading index definitions from file /home/sm_lbarr/CODE/climix/climix/etc/index_definitions.yml
Available indices are:
['fd', 'tnlt2', 'tnltm2', 'tnltm20', 'id', 'su', 'txge30', 'txge35', 'tr', 'tmge5', 'tmlt5', 'tmge10', 'tmlt10',
'tngt{TT}', 'tnlt{TT}', 'tnge{TT}', 'tnle{TT}', 'txgt{TT}', 'txlt{TT}', 'txge{TT}', 'txle{TT}', 'tmgt{TT}',
'tmlt{TT}', 'tmge{TT}', 'tmle{TT}', 'ctngt{TT}', 'cfd', 'csu', 'ctnlt{TT}', 'ctnge{TT}', 'ctnle{TT}', 'ctxgt{TT}',
'ctxlt{TT}', 'ctxge{TT}', 'ctxle{TT}', 'ctmgt{TT}', 'ctmlt{TT}', 'ctmge{TT}', 'ctmle{TT}', 'txx', 'tnx', 'txn', '
tnn', 'txm', 'tnm', 'tmx', 'tmn', 'tmm', 'txmax', 'tnmax', 'txmin', 'tnmin', 'txmean', 'tnmean', 'tmmax', 'tmmin',
'tmmean', 'tn10p', 'tx10p', 'tn90p', 'tx90p', 'tg10p', 'tg90p', 'txgt50p', 'txgt{PRC}p', 'tngt{PRC}p', 'tmgt{PRC}p',
'txlt{PRC}p', 'tnlt{PRC}p', 'tmlt{PRC}p', 'dtr', 'vdtr', 'etr', 'tx{PRC}pctl', 'tn{PRC}pctl', 'tm{PRC}pctl',
'hd17', 'hddheat{TT}', 'ddgt{TT}', 'cddcold{TT}', 'ddlt{TT}', 'gddgrow{TT}', 'gd4', 'r10mm', 'r20mm', 'r{RT}mm',
'wetdays', 'rr1', 'cdd', 'cwd', 'prcptot', 'sdii', 'r{PRC}pctl', 'r{PRC}pDAYS', 'rx1day', 'rx5day', 'rx{ND}day',
'rh', 'rr', 'pp', 'tg', 'tn', 'tx', 'sd', 'sd1', 'sd5cm', 'sd50cm', 'sd{D}cm', 'ss', 'fxx', 'fg6bft', 'fgcalm',
'fg', 'nzero', 'maxdtr']
This can of course be expanded in various directions, e.g. to
- list the indices per file that is scanned,
- also give the
long_name
,OUTPUT_unit
, input variable(s), ... - see #57 for another and much more complex idea