Skip to content

Commit

Permalink
Mapx dtype updates (#1010)
Browse files Browse the repository at this point in the history
Refs #995 and #994
Adds a Jupyter Notebook script that compares the mapx files to the
database tables they reference and updates the dtypes of the mapx
accordingly. This commit also includes all of the mapx files that were
updated on the initial execution of the script.

It would be great to have this type of script be able to run
automatically as a CI/CD workflow whenever a PR is submitted. But for
now, I recommend that we add running this script to our deployment
checklist as another manual execution. The execution results in modified
mapx files, which should then be committed to a new branch, pushed, and
opened as a PR.
  • Loading branch information
shawncrawley authored Dec 19, 2024
1 parent 242ced9 commit 8aabb9e
Show file tree
Hide file tree
Showing 35 changed files with 12,325 additions and 12,160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"illumination" : {
"type" : "CIMIlluminationProperties",
"ambientLight" : 75,
"sunPositionX" : -0.61237243569579003,
"sunPositionY" : 0.61237243569579003,
"sunPositionX" : -0.61237243569579,
"sunPositionY" : 0.61237243569579,
"sunPositionZ" : 0.5,
"illuminationSource" : "AbsoluteSunPosition",
"sunAzimuth" : 315,
Expand All @@ -36,23 +36,23 @@
[
[
-15224159.214216806,
2159597.88073609583
2159597.880736096
],
[
-15224159.214216806,
7211496.010788572
],
[
-6228307.88800826389,
-6228307.888008264,
7211496.010788572
],
[
-6228307.88800826389,
2159597.88073609583
-6228307.888008264,
2159597.880736096
],
[
-15224159.214216806,
2159597.88073609583
2159597.880736096
]
]
],
Expand All @@ -62,9 +62,9 @@
}
},
"defaultExtent" : {
"xmin" : -12741191.8027382921,
"ymin" : 3449911.10343416082,
"xmax" : -8595903.51216171123,
"xmin" : -12741191.802738292,
"ymin" : 3449911.103434161,
"xmax" : -8595903.512161711,
"ymax" : 6368376.940365836,
"spatialReference" : {
"wkid" : 102100,
Expand Down Expand Up @@ -505,39 +505,33 @@
},
{
"name" : "prcntle_5",
"type" : "esriFieldTypeString",
"alias" : "prcntle_5",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_5"
},
{
"name" : "prcntle_10",
"type" : "esriFieldTypeString",
"alias" : "prcntle_10",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_10"
},
{
"name" : "prcntle_25",
"type" : "esriFieldTypeString",
"alias" : "prcntle_25",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_25"
},
{
"name" : "prcntle_75",
"type" : "esriFieldTypeString",
"alias" : "prcntle_75",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_75"
},
{
"name" : "prcntle_90",
"type" : "esriFieldTypeString",
"alias" : "prcntle_90",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_90"
},
{
"name" : "prcntle_95",
"type" : "esriFieldTypeString",
"alias" : "prcntle_95",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_95"
},
{
"name" : "anom_cat_7day",
Expand Down Expand Up @@ -837,7 +831,7 @@
"heading" : "Stream Order"
},
"randomMax" : 1,
"minSize" : 0.33000000000000002,
"minSize" : 0.33,
"maxSize" : 2,
"minValue" : 1,
"maxValue" : 10,
Expand Down Expand Up @@ -1458,39 +1452,33 @@
},
{
"name" : "prcntle_5",
"type" : "esriFieldTypeString",
"alias" : "prcntle_5",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_5"
},
{
"name" : "prcntle_10",
"type" : "esriFieldTypeString",
"alias" : "prcntle_10",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_10"
},
{
"name" : "prcntle_25",
"type" : "esriFieldTypeString",
"alias" : "prcntle_25",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_25"
},
{
"name" : "prcntle_75",
"type" : "esriFieldTypeString",
"alias" : "prcntle_75",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_75"
},
{
"name" : "prcntle_90",
"type" : "esriFieldTypeString",
"alias" : "prcntle_90",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_90"
},
{
"name" : "prcntle_95",
"type" : "esriFieldTypeString",
"alias" : "prcntle_95",
"length" : 15
"type" : "esriFieldTypeDouble",
"alias" : "prcntle_95"
},
{
"name" : "average_flow_14day",
Expand Down Expand Up @@ -1795,7 +1783,7 @@
"heading" : "Stream Order"
},
"randomMax" : 1,
"minSize" : 0.33000000000000002,
"minSize" : 0.33,
"maxSize" : 2,
"minValue" : 1,
"maxValue" : 10,
Expand Down
Loading

0 comments on commit 8aabb9e

Please sign in to comment.