torchgeo
torchgeo copied to clipboard
Plot Method Added to Western USA Live Fuel Moisture Dataset
- Relevant issue: https://github.com/microsoft/torchgeo/issues/2377
- Added plot method to Western USA Live Fuel Moisture dataset.
- Added test case for the plot method
This is how the plot looks like
Default plot
from torchgeo.datasets import WesternUSALiveFuelMoisture
data = WesternUSALiveFuelMoisture('path/to/data')
sample = data[0]
f = data.plot(
sample,
show_titles=True, suptitle='test suptitle'
)
Single variable defined
f = data.plot(
sample,
variables_to_plot=['slope'],
show_titles=True, suptitle='test suptitle'
)
Multiple variables defined
f = data.plot(
sample,
variables_to_plot=[
'slope',
'green',
'swir'
],
show_titles=True, suptitle='test suptitle'
)
My vote would be to always plot all variables instead of asking which variables to plot.
Hmm, maybe there are too many variables to always plot all of them. Unless we can somehow group plots together. What's the difference between red, vv_red, and vh_red? Maybe we can only plot RGB instead of all possible color combinations? This one might require some creativity to actually be a useful plot.