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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file MCD15Viwer-1.0.tar.gz.
File metadata
- Download URL: MCD15Viwer-1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.8rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eadd7fa30e598c5bdf8a6ebc2052725f62af254c09beee36544656b12e7f6ae4
|
|
| MD5 |
349bd009c456056fb18375594108baea
|
|
| BLAKE2b-256 |
3ce59fb1f1608b1f671c9e3fd100c0770b67d03831297712e829c107ae7c4c53
|
File details
Details for the file MCD15Viwer-1.0-py3-none-any.whl.
File metadata
- Download URL: MCD15Viwer-1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.8rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e5679a0193be90ca193837bb295ad7599d61ca956d66dcae051888819f32265
|
|
| MD5 |
88199b7f38161ac2a7e4c4e1a116558c
|
|
| BLAKE2b-256 |
a347a86e695dcdfa3e9721bfbbb0b8340c7a839965f66336cdf4372b2386af2e
|