From 6eec8e3005102090646d8ab3b910b78d1ff523dc Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Tue, 16 Apr 2024 16:05:29 -0400 Subject: [PATCH 1/2] Add Map class --- hypercoast/__init__.py | 3 +++ hypercoast/hypercoast.py | 15 +++++++++++++++ requirements.txt | 1 + 3 files changed, 19 insertions(+) diff --git a/hypercoast/__init__.py b/hypercoast/__init__.py index 66d6690..1d7586c 100644 --- a/hypercoast/__init__.py +++ b/hypercoast/__init__.py @@ -3,3 +3,6 @@ __author__ = """Qiusheng Wu""" __email__ = "giswqs@gmail.com" __version__ = "0.0.1" + + +from .hypercoast import * diff --git a/hypercoast/hypercoast.py b/hypercoast/hypercoast.py index dd0b80e..c88424a 100644 --- a/hypercoast/hypercoast.py +++ b/hypercoast/hypercoast.py @@ -1 +1,16 @@ """Main module.""" + +import leafmap + + +class Map(leafmap.Map): + def __init__(self, **kwargs): + super().__init__(**kwargs) + + def search_emit(self, default_datset="EMITL2ARFL"): + """Search for Earth Engine datasets.""" + self.add("nasa_earth_data", default_dataset=default_datset) + + def search_pace(self, default_datset="PACE_OCI_L2_AOP_NRT"): + """Search for Earth Engine datasets.""" + self.add("nasa_earth_data", default_dataset=default_datset) diff --git a/requirements.txt b/requirements.txt index 24ce15a..56d7cf0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ numpy +leafmap \ No newline at end of file From 1ed5ac35bb57ae3995d87a3b5bf31da1e82ca797 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:09:18 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 56d7cf0..2c15a19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ +leafmap numpy -leafmap \ No newline at end of file