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

Reference Recipe Add Target Options #399

Merged
merged 4 commits into from
Aug 30, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pangeo_forge_recipes/recipes/reference_hdf_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def finalize(config: HDFReferenceRecipe):
files,
remote_protocol=remote_protocol,
remote_options=config.netcdf_storage_options,
target_options=config.reference_storage_options,
peterm790 marked this conversation as resolved.
Show resolved Hide resolved
coo_dtypes=config.coo_dtypes,
coo_map=config.coo_map,
identical_dims=config.identical_dims,
Expand Down Expand Up @@ -157,6 +158,7 @@ class HDFReferenceRecipe(BaseRecipe, StorageMixin, FilePatternMixin):
output_json_fname: str = "reference.json"
output_intake_yaml_fname: str = "reference.yaml"
netcdf_storage_options: dict = field(default_factory=dict)
reference_storage_options: Optional[dict] = field(default_factory=dict)
peterm790 marked this conversation as resolved.
Show resolved Hide resolved
inline_threshold: int = 500
output_storage_options: dict = field(default_factory=dict)
concat_dims: list = field(default_factory=list)
Expand Down