open-AIMS / ADRIA.jl

ADRIA: Adaptive Dynamic Reef Intervention Algorithms. A multi-criteria decision support platform for informing reef restoration and adaptation interventions.
MIT License
14 stars 5 forks source link

Coerce to MultiPolygon instead of Polygon #793

Closed ConnectedSystems closed 2 months ago

ConnectedSystems commented 2 months ago

As in title.

Closes #792

dom = ADRIA.load_domain("<path to domain>")
dom2 = ADRIA.switch_RCPs!(dom, "45")

dhw_scens = dom2.dhw_scens

ADRIA.viz.map(
    dom2,
    vec(mean(dhw_scens[timesteps=At(20)], dims=2));
    opts=Dict(:color_map => :lighttest),
    axis_opts=Dict(:title => "Mean DHW 2045")
)

image

Note this is a temporary fix on top of a temporary implementation. Further work to utilize/leverage GeoMakie/GeoDataFrames functionality much more is needed.

Rosejoycrocker commented 2 months ago

Looks good to me, thanks!