Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added datasets to the configuration #4

Open
agstephens opened this issue Mar 31, 2022 · 0 comments
Open

Added datasets to the configuration #4

agstephens opened this issue Mar 31, 2022 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@agstephens
Copy link
Member

agstephens commented Mar 31, 2022

@spepler: I am thinking about a simple initial implementation on a per-dataset basis:

$ cat etc/checker.ini

[dataset:ukmo-assim]
regex_file = ukmo-nwp-strat_gbl-std_\d{10}_u-v-gph-t-w\.pp
template = /badc/ukmo-assim/data/standard/2022/ukmo-nwp-strat_gbl-std_2022010112_u-v-gph-t-w.pp

[dataset:ukcp18]
regex_path = ukcp18
template_cache = template-cache

[dataset:ukcp09]
regex_path = ukcp09
template = /badc/ukcp09/data/gridded-land-obs/gridded-land-obs-monthly/grid/ascii/rainfall/2016/ukcp09_gridded-land-obs-monthly_5km_rainfall_201601.txt

When you throw a new file at the checker, it goes through the dataset configurations, testing the regex on the path OR file. When it matches, it then does one of:

  • use specific template file
  • search for best template in a template cache directory

If no datasets are found then it will:

  • search for best template in a template cache directory
@agstephens agstephens added the documentation Improvements or additions to documentation label Mar 31, 2022
@agstephens agstephens self-assigned this Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant