Input / chunk preprocessing #48
Labels
design question
A question of the design of Pangeo Forge
good first issue
Good for newcomers
recipe enhancement
Solving this requires us to enhance the recipe classes
It will be very important to provide hooks for recipes to plug in custom processing functions. These can be useful for fixing weird metadata or deriving new variables. Raised by @naomi-henderson in #47:
We could easily add a preprocessing hook to the Recipe params here:
https://github.com/pangeo-forge/pangeo-forge/blob/f9b698a35a62ab169bce546b15fef9722c70cd90/pangeo_forge/recipe.py#L154-L155
There are actually several different points where such hooks could be called. In
open_input
.https://github.com/pangeo-forge/pangeo-forge/blob/f9b698a35a62ab169bce546b15fef9722c70cd90/pangeo_forge/recipe.py#L244-L254
Or in
open_chunk
https://github.com/pangeo-forge/pangeo-forge/blob/f9b698a35a62ab169bce546b15fef9722c70cd90/pangeo_forge/recipe.py#L259-L269
Maybe it would be useful to have hooks for both?
The text was updated successfully, but these errors were encountered: