Skip to content

Commit

Permalink
chore: bump version to 0.0.8 (#41)
Browse files Browse the repository at this point in the history
docs: add area average example to recipes
  • Loading branch information
tsutterley authored Apr 9, 2024
1 parent f835fe1 commit 346a912
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
Binary file added doc/source/_assets/nwgreenland.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions doc/source/release_notes/release-v0.0.8.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
##################
`Release v0.0.8`__
##################

* ``feat``: create single row with both map and control widgets (`#40 <https://github.com/tsutterley/IS2view/pull/40>`_)

.. __: https://github.com/tsutterley/IS2view/releases/tag/0.0.8
32 changes: 32 additions & 0 deletions doc/source/user_guide/Recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,38 @@ Requires optional ``geopandas`` and ``fiona`` dependencies.

Antarctic subglacial lake delineations from `Fricker et al. (2007) <https://doi.org/10.1126/science.1136897>`_

Plot an Area Average
####################

Requires optional ``geopandas`` dependency.

.. code-block:: python
import geopandas
import matplotlib.pyplot as plt
# read Greenland basins
gdf = geopandas.read_file('Greenland_Basins_PS_v1.4.2.zip')
# reduce to NW region
subregion = 'NW'
region = gdf[gdf['SUBREGION1'] == subregion].dissolve(by='SUBREGION1')
region['NAME'] = f'{subregion} Greenland'
# add geodataframe
m.add_geodataframe(region)
# iterate over features
for feature in m.geometries['features']:
ds.timeseries.plot(feature, legend=True,
variable=IS2widgets.variable.value,
color='mediumseagreen'
)
# show average plot
plt.show()
.. figure:: ../_assets/nwgreenland.png
:width: 400
:align: center

Greenland drainage basins from `Mouginot and Rignot (2019) <https://doi.org/10.7280/D1WT11>`_

Calculate Area Averages
#######################

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.7
0.0.8

0 comments on commit 346a912

Please sign in to comment.