Add utility function for extracting point-based time series from Earth Engine + example notebook#2278
Conversation
for more information, see https://pre-commit.ci
|
Thank you for the PR. This added functionality seems to be very similar to the https://geemap.org/common/#geemap.common.extract_values_to_points |
Dear Dr. Qiusheng, Thank you for the feedback. You're absolutely right — The new function is designed specifically to address this. It extracts values while retaining the temporal dimension, which is crucial for applications like agricultural modeling where consistent time steps and clean time series data are essential. I’d be happy to adjust or integrate the functionality more closely with existing methods if needed. Best regards, |
|
That makes sense. Please also modify mkdocs.yml so that the notebook example shows up on the website. https://github.com/gee-community/geemap/blob/master/mkdocs.yml#L314 |
|
Thanks! I've updated the |
|
Dear Dr. Qiusheng, Just a quick follow-up regarding my recent pull request to the geemap repository. I've incorporated your suggestion by updating Please let me know if there's anything further needed from my side. If everything looks good, I'd appreciate it if you could consider merging it once all the checks pass. Thank you again for your time and valuable feedback. Best regards, |
|
The earlier failure might be due to missing GDAL system dependencies during the build process. I have added the following lines to - name: Install GDAL system dependencies
run: sudo apt-get update && sudo apt-get install -y gdal-bin libgdal-dev |
|
Dear Dr. Quisheng, I’ve updated the branch to resolve the issue that occurred earlier during merging. Could you please take a look when you get a chance and let me know if everything looks okay to merge? Thank you very much for your time and help! 🙏 |
| start_date, | ||
| end_date, | ||
| band_names, |
There was a problem hiding this comment.
I guess these three params can be optional. If not specified, just don't use filterDate or select bands.
| scale=None, | ||
| crs=None, | ||
| crsTransform=None, | ||
| out_df=None, |
There was a problem hiding this comment.
Suggest changing param name to output or out_csv. out_df is a bit confusing as the output here is not really a df.

This PR introduces a new helper function
extract_timeseries_to_point()for extracting pixel-level time series from a Google Earth EngineImageCollectionat a given geographic coordinate.✅ Highlights:
Extracts time series from daily or multi-temporal Earth observation collections at a specific point.
Supports:
band_names)start_date,end_date)scale,crs, andcrsTransformReturns a
pandas.DataFrameor saves the result directly to CSV.Includes clear error handling for invalid inputs and empty results.
📘 New Example Notebook:
152_extract_timeseries_to_point.ipynbto demonstrate how to use the function with the ERA5-Land Daily Aggregated dataset:💡 Use Cases: