未提供项目说明

python-srtm的Python项目详细描述


NASA SRTM高度数据的Python解析

为SRTM .hgt.hgt.zip文件提供API。在

需要Python3.8,可以与Python3.6&3.7一起使用。在

安装

pip install python-srtm

export SRTM1_DIR=/path/to/srtm1/
export SRTM3_DIR=/path/to/srtm3/

使用

您可以访问SRTM1或SRTM3数据。SRTM 1,例如:

^{pr2}$

或SRTM3:

# SRTM3 - 90m resolution>>>fromsrtmimportSrtm3HeightMapCollection>>>srtm3_data=Srtm3HeightMapCollection()>>>srtm3_data.get_altitude(latitude=40.123,longitude=-7.456)608>>>Srtm3HeightMapCollection().get_elevation_profile(40.123,-7.456,40.129,-7.460)[626,616,585,593,577,548,528,514]

分析

importcProfilecProfile.run('function_to_profile()',filename='output.cprof')
brew install qcachegrind
pip install pyprof2calltree
pyprof2calltree -k -i /pythonprofiling/profiler/first_iteration.cprof

释放过程

内部参考:

# Run the tests
pytest

# Update the setup.py
dephell convert
black setup.py

# Ensure poetry.lock is up to date
poetry lock

export VERSION="VERSION HERE"

# Version bump
poetry version $VERSION


# Commit
git add .
git commit -m "Releasing version $VERSION"

# Tagging and branching
git tag "v$VERSION"
git branch "v$VERSION"
git push origin \
    refs/tags/"v$VERSION" \
    refs/heads/"v$VERSION" \
    master

poetry publish --build

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
用于读取OBS写入的java打开文件   java使用XFire通过ssl使用Web服务   java如何查看幸存者空间中的对象   不使用ActionListener从按钮执行java代码   java仅当用户执行某个操作时,如何清除应用程序的历史记录?   json无法反序列化'java'的实例。lang.Long`out-of-START\u对象标记;在弹簧靴柱上   JavaPOJO到OpenApi定义   java时间戳格式不显示不同的值   java Android:如何从片段切换到主要活动?   用于步进计数器/健身应用程序的java循环进度条   java Log4j更改特定记录器实例的记录器级别   JAVA中实现连接的数据结构   java Mockito静态函数mock   未找到java辅助技术:org。侏儒。可访问性。阿特克拉珀   java仅当列表中没有类似项时才向ArrayList添加项   java如何使用docx4j在word中添加合并字段?