0

I have found a link online that extracts the values min mean max and median, this is using the zonal stats function.

sjer_tree_heights = rs.zonal_stats(plot_buffer_path,
                                   sjer_chm_data_no_zeros.values,
                                   nodata=-999,
                                   affine=sjer_chm_data_no_zeros.rio.transform(),
                                   geojson_out=True,
                                   copy_properties=True,
                                   stats="count min mean max median")

I want the actual value for that location, rather than the zonal stats. I want to add these values to a data frame afterward. Is there a similar way to do this?

1 Answer 1

0

These examples might have what you are looking for:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.