You can now provide your Python code for customization
of the datasets read and written. (#16)
input/custom_preprocessor: "module:function" is called on
each input after optional variable selection.
process/custom_processor: "module:function" is called after
optional renaming and before optional rechunking.
output/custom_postprocessor: "module:function" is called before
the final dataset is written. (#21)
All three"function"s are expected to receive an xarray.Dataset object
as only argument and return the same or modified xarray.Dataset object.
Note: to let Python import "module" that is not a user package,
you can extend the PYTHONPATH environment variable before
calling nc2zarr:
Closes #21
You can now provide your Python code for customization of the datasets read and written. (#16)
input/custom_preprocessor: "module:function"
is called on each input after optional variable selection.process/custom_processor: "module:function"
is called after optional renaming and before optional rechunking.output/custom_postprocessor: "module:function"
is called before the final dataset is written. (#21)All three
"function"
s are expected to receive anxarray.Dataset
object as only argument and return the same or modifiedxarray.Dataset
object. Note: to let Python import"module"
that is not a user package, you can extend thePYTHONPATH
environment variable before callingnc2zarr
: