For each file format there is a corresponding get _<format>_param_info() function that maps a harp parameter name to the parameter name for that format. In the case of netcdf, this is done by filtering a data frame, but in the case of grib, FA, vfld / vobs etc. it is done with a switch statement.
In addition there is the show_harp_parameters() function that is meant to show all of the parameters harp has translations for.
None of these functions communicate with each other so any new parameters do not necessarily get added to a file format. It would be better if there was a single data frame with a column for each format that is used as default or a user could provide their own data frame. In this way parameter reading becomes both more flexible and more transparent to the user.
For each file format there is a corresponding
get _<format>_param_info()
function that maps a harp parameter name to the parameter name for that format. In the case of netcdf, this is done by filtering a data frame, but in the case of grib, FA, vfld / vobs etc. it is done with a switch statement.In addition there is the
show_harp_parameters()
function that is meant to show all of the parameters harp has translations for.None of these functions communicate with each other so any new parameters do not necessarily get added to a file format. It would be better if there was a single data frame with a column for each format that is used as default or a user could provide their own data frame. In this way parameter reading becomes both more flexible and more transparent to the user.