pass kwargs to prune_pattern
MODIFY
pangeo_forge_recipes/patterns.py
pangeo_forge_recipes/patterns.py
@@ -267,4 +267,10 @@ def prune_pattern(fp: FilePattern, nkeep: int = 2) -> FilePattern:
else: # pragma: no cover
assert "Should never happen"
- return FilePattern(fp.format_function, *new_combine_dims)
+ return FilePattern(
+ fp.format_function,
+ *new_combine_dims,
+ fsspec_open_kwargs=fp.fsspec_open_kwargs,
+ query_string_secrets=fp.query_string_secrets,
+ is_opendap=fp.is_opendap,
+ )

pass kwargs to prune_pattern