用于风云卫星数据的经纬度和坐标互转
Project description
经纬度行列号转换说明
- latlon_and_rowcol
- [说明]
- [调用方式]
输入row和col得到经纬度:get_latlon(row,col,res,sat)
反查;输入经纬度得到row和col:get_rowcol(lat,lon,res,sat)
说明
CONFIG.yml
存放的yml是FY4A/FY4B成像仪标称上行列号和经纬度的互相转换公式的参数说明,其中 ·4A支持500m、1000m、2000m、4000m分辨率 ·4B支持250m、500m、1000m、2000m、4000m分辨率
main.py
程序入口 main.py
check_range.py
检查行列号的范围 检查经纬度的范围
calcu_row_lat.py
根据输入行列号,计算得到经纬度的公式 根据输入经纬度,计算得到行列号的公式
调用方式
1.运行python main.py启动服务
2.输入:
(1)行列号 to 经纬度 get_latlon(row,col,res,sat)
"col": 列
"row": 行
"res": 分辨率
"sat": 卫星
(2)经纬度 to 行列号 get_rowcol(lat,lon,res,sat)
"lat": 纬度
"lon": 经度
"res": 分辨率
"sat": 卫星
3.输出:
(1)行列号 to 经纬度
"latitude": 纬度
"longitude": 经度
(2)经纬度 to 行列号
"column": 列
"row": 行
示例
根据输入行列号,计算得到经纬度
"row": 621
"col": 2764
"res": 2000
"sat": FY4A
get_latlon(621, 2764, 2000, 'FY4A')
输出: { "latitude": 45.12023588, "longitude": 102.7335505 }
根据输入经纬度,计算得到行列号
"lat": 30,
"lon": 156,
"res": 2000,
"sat": "B"
get_rowcol(30,156,2000,'FY4B')\
输出: { "column": 3788, "row": 1223 }
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
File details
Details for the file latlon_and_rowcol-0.1.1.tar.gz.
File metadata
- Download URL: latlon_and_rowcol-0.1.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11203cd689eadbf2cb889e0617dce2c28996c6765a00aab5a757f2c5707855b0
|
|
| MD5 |
c0aaf1dc4314a4378b01638b98b3c417
|
|
| BLAKE2b-256 |
20a942264cb51a3099f53f7482978c5985f398f26b51831d2639e2c89b42f031
|