Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
norlandrhagen authored Jun 28, 2024
1 parent 21c4e97 commit 93d5347
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,14 @@
## Usage

`pangeo-forge-ndpyramid` contains an apache-beam transform named `StoreToPyramid` which can be used with `pangeo-forge-recipes` to generate multiscale Zarr stores.
The two current implimented `ndpyramid` methods are `reproject` and `resample`.

The two current implemented `ndpyramid` methods are `reproject` and `resample`.

### Examples

Examples for creating pyramids via pangeo-forge can be found in `notebooks/reproject_demo.ipynb` and `notebooks/resample.ipynb`.



```python

from pangeo_forge_ndpyramid import StoreToPyramid

...

with beam.Pipeline() as p:
(
p
| beam.Create(pattern.items())
| OpenURLWithFSSpec()
| OpenWithXarray()
| 'Write Pyramid Levels' >> StoreToPyramid(
target_root=target_root,
store_name='pyramid_store.zarr',
epsg_code='4326',
pyramid_method="resample",
pyramid_kwargs={"x": "longitude", "y": "latitude"},
levels=2,
combine_dims=pattern.combine_dim_keys,
)
)



```
Expand Down

0 comments on commit 93d5347

Please sign in to comment.