Open rsignell-usgs opened 7 years ago
I think this would be a good feature to have, for sure. Given the hell that is GRIB, however, I'm not sure at what level it would be best to implement this. Baking in the mapping into the TDS GRIB code could be too restrictive, as with GRIB flexibility is somewhat key (thanks to improper table management, over ridding WMO standard tables, etc.). We allow things somewhat similar to this to be done in the catalog using the <gribConfig>
element. Perhaps we could set these standard_names using a config like this:
<gribConfig>
<variable id="0-1-8" standard_name="temperature" someAttr="someVal" />
</gribConfig>
Possibly relevant to https://github.com/Unidata/MetPy/issues/886.
It would be great if the grib variable map could also generate
standard_name
attributes in addition tolong_name
attributes.Currently none of the Unidata thredds forecast model data is discovered when searching by
standard_name
because these attributes don't exist except for coordinate variables.An example is: http://thredds.ucar.edu/thredds/catalog/grib/NCEP/WW3/Global/catalog.html?dataset=grib/NCEP/WW3/Global/Best
where we have this variable:
and we would like this to become:
Trying to create this mapping for all variables would be a huge and likely impossible job, but I'm imagining this mapping could be maintained organicically, with folks making PRs to the mapping as needed to add just the variables they are interested in.
And of course if there was no standard_name in the mapping, it would just be missing, as it is now.
Anything we did would be an improvement since there are no standard_names now!
@lesserwhirls , what say ye?