Skip to main content

Netcdf Converter

Conversion service for netcdf4 files to cloud optimized geotiff. This repository contains the source code, unit test suite, and Jupyter notebook documentation.

Directory structure

📁
├── .📁 github
├── 📁 cmr
├── 📁 bin
├── 📁 docker
├── 📁 docs
├── 📁 net2cog
├── 📁 tests
├── CHANGELOG.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── poetry.lock
├── pyproject.toml
└── run_tests.sh
  • .github - Contains CI/CD workflows and pull request template.
  • cmr - Contains files for updating the service's CMR UMM-S profile
  • bin - A directory containing utility scripts to build the service and test images. A script to extract the release notes for the most recent version, as contained in CHANGELOG.md is also in this directory.
  • docker - A directory containing the Dockerfiles for the service and test images. It also contains service_version.txt, which contains the semantic version number of the library and service image. Update this file with a new version to trigger a release.
  • docs - A directory containing NetCDF Converter Service documentation.
  • example - Directory containing Jupyter notebook documentation
  • net2cog - The directory containing Python source code for the net2cog Service. netcdf_convert_harmony.py contains the NetcdfConverterService class that is invoked by calls to the service.
  • tests - Contains the pytest test suite.
  • CHANGELOG.md - Contains a record of changes applied to each new release of the net2cog Service.
  • CONTRIBUTING.md - Instructions on how to contribute to the repository.
  • LICENSE - Required for distribution under NASA open-source approval. Details conditions for use, reproduction and distribution.
  • README.md - This file, containing guidance on developing the library and service.
  • poetry.lock - Python's Poetry dependency management system. This file plays a crucial role in ensuring reproducible and consistent de.
  • pyproject.toml - Contains a list of Python packages needed to run the service.
  • run_tests.sh - Script to manage Python environment, install dependencies, and run tests. The script can be used to build and run pytest both locally and within Docker container.

Developer Notes

Local development:

Local testing of service functionality is best achieved via a local instance of Harmony. Please see instructions there regarding creation of a local Harmony-In-A-Box instance.

Test in Docker:

This service utilises the Python pytest package to perform unit tests on classes and functions in the service. After local development is complete, and test have been updated, they can be run via:

$ ./bin/build-image
$ ./bin/build-test
$ ./bin/run-test

The run_tests.sh script will also generate a coverage report, rendered in HTML, and scan the code with pylint.

The unittest suite is run automatically via GitHub Actions as part of a GitHub "workflow". These workflows are defined in the .github/workflows directory.

Test locally:

$ ./run_tests.sh

The run_tests.sh script will also generate a coverage report, rendered in HTML, and scan the code with pylint.

Metadata

Release files for net2cog 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for net2cog 1.4.1
File Size Uploaded Provenance Actions
net2cog-1.4.1.tar.gz 18.8 kB With provenance Details for net2cog-1.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for net2cog 1.4.1
File Interpreter ABI Platform Actions
net2cog-1.4.1-py3-none-any.whl Python 3 none any Details for net2cog-1.4.1-py3-none-any.whl

Total release size: 38.8 kB

Release files / net2cog-1.4.1.tar.gz

Download URL net2cog-1.4.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4f6482420c06fb14ae8740d386572e7b37a95fc70fa223151ca2a85905fd2588
BLAKE2b-256 checksum
How to use checksums
35a433e0b92e5e0be64bf823bd99c147437b1e4514ce3a2c0820a0035eaa0890
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / net2cog-1.4.1-py3-none-any.whl

Download URL net2cog-1.4.1-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
241d4936e1de79d6280d4c5edab55865d72235b2c83ad4c7db4df942b9d978de
BLAKE2b-256 checksum
How to use checksums
a48ca0045c94252bdcdd718b612dd507c985ae4f972894c9829258cdb3989dac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for net2cog 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for net2cog-1.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page