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

Investigate using Smartline as alternative to initial coastal mask #20

Open
robbibt opened this issue Jul 30, 2020 · 0 comments
Open

Investigate using Smartline as alternative to initial coastal mask #20

robbibt opened this issue Jul 30, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@robbibt
Copy link
Member

robbibt commented Jul 30, 2020

Pros:

  • Much simpler code
  • More flexibility to modify MNDWI threshold

Cons:

  • Would need to be modified in some areas of extreme change

E.g. update contour_preprocess with rasterisation of smartline buffer:

    buffered_geom = smartline_gdf.simplify(30).buffer(2000)
    coastal_buffer = rasterize(shapes=buffered_geom,
                               out_shape=yearly_ds.geobox.shape,
                               transform=yearly_ds.geobox.transform,
                               all_touched=True).astype(bool)
    buffer_ocean = ~coastal_buffer
    buffer_land = ~coastal_buffer
@robbibt robbibt added the enhancement New feature or request label Jul 30, 2020
@robbibt robbibt self-assigned this Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant