Skip to main content

FM15_transform

FM15_transform provides functionality to transform raw FM15 (METAR) TAC messages into their corresponding bufr4 translations as well as extraction of geojson records of the individual observations formatted for use by a WIS2 node.

Installation

Requirements

Dependencies

Dependencies are listed in requirements.txt. Dependencies are automatically installed during FM15_transform installation.

pip

Install latest stable version from PyPI.

pip3 install FM15_transform

UDUNITS-2 Installation and Configuration

UDUNITS-2 is a C library that provides support for units of physical quantities

If the UDUNITS-2 shared library file (libudunits2.so.0 on GNU/Linux or libudunits2.0.dylibfile on MacOS) is in a non-standard location then its directory path should be added to the LD_LIBRARY_PATH environment variable. It may also be necessary to specify the location (directory path and file name) of the udunits2.xml file in the UDUNITS2_XML_PATH environment variable, although the default location is usually correct. For example, export UDUNITS2_XML_PATH=/home/user/anaconda3/share/udunits/udunits2.xml.

If you get an error that looks like assert(0 == _ut_unmap_symbol_to_unit(_ut_system, _c_char_p(b'Sv'), _UT_ASCII)) then setting the UDUNITS2_XML_PATH environment variable is the likely solution.

UDUNITS is available via conda with:

$ conda install -c conda-forge udunits2>=2.2.25

Alternatively, you can download and install UDUNITS directly from its source distribution following the documentation outlined on the unidata website

Environment variable configuration

You will need to add an environment variable to your system called ECCODES_DEFINITION_PATH that points to the definitions folder inside ecCodes. Once ecCodes is installed on your system, you can find this directory using the command:

find . -samefile */share/eccodes/definitions

If you encounter a warning from ecmwflibs about ignoring your specified environment variable, instead use the variable name ECMWFLIBS_ECCODES_DEFINITION_PATH

Transform FM15 files from the command line

#   basic cli command to transform TAC file of metar(s) and print resulting geojson records
#   both month and year as int values
transform-file example_metars.txt month year

Releasing

#   uploading to PyPI
#   make sure to update version number in pyproject.toml using vim or another IDE
rm -fr build dist *.egg-info
python3 -m build
twine upload dist/*

Contact

Metadata

Release files for FM15-transform 0.0.19

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

Source distribution (sdist)

Source distribution for FM15-transform 0.0.19
File Size Uploaded
fm15_transform-0.0.19.tar.gz 220.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FM15-transform 0.0.19
File Interpreter ABI Platform
FM15_transform-0.0.19-py3-none-any.whl Python 3 none any Details

Total release size: 444.1 kB

Release files / fm15_transform-0.0.19.tar.gz

Download URL fm15_transform-0.0.19.tar.gz
Size 220.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb399cffc4595f191ff5c5acaaf2b0bc334a04d26e94ef17435facec7609ecbb
BLAKE2b-256 checksum
How to use checksums
495892ff838d546d017db1977836e711881778bd87c80c300a4866ec9bf3c87e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / FM15_transform-0.0.19-py3-none-any.whl

Download URL FM15_transform-0.0.19-py3-none-any.whl
Size 223.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5462b5263dc1e45cf3dee33434829bb00ba8ad3b5924e8662edaee7856e138af
BLAKE2b-256 checksum
How to use checksums
0d2d5d162d8f3eadfc8122865d8f9bae18e5e04e65998080cda85b4c026fee1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.0.19 This release

2 release files

0.0.18

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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