torchgeo icon indicating copy to clipboard operation
torchgeo copied to clipboard

Plot Method Added to Western USA Live Fuel Moisture Dataset

Open amrirasyidi opened this issue 7 months ago • 2 comments

  • 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'
)

image

Single variable defined

f = data.plot(
    sample,
    variables_to_plot=['slope'],
    show_titles=True, suptitle='test suptitle'
)

image

Multiple variables defined

f = data.plot(
    sample,
    variables_to_plot=[
        'slope',
        'green',
        'swir'
    ],
    show_titles=True, suptitle='test suptitle'
)

image

amrirasyidi avatar May 02 '25 10:05 amrirasyidi

My vote would be to always plot all variables instead of asking which variables to plot.

adamjstewart avatar May 02 '25 11:05 adamjstewart

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.

adamjstewart avatar May 02 '25 13:05 adamjstewart