Skip to content

Commit

Permalink
Additions and changes to metrics
Browse files Browse the repository at this point in the history
Some of these will need updated with changes to layers
  • Loading branch information
Jdgilby committed Aug 22, 2024
1 parent 48efea4 commit 21690c8
Show file tree
Hide file tree
Showing 33 changed files with 796 additions and 13 deletions.
26 changes: 26 additions & 0 deletions QRiS/metrics/bar_area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Bar Area",
"machine_name": "bar_area",
"version": 1,
"calculation_name": "area",
"default_level": "Metric",
"description": "The area of bars in containing sample frame",
"metadata": {
"min_value": 0,
"precison": 2
},
"metric_params": {
"layers": [
{
"layer_name": "geomorphic_unit_extents",
"attribute_filter": {
"field_name": "Type 2 Tier",
"values": [
"Mound"
]
}
}
]
}
}
35 changes: 35 additions & 0 deletions QRiS/metrics/bar_count.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Bar Count",
"machine_name": "bar_count",
"version": 1,
"calculation_name": "count",
"default_level": "Metric",
"description": "The number of bars in containing sample frame",
"metadata": {
"min_value": 0,
"precison": 2
},
"metric_params": {
"layers": [
{
"layer_name": "geomorphic_units",
"attribute_filter": {
"field_name": "Type 2 Tier",
"values": [
"Mound"
]
}
},
{
"layer_name": "geomorphic_unit_extents",
"attribute_filter": {
"field_name": "Type 2 Tier",
"values": [
"Mound"
]
}
}
]
}
}
16 changes: 12 additions & 4 deletions QRiS/metrics/bar_density.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{

"$schema": "../qris_metrics.schema.json",
"name": "Mid Channel Bar Density",
"name": "Bar Density",
"machine_name": "bar_density",
"version": 1,
"calculation_name": "count",
"default_level": "Metric",
"description": "The number of mid-channel bars per km of riverscape",
"description": "The number of pools per km of riverscape",
"metadata": {
"min_value": 0,
"precision": 2
"precison": 2
},
"metric_params": {
"layers": [
Expand All @@ -21,6 +20,15 @@
"Mound"
]
}
},
{
"layer_name": "geomorphic_unit_extents",
"attribute_filter": {
"field_name": "Type 2 Tier",
"values": [
"Mound"
]
}
}
],
"normalization": "centerline"
Expand Down
26 changes: 26 additions & 0 deletions QRiS/metrics/channel_head_count.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Floodplain Channel Head Count",
"machine_name": "channel_head_count",
"version": 1,
"calculation_name": "count",
"default_level": "Metric",
"description": "The number of channel heads in containing sample frame",
"metadata": {
"min_value": 0,
"precison": 2
},
"metric_params": {
"layers": [
{
"layer_name": "channel_junctions",
"attribute_filter": {
"field_name": "Type",
"values": [
"Channel Head"
]
}
}
]
}
}
27 changes: 27 additions & 0 deletions QRiS/metrics/confluence_count.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Confluence Count",
"machine_name": "confluence_count",
"version": 1,
"calculation_name": "count",
"default_level": "Metric",
"description": "The number of channel confluences in containing sample frame",
"metadata": {
"min_value": 0,
"precison": 2
},
"metric_params": {
"layers": [
{
"layer_name": "channel_junctions",
"attribute_filter": {
"field_name": "Type",
"values": [
"Confluence (Anabranch)",
"Confluence (Tributary)"
]
}
}
]
}
}
28 changes: 28 additions & 0 deletions QRiS/metrics/dam_count.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Dam Count",
"machine_name": "dam_count",
"version": 1,
"calculation_name": "count",
"default_level": "Metric",
"description": "The number of dams in each sample frame",
"metadata": {
"min_value": 0,
"precision": 2
},
"metric_params": {
"layers": [
{
"layer_name": "structural_elements_points",
"count_field": "Structure Count",
"attribute_filter": {
"field_name": "Type",
"values": [
"Dam",
"Dam Complex"
]
}
}
]
}
}
8 changes: 1 addition & 7 deletions QRiS/metrics/dam_density.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
}
}
],
"normalization": "centerline",
"surfaces": [
{
"surface_name": "dem",
"surface_type": "raster"
}
]
"normalization": "centerline"
}
}
26 changes: 26 additions & 0 deletions QRiS/metrics/diffluence_count.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Diffluence Count",
"machine_name": "diffluence_count",
"version": 1,
"calculation_name": "count",
"default_level": "Metric",
"description": "The number of channel diffluences in the containing sample frame",
"metadata": {
"min_value": 0,
"precision": 2
},
"metric_params": {
"layers": [
{
"layer_name": "channel_junctions",
"attribute_filter": {
"field_name": "Type",
"values": [
"Diffluence"
]
}
}
]
}
}
20 changes: 20 additions & 0 deletions QRiS/metrics/flow_length.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Channel Length",
"machine_name": "flow_length",
"version": 1,
"calculation_name": "length",
"default_level": "Metric",
"description": "The sum of all channel lengths in a sample frame",
"metadata": {
"min_value": 0,
"precison": 2
},
"metric_params": {
"layers": [
{
"layer_name": "centerlines"
}
]
}
}
26 changes: 26 additions & 0 deletions QRiS/metrics/free_flowing_area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Free Flowing Area",
"machine_name": "free_flowing_area",
"version": 1,
"calculation_name": "area",
"default_level": "Metric",
"description": "The area of free flowing inundation in each sample frame",
"metadata": {
"min_value": 0,
"precision": 2
},
"metric_params": {
"layers": [
{
"layer_name": "inundation_extents",
"attribute_filter": {
"field_name": "Extent Type",
"values": [
"Free Flowing"
]
}
}
]
}
}
20 changes: 20 additions & 0 deletions QRiS/metrics/inundated_area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Total Inundated Area",
"machine_name": "inundated_area",
"version": 1,
"calculation_name": "area",
"default_level": "Metric",
"description": "The area of total inundation in each sample frame",
"metadata": {
"min_value": 0,
"precision": 2
},
"metric_params": {
"layers": [
{
"layer_name": "inundation_extents"
}
]
}
}
26 changes: 26 additions & 0 deletions QRiS/metrics/jam_area.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Jam Area",
"machine_name": "jam_area",
"version": 1,
"calculation_name": "area",
"default_level": "Metric",
"description": "The area of jams in each sample frame",
"metadata": {
"min_value": 0,
"precision": 2
},
"metric_params": {
"layers": [
{
"layer_name": "structural_elements_areas",
"attribute_filter": {
"field_name": "Type",
"values": [
"Jam"
]
}
}
]
}
}
28 changes: 28 additions & 0 deletions QRiS/metrics/jam_count.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "../qris_metrics.schema.json",
"name": "Jam Count",
"machine_name": "jam_count",
"version": 1,
"calculation_name": "count",
"default_level": "Metric",
"description": "The number of jams in each sample frame",
"metadata": {
"min_value": 0,
"precision": 2
},
"metric_params": {
"layers": [
{
"layer_name": "structural_elements_points",
"count_field": "Structure Count",
"attribute_filter": {
"field_name": "Type",
"values": [
"Jam",
"Jam Complex"
]
}
}
]
}
}
9 changes: 9 additions & 0 deletions QRiS/metrics/jam_density.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
"Jam Complex"
]
}
},
{
"layer_name": "structural_elements_areas",
"attribute_filter": {
"field_name": "Type",
"values": [
"Jam"
]
}
}
],
"normalization": "centerline"
Expand Down
Loading

0 comments on commit 21690c8

Please sign in to comment.