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?