Joel McCune
  • Home
  • About
  • Python
  • Whitewater
  • Geography Matters
Joel McCune

Joel McCune

Olympia, Washington, USA •
155 posts •
Mac

Fixing Mac .bash_profile

Murphy, who was he and why is his law so recurrent? Apparently, there are people who spend an inordinate amount of time unpacking the history of Murphy's Law. Myself, I typically use a

  • Joel McCune
    Joel McCune
1 min read

Get SafeGraph Patterns by POI ID Using an AWS EC2 Instance

Retrieve SafeGraph Patterns Data for Only Specific Points-of-Interest(POI) Using an Amazon Web Services Elastic Compute Cloud Instance "What the heck did he just say?" Yes, even for a large proportion of the

  • Joel McCune
    Joel McCune
11 min read
Python

Conda and ArcGIS Pro 2.7

For those of us who regularly work with Python and ArcGIS, especially for data science, life just got a lot easier with ArcGIS Pro 2.7. Now, arcpy can be installed just like any other Conda package. This means ArcGIS Pro now can coexist on the same machine and play nicely with Conda.

  • Joel McCune
    Joel McCune
3 min read

COVID Office Evolution

For a long time I resisted creating a home office. We live in an 1,800 square foot house built in 1924. About a year ago, we moved the boys into the same

  • Joel McCune
    Joel McCune
2 min read
Covid

Geography Matters...Again

When the world was big, geography mattered a whole lot. As travel became easier, trade almost trivial, and the world became smaller, geographic interest waned. Now, in the midst of a pandemic, suddenly geography matters a lot...again.

  • Joel McCune
    Joel McCune
6 min read
whitewater

The Best Laid Plans - I Miss the River

Almost four years ago now, I got the opportunity to run the Little White Salmon for the first time. Over a decade ago, I recall seeing the first ever full color centerfold in

  • Joel McCune
    Joel McCune
5 min read
covocalypse

Covocalypse Part 1

In today's world of follow-me drones, GoPro heros, and cell phone cameras, I find myself looking at a lot more photos and videos shared online with little explanation. It makes me yearn for

  • Joel McCune
    Joel McCune
5 min read
Python

Cloning ArcGIS Conda Environments

ArcGIS Pro, when initially released, included an incredibly powerful capability, the included Python environment is a Conda environment. This unlocks the extremely powerful and vast universe of installable packages available through Conda. Further,

  • Joel McCune
    Joel McCune
1 min read
Python

Create `arcgis` Conda Environment with a Batch File

Although first and foremost a Geographer, after transitioning to the GeoAI Business Development Team at Esri, now I spend most of my time in Jupyter Lab. Although not altogther difficult, if following best

  • Joel McCune
    Joel McCune
1 min read
Python

Automatically Convert to Esri Spatially Enabled Dataframe

I frequnetly need a Spatially Enabled Dataframe from a variety of sources, and these sources frequently change. Guessing there is a very good chance I am not the only one doing this - here is my solution to this as a Gist you are more than welcome to use.

  • Joel McCune
    Joel McCune
1 min read
Python

Relative Module Imports in an ArcGIS Python Toolbox

The idea of ArcGIS Python toolboxes really appeals to me. I really like them. As is frequently the case in life, the devil is in the details. Python Toolboxes have plenty of interesting

  • Joel McCune
    Joel McCune
1 min read
iPython

Layer to Spatially Enabled DataFrame

As I continue to dive deeper and deeper into the intersection of Geography and Artifical Intelligence - what we are calling GeoAI, I find myself doing a lot of data work. This means

  • Joel McCune
    Joel McCune
1 min read
Python

Purge Scratch GeoDatabase

In a lot of the scripts I write, especially data preparation pipelines, I use the scratch Geodatabase - a lot. At the end of these pipelines, especially when testing and re-running the processes

  • Joel McCune
    Joel McCune
1 min read
whitewater

Outfitting a Pyranha 9R as a C1

Kaykers have it so easy. Outfitting a boat consists of shoving a few slivers of foam in for hip blocks, adjusting the bulkhead and backhand, and hitting it. It takes, at most, about

  • Joel McCune
    Joel McCune
8 min read
Python API

ArcGIS-ML-Docker

Easily 80 percent of my time at work is now spent in ArcGIS Python API, either the stable branch, or much of the time, the daily build. Frequently I switch between these environments,

  • Joel McCune
    Joel McCune
1 min read
arcpy

Use ArcPy to Match Spatial Reference

Frequently when performing data preparation or analysis in GIS the spatial reference or projections need to be modified to match. Also, much of the time the data needs to be modified to match

  • Joel McCune
    Joel McCune
1 min read
Python API

ArcGIS Python Geometry from Shapely

The ArcGIS Python API Geometry object includes the capability to export the geometry to a Shapely Geometry object, but not the capability to create a new ArcGIS Geometry object from a Shapely object.

  • Joel McCune
    Joel McCune
1 min read
Python API

Loading a Previously Saved SpatialDataFrame from CSV

Increasingly I find myself working with SpatialDataFrames for analysis in Jupyter Notebooks in Python. Much of the time the easiest way to save results for future work is saving to a CSV file.

  • Joel McCune
    Joel McCune
1 min read
Python

Creating a SpatialDataFrame from a Web GIS Item

The relatively recent addition of the SpatialDataFrame object to the ArcGIS Python API was a gigantic leap forward. The SpatialDataFrame marries the common data structure used for data munging and data science, the

  • Joel McCune
    Joel McCune
1 min read
Python

Keeping the ArcGIS Python API with ArcGIS Pro Current

If you are running the ArcGIS Python API in a virgin Conda environment, this very likely does not apply to you. If you are running the ArcGIS Python API in the Python environment

  • Joel McCune
    Joel McCune
1 min read
Pandas

Filter NotNull Geometries in an ArcGIS SpatialDataFrame

When working with Pandas DataFrames it is fairly common to filter out records with null values using the notnull Pandas function. This however, does not work with the geometry column created when loading

  • Joel McCune
    Joel McCune
1 min read

CSV to SpatialDataFrame

"Why don't I just send you a sample of our data, and see what you can do with it?" As a Solution Engineer, I have heard these words more times than

  • Joel McCune
    Joel McCune
1 min read
Python

PyCharm Debugging - Stop on Unhandled Exceptions

One of the most useful features of PyCharm is the robust debugging capabilities, especially the ability to set it to stop during debugging when encountering an unhandled exception. Enabling this, I frequently have

  • Joel McCune
    Joel McCune
1 min read
ArcGIS

ArcGIS Python Reproject Geometry Object List

Frequently I have a large list of geometry objects I need to get reprojected for analysis. A while back I discovered the reprojectAs method of the arcpy.Geometry object. While useful, I still

  • Joel McCune
    Joel McCune
2 min read
gun control

Annoyed, Yes - Common Sense is Apparently NOT Common

Gun legislation is foolish, almost, but not quite as foolish as the legislation promoted by the gun lobby. It is all asinine. I vehemently agree the vast majority who own firearms are responsible

  • Joel McCune
    Joel McCune
1 min read
Joel McCune © 2021
Latest Posts Ghost