Skip to content

Plot Method Added to Western USA Live Fuel Moisture Dataset #2769

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

amrirasyidi
Copy link
Contributor

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

@github-actions github-actions bot added datasets Geospatial or benchmark datasets testing Continuous integration testing labels May 2, 2025
@adamjstewart
Copy link
Collaborator

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

@adamjstewart adamjstewart added this to the 0.8.0 milestone May 2, 2025
@adamjstewart
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasets Geospatial or benchmark datasets testing Continuous integration testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants