Skip to content

Instantly share code, notes, and snippets.

View knu2xs's full-sized avatar

Joel McCune knu2xs

View GitHub Profile
def pro_at_least_version(version: str) -> bool:
"""
Test the current ArcGIS Pro version to be equal or greater than.
Args:
version: Version number eg ('2', '2.1', '2.8.1')
Returns:
Boolean indicating if version is at least or greater than specified version.
"""
# late import since may or may not already be loaded
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knu2xs
knu2xs / enrichment-introspection.ipynb
Created May 28, 2021 15:12
Enrichment introspection examples
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knu2xs
knu2xs / arcade_commute.arcade
Last active May 17, 2021 22:15
Arcade expression to calculate average drive time.
(
$feature.commute_ACSTWORKU5 * 2.5
+ $feature.commute_ACSTWORK5 * 7.0
+ $feature.commute_ACSTWORK10 * 12.0
+ $feature.commute_ACSTWORK15 * 17.0
+ $feature.commute_ACSTWORK20 * 22.0
+ $feature.commute_ACSTWORK25 * 27.0
+ $feature.commute_ACSTWORK30 * 32.0
+ $feature.commute_ACSTWORK35 * 37.0
+ $feature.commute_ACSTWORK40 * 42.0
@knu2xs
knu2xs / pyarrow-errors.ipynb
Created May 3, 2021 16:43
Errors encountered with PyArrow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knu2xs
knu2xs / enrich-direct-all.ipynb
Created April 27, 2021 22:43
Enrich block groups using all variables directly.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knu2xs
knu2xs / check_usgs_realtime.ipynb
Last active March 9, 2021 16:27
Check USGS realtime streamflow using Python.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knu2xs
knu2xs / io-spatial-methods.ipynb
Last active March 5, 2021 00:42
Example showing how to add all the pd.read_* and pd.DataFrame.to_* methods to the GeoAccessor with serialization and deserialization functioning.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.