Skip to main content

A library for converting MODIS data files

Project description

modisconverter

modisconverter is a Python package that converts MODIS data from HDF4 to NetCDF4 file format.

Prequisites

  • Python >= 3.9
  • GDAL >= 3.1.2, with supported file formats HDF4 and netCDF

Installation

This package is available on PyPI and can be installed with pip.

Package install depends on having a Python GDAL package that matches the version of the underlying GDAL installation. It also requires the rasterio package to be built from source.

$ pip install GDAL==<installed-version-number> --no-binary rasterio modisconverter

e.g.

$ pip install GDAL==3.6.3 --no-binary rasterio modisconverter

You can find your installed GDAL version by using the gdal-config binary:

$ gdal-config --version

Environment Considerations

It's recommended to install the package in a virtual environment. Otherwise, if your machine can run Docker containers, installing the package in one provides natural isolation.

For potential Docker images, you could consider using one of the official GDAL images from DockerHub, which contain a GDAL and Python installation. For instance, the Ubuntu-based image ghcr.io/osgeo/gdal:ubuntu-full-3.6.3. Note that the pip package manager may not be installed in such images.

Usage

from modisconverter import convert_file

src = 'example-modis.hdf'
dst = 'example-modis.nc'
convert_file(src, dst)

Documentation

Listed below are various documents pertaining to this project.

  • Changelog - Information on releases.
  • Usage - Detailed usage of the library.

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

modisconverter-0.1.1.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

modisconverter-0.1.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file modisconverter-0.1.1.tar.gz.

File metadata

  • Download URL: modisconverter-0.1.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for modisconverter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f357fcbc8fd950927fc85c79b63555b219e8485e0929a86816bfbb3265b6cc7a
MD5 7b2c0881bab9197dc36cb5c2201e7987
BLAKE2b-256 cce32c65faa3a24f6e3cdb7627a3996fa86cc810ae5ab63303042df9745c6e1b

See more details on using hashes here.

File details

Details for the file modisconverter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for modisconverter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51e72db6918262a84d8784d2b124ca2280b3b86d21ed6f4a7527b4d5f5deb6ed
MD5 5903b4175f08fbde3f90e25f11736bb8
BLAKE2b-256 f4cd5d8f73c5d8d288bc9b3823c094c580c12997130d4c5812c9e75b3fd900f4

See more details on using hashes here.

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