Skip to main content

Ginput: GGG meteorology and a priori VMR preprocessor

Documentation status

Copyright notice

Copyright (c) 2022, by the California Institute of Technology. ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged. Any commercial use must be negotiated with the Office of Technology Transfer at the California Institute of Technology.

This software may be subject to U.S. export control laws. By accepting this software, the user agrees to comply with all applicable U.S. export laws and regulations. User has the responsibility to obtain export licenses, or other export authority as may be required before exporting such information to foreign countries or providing access to foreign persons.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Caltech nor its operating division, the Jet Propulsion Laboratory, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Quickstart

  • Make sure you have a Python installation with the conda package manager on your system. We currently recommend miniforge.
  • Run make install
  • Run ./run_ginput.py --help to see available subcommands
  • For more detailed help, try man ginput after running make install. (If that doesn't work, try man man/build/man/ginput.1 from this directory or add man/build/man/ to your MANPATH).

For more install options, run make help.

Is it working correctly?

To check whether your installation is working, there are example .mod, .vmr, .map, and .map.nc files in ginput/testing/test_input_data that have been generated from both GEOS-FPIT and GEOS-FP. While TCCON uses GEOS-FPIT, it requires a data subscription, so you may prefer to use GEOS-FP.

To verify you have installed and are using ginput correctly, we recommend you generate at least the .mod and .vmr files for Lamont (site code "oc") on 1 Jan 2018 and compare against the pregenerated test files. Differences should be less than ~1%.

If you have GEOS FP-IT files available on your system, the script ginput/testing/test_input_data/geosfp-it/link_geos_fpit_files.sh will help link them to the correct location in this repo to run the automatic test case. cd to ginput/testing/test_input_data/geosfp-it/ and run ./link_geos_fpit_files.sh --help to see its usage. This requires the following files:

  • The 8 model level assimilated quantity files for 2018-01-01 (GEOS.fpit.asm.inst3_3d_asm_Nv.GEOS5124.20180101*.nc4)
  • The 8 2D assimilated quantity files for 2018-01-01 (GEOS.fpit.asm.inst3_2d_asm_Nx.GEOS5124.20180101*.nc4)
  • The 8 model level chemistry files for 2018-01-01 (GEOS.fpit.asm.inst3_3d_chm_Nv.GEOS5124.20180101*.nc4)

To run the test, the easiest way is to activate the conda environment that ginput was installed in (ginput-auto-default if installed with make install) and run make test. This will take several minutes to run. If tests fail because the output .mod/.vmr/.map files do not match the expected, plots will be generated in ginput/testing/plots for you to inspect the differences and verify that they are reasonable.

Documentation

Man pages are created in man/build/man/ during installation and can be accessed with e.g. man man/build/man/ginput.1. These may also be added to your MANPATH so that e.g. man ginput works, but this is system dependent. Full documentation is provided at https://ginput.readthedocs.io/en/latest/.

Some additional documentation is provided on the TCCON wiki:

These will be folded into the readthedocs instance in the future.

Terms of use

Ginput is licensed under the Apache license as of 8 Sept 2022. Prior to this date, it was licensed under the LGPL license. If you download this software after 8 Sept 2022, you agree to abide by the terms of the Apache license. The full legal terms are contained in LICENSE.txt file. For a short summary, please see here. If you have any questions about use, please contact us (contact information is below).

In addition to the Apache license, you should cite the ginput paper listed in the CITATION.cff file in any publications resulting from the use of ginput. Please also consider contacting us to let us know you are using ginput!

Python support

Only Python 3 is supported. Python 2 reached end-of-life on 1 Jan 2020. We also use the conda package manager in the install script, which is provided by, e.g. miniforge.

Contact

For assistance with ginput, contact Josh Laughner.

Metadata

Release files for ginput 1.6.3

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

Source distribution (sdist)

Source distribution for ginput 1.6.3
File Size Uploaded
ginput-1.6.3.tar.gz 14.2 MB Details

Built distribution (wheel)

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

Total release size: 28.7 MB

Release files / ginput-1.6.3.tar.gz

Download URL ginput-1.6.3.tar.gz
Size 14.2 MB
Tags Source
SHA-256 checksum
How to use checksums
656b946f3d9007cbc8a46b306974b0ca231bd117064dd37c4433ab1c3d236f8a
BLAKE2b-256 checksum
How to use checksums
88a95981a57a46d57d3709105c01f2be098fb8621cb2ce8383670faf0f5486a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 12, 2026.

Transparency log

Release files / ginput-1.6.3-py3-none-any.whl

Download URL ginput-1.6.3-py3-none-any.whl
Size 14.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
27afc1823e3379b92571bda90b14eb4bcb8e41cd6851fe82228b5b1bd27b6f4e
BLAKE2b-256 checksum
How to use checksums
4c84deb2860a481a847a2fb8699674382ecc166d4172813089c44f93a0b8a7ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.6.3 This release

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

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