Skip to content

Perform Intersection and download data #7

Answered by kratzert
maby200 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @maby200

Edit: See answer in my first comment below this post.

To be honest, I am not quite sure I understand what happens here, as I have never seen such an error. It seems like there is a mismatch over basin-id's that are returned from

# list of all available basins
basin_ids = basins.aggregate_array(BASIN_ID_FIELD).getInfo()

which is used to populate the results dictionary just below

# dictionary to store the results
results = {b: defaultdict(list) for b in basin_ids}

So any basin id that is in your shapefile in the column name like the value of BASIN_ID_FIELD, should exist as a key in the results dictionary. If you want, you can send my your basin shape file or share the asset wit…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@kratzert
Comment options

@kratzert
Comment options

@maby200
Comment options

@kratzert
Comment options

@maby200
Comment options

Answer selected by kratzert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants