Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
add max block definition (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
Derryrover authored Feb 4, 2022
1 parent dd46fe8 commit 6c1db40
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const GeoBlockVisualFlow = (props: MyProps & DispatchProps) => {
id: idOfNewBlock,
type: (
blockName === 'RasterSource' ? blockName :
blockName === 'Group' || blockName === 'GroupTemporal' || blockName === 'FillNoData' ? 'GroupBlock' : 'Block'
blockName === 'Group' || blockName === 'GroupTemporal' || blockName === 'FillNoData' || blockName === 'Max' ? 'GroupBlock' : 'Block'
),
position,
sourcePosition,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,16 @@
}
]
},
"Max": {
"class": "dask_geomodeling.raster.reduction.Max",
"description": "Take the maximum value of two or more rasters, ignoring no data.",
"parameters": {
"type": "array",
"items": {
"type": "raster_block"
}
}
},
"MovingMax": {
"class": "dask_geomodeling.raster.spatial.MovingMax",
"description": "Apply a spatial maximum filter to the data using a circular footprint",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const getBlockElements = (
id: blockName,
type: (
classOfBlock === "dask_geomodeling.raster.combine.Group" ||
classOfBlock === "dask_geomodeling.raster.reduction.Max" ||
classOfBlock === "raster_store.blocks.GroupTemporal" ||
classOfBlock === "dask_geomodeling.raster.elemwise.FillNoData" ?
'GroupBlock' : 'Block'
Expand Down
1 change: 1 addition & 0 deletions src/types/geoBlockType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ enum GroupBlockEnum {
Group = "Group",
GroupTemporal = "GroupTemporal",
FillNoData = "FillNoData",
Max = "Max",
}

type InputBlockType = {
Expand Down

0 comments on commit 6c1db40

Please sign in to comment.