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

Update baseline-change.ipynb #291

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions datasets/sentinel-2-l2a/baseline-change.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"> This evolution allows avoiding the loss of information due to clamping of negative values in the predefined range `[1-32767]` occurring over dark surfaces.\n",
"\n",
"The presence of this offset in newer data makes it inappropraite to (naively) compare data from before and after the baseline change. Trying to apply a machine learning model trained on the old baseline to (unadjusted) imagery from the new baseline will yield incorrect results. And trying to train a machine learning model on old and (unadjusted) new data will likely result in much worse performance.\n",
"The presence of this offset in newer data makes it inappropriate to (naively) compare data from before and after the baseline change. Trying to apply a machine learning model trained on the old baseline to (unadjusted) imagery from the new baseline will yield incorrect results. And trying to train a machine learning model on old and (unadjusted) new data will likely result in much worse performance.\n",
"\n",
"This notebook demonstrates how the change affects the Sentinel-2 L2A data hosted on the Planetary Computer and how to harmonize the new data to be comparable to the old data."
]
Expand All @@ -42,7 +42,7 @@
"id": "e4b0be43-3b54-4188-b2e6-6097838eade4",
"metadata": {},
"source": [
"The `harmonize_to_old` function harmonizes new (post January 25th, 2022) Sentinel 2 data to be compoarable to older data. It expects an xarray DataArray similar to those returned by `stackstac`."
"The `harmonize_to_old` function harmonizes new (post January 25th, 2022) Sentinel 2 data to be comparable to older data. It expects an xarray DataArray similar to those returned by `stackstac`."
]
},
{
Expand Down Expand Up @@ -699,7 +699,7 @@
"id": "ef0f882f-99e3-422a-8973-78d2ec999486",
"metadata": {},
"source": [
"If we plot the red, green, and blue bands of the two datetimes, we'll see that the \"old\" data looks relatively dark compared tot he \"new\" data."
"If we plot the red, green, and blue bands of the two datetimes, we'll see that the \"old\" data looks relatively dark compared to the \"new\" data."
]
},
{
Expand Down
Loading