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.
Metadata
Release files for modisconverter 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| modisconverter-0.2.0.tar.gz | 18.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modisconverter-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.8 kB
Release files / modisconverter-0.2.0.tar.gz
| Download URL | modisconverter-0.2.0.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cd5b56ea40be080ec125c582777cede81746428d8b90de1cb60df36151b20a1
|
|
BLAKE2b-256 checksum How to use checksums |
77261831d32d506f8281b0e004c32c26ab72b4bfaf83bf9fe24274e8a6ae761d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / modisconverter-0.2.0-py3-none-any.whl
| Download URL | modisconverter-0.2.0-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c002d982e0590d6d396bcac1faa892e2d18838465083b9a800b29076d5cfe6d9
|
|
BLAKE2b-256 checksum How to use checksums |
a72f98d4178c02849b85ddf82c8095b0043c763a9efc96408dba2076aae7c972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|