A simple Python tool for converting geographic coordinates into MODIS (Moderate-Resolution Imaging Spectroradiometer) tile numbers.
Project description
modis_sinusoidal_tile_converter
A simple Python tool for converting geographic coordinates into MODIS (Moderate-Resolution Imaging Spectroradiometer) tile numbers.
Install
# Run in the console
pip install modis_sinusoidal_tile_converter
Usage
# Open python
python
>>> from modis_sinusoidal_tile_converter import Sinusoidal
>>> Sinusoidal.get_bounding_coordinates_of_sinusoidal_tiles(4, 24) # display bounding coordinates
(40.0, 50.0, 78.32443735993672, 108.90066788022885)
>>> Sinusoidal.gc2rc(50.0, 93.34342961162473)
(6671703.118599138, 5559752.598832616)
>>> Sinusoidal.rc2gc(6671703.118599138, 5559752.598832616)
(50.0, 93.34342961162473)
>>> Sinusoidal.gc2tcnum(50.0, 93.34342961162473)
(4, 24, -0.5, -0.5000000000008527)
>>> Sinusoidal.tcnum2gc(4, 24, -0.5, -0.5)
(50.0, 93.34342961162473)
Resources
MODIS_Sinusoidal_Tile_Grid_Corner_Coordinates.csv
How to get this file?
## the pattern “**” will match any files and zero or more directories,
# subdirectories and symbolic links to directories
python scripts\get_corner_coordinates_of_modis_sinusoidal_tile.py **/*.hdf
References
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
Built Distribution
File details
Details for the file modis_sinusoidal_tile_converter-0.0.4.tar.gz
.
File metadata
- Download URL: modis_sinusoidal_tile_converter-0.0.4.tar.gz
- Upload date:
- Size: 51.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7490755e1b4fce1b8c4cd1614e015cfd7183c88e50af85a3ee63f7ba8c1cee39 |
|
MD5 | 2206b69d2e1fa1ce2a611cdab2826957 |
|
BLAKE2b-256 | 87f8c22e5c2415041b23a7540ca02b99a46b35b7b9355c4c519e9fade7a79799 |
Provenance
File details
Details for the file modis_sinusoidal_tile_converter-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: modis_sinusoidal_tile_converter-0.0.4-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e10b00fcc5db34acbdc9af110d7cb9f25dcd6826895d2e64b25d55e313d813 |
|
MD5 | fd4bdf37af695eea5329869e3a3b2355 |
|
BLAKE2b-256 | eeecb2e89133f215e83a9dfcd48aa9bd39056f5e4c22cf4ee0fbca528b5d6e44 |