Skip to content

Commit

Permalink
Correction notebook large countries
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainv committed May 29, 2024
1 parent 76a63aa commit ef19c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions docsrc/notebooks/large_countries/large_countries.org
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,9 @@ patches = [mpatches.Patch(facecolor=col, edgecolor="black",

#+RESULTS:

We load the data: forest cover change, country borders, buffer, and grid.
We load the data: country borders, buffer, and grid.

#+begin_src python
# Forest cover change
fcc_tmf_coarsen = xr.open_dataset("out_tmf/fcc_tmf_coarsen.tif",
engine="rasterio").astype("byte")

# Borders
borders_gpkg = os.path.join("out_tmf", "gadm41_PER_0.gpkg")
borders = geopandas.read_file(borders_gpkg)
Expand Down
6 changes: 1 addition & 5 deletions docsrc/notebooks/large_countries/large_countries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,10 @@ We prepare the colors for the map.
patches = [mpatches.Patch(facecolor=col, edgecolor="black",
label=labels[i]) for (i, col) in enumerate(colors)]
We load the data: forest cover change, country borders, buffer, and grid.
We load the data: country borders, buffer, and grid.

.. code:: python
# Forest cover change
fcc_tmf_coarsen = xr.open_dataset("out_tmf/fcc_tmf_coarsen.tif",
engine="rasterio").astype("byte")
# Borders
borders_gpkg = os.path.join("out_tmf", "gadm41_PER_0.gpkg")
borders = geopandas.read_file(borders_gpkg)
Expand Down

0 comments on commit ef19c46

Please sign in to comment.