8000 Lookup altitude by nicomt · Pull Request #1518 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Lookup altitude #1518

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

Merged
merged 17 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updating altitude lookup map
Using new map so is reproducible with script
https://gist.github.com/nicomt/d2c5f08a8ee3500550be42d8dbee6c1d
  • Loading branch information
nicomt committed Aug 18, 2022
commit db728b8aba32dd90611c1d0f88bbfbead495ea04
Binary file modified pvlib/data/Altitude.h5
Binary file not shown.
4 changes: 2 additions & 2 deletions pvlib/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,6 @@ def lookup_altitude(latitude, longitude, filepath=None):
return 0
# Altitude is encoded in 35 meter steps from -2364 meters to 6526 meters
# There are 0-254 possible altitudes, with 255 reserved for nodata.
alt *= 35
alt -= 2364
alt *= 28
alt -= 450
return int(alt)
0