Skip to main content
https://zenodo.org/badge/DOI/10.5281/zenodo.1163385.svg https://travis-ci.org/kinow/pccora.svg?branch=master https://coveralls.io/repos/github/kinow/pccora/badge.svg?branch=master

PC-CORA parser for Python. Supports the format described at https://badc.nerc.ac.uk/data/ukmo-rad-hires/pc-coradata.html (accessed at 2015-12-05).

This format is used for radiosonde data.

A radiosonde (Sonde is French and German for probe) is a battery-powered telemetry instrument package carried into the atmosphere usually by a weather balloon that measures various atmospheric parameters and transmits them by radio to a ground receiver. (Wikipedia)

This format is produced by old Vaisala equipments. Newer data is probably available in the NetCDF.

History

I was asked by a co-worker to look at some Python code with a PC-CORA parser. This co-worker also needed further analysis and processing, involving some data being created as CSV, netCDF, or plotted.

I decided to write a module for PC-CORA inspired by the original script, but using Python3, OO, and packaging as a Python package to be distributed to the PYPI.

This way we could use it in scripts, or other internal applications. And it would also be easier for others to find it and re-use.

The code in this repository was used on a Doctoral Thesis published in 2018, about radiosonde, GCOS, radio occultation, and weather prediction.

Example

>>> from pccora import PCCORAParser
>>> pccora_parser = PCCORAParser()
>>> pccora_parser.parse_file('./123456789.EDT')
>>> print(pccora_parser.get_header())
>>> print(pccora_parser.get_identification())
>>> print(pccora_parser.get_data())

Obtaining Data

There are datasets available at the CEDA website (Centre for Environmental Data Archival), however, access is restricted.

NOAA’s ESRL (Earth System Research Laboratory) has an FTP server with some data in the the old PC-CORA sounding data format. Just search for FTP for instructions on how to access the Physical Sciences Division FTP server. Some valid files can be found at /psd3/cruises/AERO_1999/RHB/balloon/Raw (accessed 2016-01-17).

Requirements

Python 3.6 or superior, and the construct library are the minimum requirements.

Installation

pip install pccora

Or, to use the bleeding edge version, git clone this repository, and have a look at the scripts folders for an example how to use the module from within a local folder. You may have to uninstall the pip module first.

python setup.py install

The PYPI URL is https://pypi.python.org/pypi/pccora.

License

Licensed under the MIT License.

Metadata

Release files for pccora 0.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 pccora 0.3
File Size Uploaded
pccora-0.3.tar.gz 8.5 kB Details

Release files / pccora-0.3.tar.gz

Download URL pccora-0.3.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
09a834e6ab3181687271aa9b460ff5499f24ef719a0ef8406eb96da9f3edc609
BLAKE2b-256 checksum
How to use checksums
7f510aad04d2c185ba5a802cdc814471408651a94fd11c24da95fc9690afdcbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

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