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

Allow additional drivers to the geotiff writer #47

Merged
merged 2 commits into from
Nov 16, 2022
Merged

Conversation

tpoisot
Copy link
Member

@tpoisot tpoisot commented Nov 15, 2022

New syntax to read geotiffs:

path = ".../file.tif"
L = SimpleSDMPredictor(path; bandnumber=2, left=-100., right=10.4, top=0.1, bottom=-12.0)

New syntax to write geotiffs:

SpeciesDistributionToolkit.save(path, L; driver="COG")

@tpoisot
Copy link
Member Author

tpoisot commented Nov 15, 2022

This still needs a little warning (error?) if the file is not a tiff. I'll expand to NetCDF when the first dataset that requires it lands (probably #36).

@gottacatchenall
Copy link
Member

We might want to add another keyword argument for the compression type as well, currently it's using LZW, and @glaroc mentioned a particular best method at some point but I don't remember what it was

Copy link
Member

@gottacatchenall gottacatchenall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tpoisot tpoisot merged commit a3d1cd6 into main Nov 16, 2022
@tpoisot tpoisot deleted the feature/geotiff-writer branch November 16, 2022 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants