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

slope is exported on the country borders #135

Open
12rambau opened this issue Jun 21, 2022 · 0 comments
Open

slope is exported on the country borders #135

12rambau opened this issue Jun 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@12rambau
Copy link
Collaborator

12rambau commented Jun 21, 2022

the consequence is removing the disputed areas from the file. we should reexport it at world scale or at least on the LMIC bounds.

to be adapted for further use

// view the layer
var elevation = ee.Image('USGS/SRTMGL1_003')

// get refs
var layer = "projects/john-ee-282116/assets/fao-restoration/features/rest_pot_gt_treecoverfrac_mask_urban" 
var ee_ref_crs = ee.Projection(ee.Image(layer).projection())

// get lmic bounds
var ee_ref_geom = ee.Geometry.Polygon({
    coords: [
        [-144.51600549814273, -58.07221137655366],
        [192.42150308492614, -58.07221137655366],
        [192.42150308492614, 57.78491418812651],
        [-144.51600549814273, 57.78491418812651],
        [-144.51600549814273, -58.07221137655366],
    ],
    geodesic: false,
    proj: "EPSG:4326",
})

// build the slope 
var slope = ee.Algorithms.Terrain(elevation).select('slope')

// export 
Export.image.toDrive({
  "folder": "se.plan",
  "image": slope,
  "description": "slope",
  "region": ee_ref_geom,
  "scale": 1000,
  "crs": ee_ref_crs,
  "maxPixels": 10e12,
});
@12rambau 12rambau added the bug Something isn't working label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant