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

RED-E Tech Potential Tool #24

Merged
merged 7 commits into from
Feb 25, 2020
Merged

RED-E Tech Potential Tool #24

merged 7 commits into from
Feb 25, 2020

Conversation

MRossol
Copy link
Collaborator

@MRossol MRossol commented Dec 11, 2019

I think this should do it, stupid simple indeed.

Need some example data to test on...

@MRossol
Copy link
Collaborator Author

MRossol commented Feb 21, 2020

@grantbuster tests added
@EvanRosenliebNREL and @Ricardo-C-Oliveira Code is complete and currently outputs JUST the generation array if you run TechPotential.run_generation(*args, **kwargs)

I recommended to Evan that you store the rasterio profile in memory when you spin up the containers.

You can extract it from the .h5 file with the following:

from reV.handlers.exclusions import ExclusionLayers

with ExclusionLayers(h5_file) as exc:
    profile = exc.profile

You can then write the geotiffs with the following:

from reVX.utilities.exclusions_converter import ExclusionsConverter

ExclusionsConverter.__write_geotiff(geotiff_path, profile, arr)

grantbuster
grantbuster previously approved these changes Feb 25, 2020
Copy link
Member

@grantbuster grantbuster left a comment

Choose a reason for hiding this comment

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

Cursory review.... Looks good though.

@grantbuster grantbuster self-requested a review February 25, 2020 18:17
@MRossol MRossol merged commit e77ae16 into master Feb 25, 2020
@MRossol MRossol deleted the rede_tech_pot branch February 25, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants