Skip to content

Commit

Permalink
Deploy dev from c3b3f12
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 10, 2024
1 parent a5b7cc0 commit 6f41973
Show file tree
Hide file tree
Showing 248 changed files with 20,801 additions and 43,013 deletions.
2 changes: 1 addition & 1 deletion dev/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: ea071a18314af74d6cd67899df0ed9cf
config: bdeb98ae41c1bdc55d9dc852bbf31a2e
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified dev/_images/composites_2_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/composites_3_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/composites_4_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/composites_5_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/composites_6_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/equalize-histogram_2_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/equalize-histogram_3_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/equalize-histogram_4_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/index_0_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/indices_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/indices_14_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/indices_1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/indices_5_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/indices_7_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/indices_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
286 changes: 286 additions & 0 deletions dev/_images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/missing-values_1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/missing-values_2_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/overview_4_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/pansharpen_3_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/pansharpen_5_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed dev/_images/plot-overlay_1_0.png
Binary file not shown.
Binary file modified dev/_images/plot-overlay_2_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified dev/_images/plot-overlay_3_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dev/_images/plot-overlay_4_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
713 changes: 341 additions & 372 deletions dev/_modules/index.html

Large diffs are not rendered by default.

739 changes: 360 additions & 379 deletions dev/_modules/xlandsat/_composite.html

Large diffs are not rendered by default.

780 changes: 402 additions & 378 deletions dev/_modules/xlandsat/_enhancement.html

Large diffs are not rendered by default.

722 changes: 347 additions & 375 deletions dev/_modules/xlandsat/_interpolation.html

Large diffs are not rendered by default.

820 changes: 414 additions & 406 deletions dev/_modules/xlandsat/_io.html

Large diffs are not rendered by default.

720 changes: 346 additions & 374 deletions dev/_modules/xlandsat/_pansharpen.html

Large diffs are not rendered by default.

789 changes: 397 additions & 392 deletions dev/_modules/xlandsat/datasets.html

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dev/_sources/api/generated/xlandsat.adjust_l1_colors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
xlandsat.adjust\_l1\_colors
===========================

.. currentmodule:: xlandsat

.. autofunction:: adjust_l1_colors

.. raw:: html

<div style='clear:both'></div>
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Processing
composite
pansharpen
equalize_histogram
adjust_l1_colors
interpolate_missing

Sample datasets
Expand Down
36 changes: 36 additions & 0 deletions dev/_sources/changes.rst.txt → dev/_sources/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,42 @@
Changelog
=========

Version 0.5.0
-------------

Released on: 2024/04/10

doi: https://doi.org/10.5281/zenodo.10953496

Bug fixes:

* Fix issue with radiance conversion of Level 1 thermal bands (`#73 <https://github.com/compgeolab/xlandsat/pull/73>`__)
* Add missing Cirrus and Thermal 2 bands to IO functions (`#63 <https://github.com/compgeolab/xlandsat/pull/63>`__)

New features:

* Add function ``adjust_l1_colors`` to fix the colors of an RGB composite made from Level 1 data (`#76 <https://github.com/compgeolab/xlandsat/pull/76>`__)
* Add an option to download Level 1 data from the Momotombo eruption (`#75 <https://github.com/compgeolab/xlandsat/pull/75>`__)
* Add an Level 1 scene for Momotombo (`#74 <https://github.com/compgeolab/xlandsat/pull/74>`__)
* Allow choosing the dtype of composites (`#64 <https://github.com/compgeolab/xlandsat/pull/64>`__)

Documentation:

* Small improvements to some tutorials (`#77 <https://github.com/compgeolab/xlandsat/pull/77>`__)
* Update the version of Sphinx and its plugins (`#65 <https://github.com/compgeolab/xlandsat/pull/65>`__)

Maintenance:

* Extend testing and support for Python 3.12 (`#80 <https://github.com/compgeolab/xlandsat/pull/80>`__)
* Switch to pyproject.toml for package configuration (`#78 <https://github.com/compgeolab/xlandsat/pull/78>`__)
* Use PyPI Trusted Publishers instead of API tokens (`#67 <https://github.com/compgeolab/xlandsat/pull/67>`__)
* Use dependabot to manage GitHub Actions upgrades (`#66 <https://github.com/compgeolab/xlandsat/pull/66>`__)
* Add social media card images (`#62 <https://github.com/compgeolab/xlandsat/pull/62>`__)

