-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09f91dc
commit 364bc21
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import ee | ||
import xee | ||
import xarray as xr | ||
|
||
from .layer import Layer, get_image_collection | ||
|
||
|
||
class AlosDSM(Layer): | ||
def __init__(self, **kwargs): | ||
super().__init__(**kwargs) | ||
|
||
def get_data(self, bbox): | ||
dataset = ee.ImageCollection("JAXA/ALOS/AW3D30/V3_2") | ||
alos_dsm = ee.ImageCollection(dataset | ||
.filterBounds(ee.Geometry.BBox(*bbox)) | ||
.select('DSM') | ||
.mean() | ||
) | ||
data = get_image_collection(alos_dsm, bbox, 30, "ALOS DSM").DSM | ||
|
||
return data |