help download modis files with token and muti threading processing
Project description
此项目主要是更具经纬度查询MCD15文件的图幅号和位置
快速开始
from MCDViwer.FoundPos import FD,point
if __name__ == '__main__':
# 初始化查询对象
fd = FD()
# 查询单个点
answer = fd.found(115, 33)
# 查询多个点
answers = fd.founds([[115, 33], [105, 43], [99, 47.12]])
# 查看结果
ans = answer[0]
print(ans)
运行结果
图幅编号:h27v05
图上行号:1547
图上列号:1680
实际误差:0.0015335083
图上经度:114.99847
图上纬度:33.0
查询经度:115
查询纬度:33
API使用
# 初始化查询对象
fd = FD(distance=0.003391)
# distance主要是判断得到的结果是否符合要求,默认给出的目标坐标和原始坐标的曼哈顿距离为0.003391
# 查询单个经纬度得到Point对象
# 防止得到多个结果返回为一个列表
answer = fd.found(115, 33)
point=answer[0]
# point属性
"""
hv:第几副图像
row:行号
col:列号
dis:曼哈顿距离
piclon:hdf图上经度
piclat:hdf图上纬度
lon:查询经度
lat:查询纬度
"""
print(point.hv)
print(point.row)
print(point.col)
print(point.distance)
print(point.piclon)
print(point.piclat)
print(point.lon)
print(point.lat)
# 查询多个点
answers = fd.founds([[115, 33], [105, 43], [99, 47.12]])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MCD15Viwer-1.0.tar.gz
(5.1 kB
view hashes)