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
HDF4andnetCDF
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.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modisconverter-0.2.0.tar.gz.
File metadata
- Download URL: modisconverter-0.2.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cd5b56ea40be080ec125c582777cede81746428d8b90de1cb60df36151b20a1
|
|
| MD5 |
36b0030846612638bf786a7f87e45ea7
|
|
| BLAKE2b-256 |
77261831d32d506f8281b0e004c32c26ab72b4bfaf83bf9fe24274e8a6ae761d
|
File details
Details for the file modisconverter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: modisconverter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c002d982e0590d6d396bcac1faa892e2d18838465083b9a800b29076d5cfe6d9
|
|
| MD5 |
b69521efe7a457f21a8e537ba10c792f
|
|
| BLAKE2b-256 |
a72f98d4178c02849b85ddf82c8095b0043c763a9efc96408dba2076aae7c972
|