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.3.tar.gz (5.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: latlon_and_rowcol-0.1.3.tar.gz
  • Upload date:
  • Size: 5.0 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.3.tar.gz
Algorithm Hash digest
SHA256 4cbb8734bbc0539f8921b97c4cd878f16aa0b2e69833278dcbc29419f5ed7aa1
MD5 3d0cd7555193c200f9bbbd221ffd3063
BLAKE2b-256 556440d50a2fef52fba90253b9fe5a993ee5a42f569416455c14cb0a2e299d99

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