Skip to content

Commit

Permalink
Implement land cover dataset (#32)
Browse files Browse the repository at this point in the history
* dataset info land cover

* add downloading function and demo notebook

* add ingest function and unzip

* coarsen land cover and finish ingest

* add load method

* add convert function and update ALMA

* add test for cds util request land cover

* use TemporaryDirectory for temporary unzipped files

* add tests for download and ingest

* add tests for load and convert

* increase coverage

* drop py3.9 and fix unit tests for windows

* Revert "drop py3.9 and fix unit tests for windows"

This reverts commit 4ca978d.

* drop py39

* close dataset to fix tests on windows

* Revert "close dataset to fix tests on windows"

This reverts commit abf11da.

* fix linter after dropping py39

* try context manager to fix tests on windows

* address comments

* Apply suggestions from code review

Co-authored-by: Bart Schilperoort <[email protected]>

* address review comments

---------

Co-authored-by: Bart Schilperoort <[email protected]>
  • Loading branch information
geek-yang and BSchilperoort authored Nov 15, 2023
1 parent 26beebb commit 9d24eed
Show file tree
Hide file tree
Showing 20 changed files with 1,625 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.10', '3.11']
env:
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434
steps:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ To download the following datasets, users need access to CDS via cdsapi:
- ERA5
- ERA5 land
- LAI
- land cover

First, you need to be a registered user on *CDS* via the [registration page](https://cds.climate.copernicus.eu/user/register?destination=%2F%23!%2Fhome).

Expand Down
Loading

0 comments on commit 9d24eed

Please sign in to comment.