Skip to main content

用于风云卫星数据的经纬度和坐标互转

Project description

经纬度行列号转换说明

输入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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latlon_and_rowcol-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file latlon_and_rowcol-0.1.2.tar.gz.

File metadata

  • Download URL: latlon_and_rowcol-0.1.2.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

Hashes for latlon_and_rowcol-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b5bb7fbc6faa5b1aebaf14e0d230d46219f08f1452124686eb3dec1ac2ea88d5
MD5 029b308151234d1202b8c17ad8a5a064
BLAKE2b-256 4920010b713d7ada1ca28611bee18f398d0365bcf4b6fd95af9ef44265320e08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page