question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Altitude lookup table

See original GitHub issue

Currently, altitude for pvlib.location based algorithms defaults to zero, but if we include a low-resolution altitude lookup, we can provide better results when altitude is not specified. We can make this altitude lookup the same format as LinkeTurbidities.h5, so it wouldn’t require that much new code or any new dependencies. I was able to build an altitude map using open data aggregated by tilezen. My test H5 file is currently 13 mb using 4320x2160 resolution, uint16 altitude, and gzip compression. We are free to distribute this data, but we do need to do is add this attribution somewhere in the documentation. Would you guys be interested in this feature? Should I make a pull request?

Here is a plot of my sample altitude :

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
AdamRJensencommented, Aug 5, 2022

I think it’d be great to have the option of something like this:

pvlib.location.Location(latitude=55, longitude=10, altitude='SRTM')

and then have the location object call an API (using a function from iotools) that retrieved the elevation.

1reaction
adriessecommented, Aug 12, 2022

I think this is a nice addition. There are probably a variety of technical variations possible, for example using netcdf, but it’s also fine the way it is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

U.S. Standard Atmosphere vs. Altitude
Temperature and Pressure - Online calculator, figures and tables showing density, specific weight and thermal expansion coefficients of air at temperatures ...
Read more >
Elevation Finder - Free Map Tools
This tool can be used to find an estimate for the elevation of a point on the earth. Click/tap the map or type...
Read more >
Pressure Altitude Calculator - National Weather Service
Enter your uncorrected station pressure (not the altimeter setting):, Pressure Altitude in feet: in of mercury mm of mercury millibars (hPA)
Read more >
Properties Of The US Standard Atmosphere 1976
Alternately, you can use the supplied Atmosphere Calculator that gives you precise values for any altitude. Since nearly every introductory ...
Read more >
What is my elevation?
This site was designed to help you find the height above sea level of your current location, or any point on Earth. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found