This release contains contributions from:

* Leonardo Uieda

Version 0.4.0
-------------

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ equalization in :func:`xlandsat.equalize_histogram`.
.. tip::

It can be helpful to do a bit of contrast stretching first, but to a lesser
degree than we did previously.
degree than we did previously. It's also a good idea to use "float32" for
the composite to give it a larger range of color values (but this requires
more RAM).

.. jupyter-execute::

rgb = xls.composite(scene, rescale_to=(0, 0.6))
rgb_eq = xls.equalize_histogram(rgb, clip_limit=0.02, kernel_size=300)
rgb = xls.composite(scene, rescale_to=(0, 0.8), dtype="float32")
rgb_eq = xls.equalize_histogram(rgb, clip_limit=0.04, kernel_size=300)

fig, ax = plt.subplots(1, 1, figsize=(10, 6))
rgb_eq.plot.imshow(ax=ax)
Expand Down
9 changes: 8 additions & 1 deletion dev/_sources/index.rst.txt → dev/_sources/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:padding: 0 0 0 0

.. grid-item::
:columns: 12 12 12 12
:columns: 12 8 8 8

.. raw:: html

Expand All @@ -16,6 +16,13 @@

Analyze Landsat remote sensing images using xarray

.. grid-item::
:columns: 12 4 4 4

.. image:: ./_static/logo.svg
:width: 200px
:class: sd-m-auto dark-light


**xlandsat** is Python library for loading and analyzing Landsat scenes
downloaded from `USGS EarthExplorer <https://earthexplorer.usgs.gov/>`__ with
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _missing-values:

Filling missing values
======================
Fill missing values
===================

Landsat Level 2 data can sometimes contain missing values, particularly around
bright clouds with dark shadows. These pixels will have a value of
Expand All @@ -11,7 +11,8 @@ can use the values of neighboring pixels to interpolate the missing values with

Let's use our sample scene of the December 2015 eruption of `Momotombo volcano
<https://en.wikipedia.org/wiki/Momotombo>`__, Nicaragua, to demonstrate how
it's done.
it's done. The Level 2 version of this scene has several holes because of the
clouds and smoke from the volcano affecting the atmospheric correction method.

First, we'll import the required packages and load the sample scene:

Expand All @@ -32,7 +33,7 @@ the missing values don't simply show up as white:
.. jupyter-execute::

# Make the composite and add it to the scene
rgb = xls.composite(scene, rescale_to=(0.04, 0.17))
rgb = xls.composite(scene, rescale_to=(0, 0.2))

fig, ax = plt.subplots(1, 1, figsize=(10, 6))

Expand All @@ -49,7 +50,7 @@ We can fill these values with reasonable estimates using interpolation:

scene_filled = xls.interpolate_missing(scene)

rgb_filled = xls.composite(scene_filled, rescale_to=(0.04, 0.17))
rgb_filled = xls.composite(scene_filled, rescale_to=(0, 0.2))

fig, ax = plt.subplots(1, 1, figsize=(10, 6))

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ volcano <https://en.wikipedia.org/wiki/Momotombo>`__, Nicaragua.
We'll overlay the thermal band (only pixels above 320 K) on top of an RGB
composite to show the ongoing lava flow.

First, we'll import the required packages and load the sample scene:
First, we'll import the required packages:

.. jupyter-execute::

Expand All @@ -20,10 +20,18 @@ First, we'll import the required packages and load the sample scene:
import xarray as xr
import numpy as np

path = xls.datasets.fetch_momotombo()
scene = xls.load_scene(path)
# Fill the missing values due to the volcanic clouds to make it look nicer
scene = xls.interpolate_missing(scene)
Now we can load a Level 1 version of the scene to make the RGB plot (the L2
scene has a lot of issues from the atmospheric correction) and a Level 2
version to get the thermal band as surface temperature:

.. jupyter-execute::

path_l1 = xls.datasets.fetch_momotombo(level=1)
scene = xls.load_scene(path_l1)

path_l2 = xls.datasets.fetch_momotombo(level=2)
scene = scene.merge(xls.load_scene(path_l2, bands=["thermal"]))

scene

Now we can plot an RGB composite and thermal band separately to see that they
Expand All @@ -32,10 +40,9 @@ have to show:
.. jupyter-execute::

# Make the composite
rgb = xls.composite(scene, rescale_to=(0, 0.6))

