Select to view content in your preferred language

Notebook for Calculating Fields based on Intersecting Layers

555
0
07-05-2022 11:24 AM
Labels (1)
10KYIGIS
Occasional Contributor

Hi there,

I'm getting started with ArcGIS Notebooks to help with some occasional data management tasks, I want to just see if I'm on the right track and if this is possible within AGO Notebooks.

I do have some Python experience working with Conda environments, and Jupyter Notebook from notebooks saved on my local machine to regularly backup content from our AGO organization. I haven't used AGO's Notebooks yet though.

I have some Field Data that is regularly collected that I would like to populate with values contingent on whether the data is within a subwatershed, watershed, and county boundary. I plan on using the summarize_data.join_features() tool to accomplish some of that.

My plan is as follows:

a) Import necessary libraries

b) Connect to necessary feature layers via gis.content.get('') (Field Data, subwatershed, watershed, county)

c) Join Field Data with subwatershed using join_features

d) Calculate values for subwatershed field using print and calculate functions with the name field from the joined table populating the empty

e) Repeat Join and calculate operation for the remaining Fields (watershed, County)

f) Remove join and delete created join table - to save space

I suppose my question is if I'm on the right (or reasonable) track here? Does this seem plausible for ArcGIS Notebook, or am I missing something critical? I;m putting together some scratch data to give my idea a test. Ideally, I would have this scheduled to calculate for any null values recorded at the end of day.

0 Kudos
0 Replies