Skip to main content

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

modis_sinusoidal_tile_converter-0.0.4.tar.gz (51.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file modis_sinusoidal_tile_converter-0.0.4.tar.gz.

File metadata

File hashes

Hashes for modis_sinusoidal_tile_converter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7490755e1b4fce1b8c4cd1614e015cfd7183c88e50af85a3ee63f7ba8c1cee39
MD5 2206b69d2e1fa1ce2a611cdab2826957
BLAKE2b-256 87f8c22e5c2415041b23a7540ca02b99a46b35b7b9355c4c519e9fade7a79799

See more details on using hashes here.

Provenance

File details

Details for the file modis_sinusoidal_tile_converter-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for modis_sinusoidal_tile_converter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 58e10b00fcc5db34acbdc9af110d7cb9f25dcd6826895d2e64b25d55e313d813
MD5 fd4bdf37af695eea5329869e3a3b2355
BLAKE2b-256 eeecb2e89133f215e83a9dfcd48aa9bd39056f5e4c22cf4ee0fbca528b5d6e44

See more details on using hashes here.

Provenance

Supported by

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