Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentinel-1 and Sentinel-2 Match #6

Open
danielz02 opened this issue Apr 10, 2024 · 2 comments
Open

Sentinel-1 and Sentinel-2 Match #6

danielz02 opened this issue Apr 10, 2024 · 2 comments

Comments

@danielz02
Copy link

Hi! Thanks a lot for releasing the dataset! I have a question about matching S1 and S2 data.

Based on the current processing, we estimate around 75% of the grid cells which have Sentinel-2 data will be successfully sampled with Sentinel-1 data.

I wonder how this number is calculated. Per my calculation, around 50% of the S2 grids can be matched with an S1 grid within an offset of four days. Here is how I did it

gdf_s2.sort_values("timestamp", inplace=True)
gdf_s1.sort_values("timestamp", inplace=True)

gdf_matched = pd.merge_asof(left=gdf_s2, right=gdf_s1, suffixes=("_s2", "_s1"), by="grid_cell", direction='nearest', on="timestamp", tolerance=pd.Timedelta(pd.offsets.Day(4)), allow_exact_matches=False).dropna(subset="parquet_url_s1", axis=0)

Any clarification would be much appreciated!

@mikonvergence
Copy link
Collaborator

Hi @danielz02, thanks!

This should be correct. The average time shift between Core-S2 and Core-S1 is actually about 7 days.

@danielz02
Copy link
Author

Thanks for your prompt response! How was the 75% number calculated? I tried an offset of 7 days and I can match 60% of the S2 data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants