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

Add plot method to base chesapeake #417

Merged
merged 6 commits into from
Feb 21, 2022
Merged

Conversation

nilsleh
Copy link
Collaborator

@nilsleh nilsleh commented Feb 20, 2022

This PR adds a plot method to the Chesapeake dataset baseclass to address #253. I was unable to run pytest, because the currently generated fake data cannot be unzipped:
NotImplementedError: That compression method is not supported

should I change the archive method in the base data.py class to the shutil.make_archive() used in other data.py files?

@nilsleh nilsleh marked this pull request as draft February 20, 2022 15:37
@github-actions github-actions bot added datasets Geospatial or benchmark datasets testing Continuous integration testing labels Feb 20, 2022
@adamjstewart
Copy link
Collaborator

This is done on purpose. Chesapeake data uses the proprietary deflate64 compression algorithm, so we want to use the same compression for the fake data. If you install zipfile-deflate64 you should be able to decompress these files.

@nilsleh nilsleh marked this pull request as ready for review February 20, 2022 17:42
@calebrob6
Copy link
Member

Chesapeake7 and 13 have their own cmaps, which plot should use. I can fill that in though.

@calebrob6
Copy link
Member

Here's an image from the same crop of both datasets that show how the classes differ:

Chesapeake 13
image

Chesapeake 7
image

@calebrob6
Copy link
Member

I did a few other things:

@adamjstewart
Copy link
Collaborator

I have an alternative fix for #419 in #420 that might be cleaner.

@adamjstewart
Copy link
Collaborator

Also, the fix should be in a separate PR, otherwise we can't put it in 0.2.1.

@adamjstewart
Copy link
Collaborator

The cmap fix should be in a separate PR so we can backport it to 0.2.1.

@calebrob6 calebrob6 merged commit 5e54c43 into microsoft:main Feb 21, 2022
@nilsleh nilsleh deleted the plotChesapeake branch February 21, 2022 13:32
@adamjstewart adamjstewart mentioned this pull request Jul 11, 2022
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* plot method to base chesapeake

* fix typo

* Add plotting to Chesapeake datasets

* isort, yousort, weallsort

* putting back the globs

* putting back the geo.py change

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
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.

None yet

3 participants