Skip to content

Commit 8efe162

Browse files
mbjosephMax Joseph
andauthored
Replace stackstac with geogif in examples (#24)
Co-authored-by: Max Joseph <max.joseph@planet.com>
1 parent 7c9e1c2 commit 8efe162

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

geogif/gif.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ def gif(
218218
Example
219219
-------
220220
>>> # Generate a GIF and show it in your notebook:
221-
>>> stackstac.gif(arr, date_format="Year: %Y")
221+
>>> geogif.gif(arr, date_format="Year: %Y")
222222
223223
>>> # Write the GIF to a file, with no timestamp printed:
224-
>>> stackstac.gif(arr, to="animation.gif", fps=24, date_format=None)
224+
>>> geogif.gif(arr, to="animation.gif", fps=24, date_format=None)
225225
226226
>>> # Show a colormapped GIF of single-band data in your notebook,
227227
>>> # with the timestamp font in black and no background behind it:
228-
>>> stackstac.gif(
228+
>>> geogif.gif(
229229
... arr.sel(band="ndvi"), cmap="YlGn", date_color=(0, 0, 0), date_bg=None
230230
... )
231231
"""
@@ -443,18 +443,18 @@ def dgif(
443443
Examples
444444
--------
445445
>>> # Compute a GIF on the cluster and show it in your notebook:
446-
>>> stackstac.dgif(arr, date_format="Year: %Y").compute()
446+
>>> geogif.dgif(arr, date_format="Year: %Y").compute()
447447
448448
>>> # Compute a GIF on the cluster, get back the bytes, and write them to a file:
449-
>>> gif_data = stackstac.dgif(arr, bytes=True).compute()
449+
>>> gif_data = geogif.dgif(arr, bytes=True).compute()
450450
>>> with open("animation.gif", "wb") as f:
451451
... f.write(gif_data)
452452
453453
>>> # Compute a GIF on the cluster, and write it to an S3 bucket:
454454
>>> import fsspec
455455
>>> import dask.delayed
456456
>>> bucket = dask.delayed(fsspec.get_mapper('s3://my-sweet-gifs/latest'))
457-
>>> gif = stackstac.dgif(arr, bytes=True)
457+
>>> gif = geogif.dgif(arr, bytes=True)
458458
>>> bucket.setitems({"neat.gif": gif}).compute()
459459
"""
460460

0 commit comments

Comments
 (0)