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

chore: bump version to 0.0.8 #41

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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