# Histogram equalization for a better looking image
rgb = xls.equalize_histogram(rgb, clip_limit=0.02, kernel_size=200)
rgb = xls.composite(scene, rescale_to=(0, 0.15))
# Adjust the L1 colors to make it nicer and get rid of the blue glare
rgb = xls.adjust_l1_colors(rgb)

# Plot the RGB and thermal separately
fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(10, 12))
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Use the links below to access documentation for specific versions
* `Latest release <http://www.compgeolab.org/xlandsat/latest>`__
* `Development <http://www.compgeolab.org/xlandsat/dev>`__
(reflects the current development branch on GitHub)
* `v0.5.0 <http://www.compgeolab.org/xlandsat/v0.5.0>`__
* `v0.4.0 <http://www.compgeolab.org/xlandsat/v0.4.0>`__
* `v0.3.0 <http://www.compgeolab.org/xlandsat/v0.3.0>`__
* `v0.2.0 <http://www.compgeolab.org/xlandsat/v0.2.0>`__
Expand Down

Large diffs are not rendered by default.

73 changes: 46 additions & 27 deletions dev/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -222,7 +222,7 @@ table.modindextable td {
/* -- general body styles --------------------------------------------------- */

div.body {
min-width: 450px;
min-width: 360px;
max-width: 800px;
}

Expand All @@ -237,14 +237,8 @@ a.headerlink {
visibility: hidden;
}

a.brackets:before,
span.brackets > a:before{
content: "[";
}

a.brackets:after,
span.brackets > a:after {
content: "]";
a:visited {
color: #551A8B;
}

h1:hover > a.headerlink,
Expand Down Expand Up @@ -335,12 +329,16 @@ p.sidebar-title {
font-weight: bold;
}

nav.contents,
aside.topic,
div.admonition, div.topic, blockquote {
clear: left;
}

/* -- topics ---------------------------------------------------------------- */

nav.contents,
aside.topic,
div.topic {
border: 1px solid #ccc;
padding: 7px;
Expand Down Expand Up @@ -379,13 +377,17 @@ div.body p.centered {

div.sidebar > :last-child,
aside.sidebar > :last-child,
nav.contents > :last-child,
aside.topic > :last-child,
div.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
}

div.sidebar::after,
aside.sidebar::after,
nav.contents::after,
aside.topic::after,
div.topic::after,
div.admonition::after,
blockquote::after {
Expand Down Expand Up @@ -428,10 +430,6 @@ table.docutils td, table.docutils th {
border-bottom: 1px solid #aaa;
}

table.footnote td, table.footnote th {
border: 0 !important;
}

th {
text-align: left;
padding-right: 5px;
Expand Down Expand Up @@ -615,19 +613,26 @@ ul.simple p {
margin-bottom: 0;
}

dl.footnote > dt,
dl.citation > dt {
aside.footnote > span,
div.citation > span {
float: left;
margin-right: 0.5em;
}

dl.footnote > dd,
dl.citation > dd {
aside.footnote > span:last-of-type,
div.citation > span:last-of-type {
padding-right: 0.5em;
}
aside.footnote > p {
margin-left: 2em;
}
div.citation > p {
margin-left: 4em;
}
aside.footnote > p:last-of-type,
div.citation > p:last-of-type {
margin-bottom: 0em;
}

dl.footnote > dd:after,
dl.citation > dd:after {
aside.footnote > p:last-of-type:after,
div.citation > p:last-of-type:after {
content: "";
clear: both;
}
Expand All @@ -644,10 +649,6 @@ dl.field-list > dt {
padding-right: 5px;
}

dl.field-list > dt:after {
content: ":";
}

dl.field-list > dd {
padding-left: 0.5em;
margin-top: 0em;
Expand All @@ -673,6 +674,16 @@ dd {
margin-left: 30px;
}

.sig dd {
margin-top: 0px;
margin-bottom: 0px;
}

.sig dl {
margin-top: 0px;
margin-bottom: 0px;
}

dl > dd:last-child,
dl > dd:last-child > :last-child {
margin-bottom: 0;
Expand Down Expand Up @@ -741,6 +752,14 @@ abbr, acronym {
cursor: help;
}

.translated {
background-color: rgba(207, 255, 207, 0.2)
}

.untranslated {
background-color: rgba(255, 207, 207, 0.2)
}

/* -- code displays --------------------------------------------------------- */

pre {
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 6f41973

Please sign in to comment.