Skip to main content

A package for tuning quality control parameters in titanlib

Project description

Titantuner

The titantuner is a web interface for tuning the many parameters of quality control methods in titanlib.

Example of titantuner

Installation

Titantuner is available on pypi, and can be installed as follows:

pip3 install titantuner

To install from source, run the following in the root of this repository:

pip3 install .

Running titantuner

titantuner [-p port]

This starts a webserver locally on your computer, making the titantuner available in the browser. Use -p to speicy the port, otherwise it will appear on port 8081. Some sample data from Norwegian Synop stations are provided by default.

Select the test you want to perform (SCT, Isolation, Buddy, Buddy event, SCT resistant, SCT dual, First Guess), and set the test parameters in the UI. Then click on the update button (below the parameters) to see the map showing the results of the tests.

Running titantuner on your own data

Titantuner can parse data files organzed as follows:

lon;lat;elev;value
9.4023;61.5308;928;3.1
10.6878;60.0513;360;2.6

where lat and lon are in degrees, elev in meters, and value is the measurement. Each row represents one observation, and each file represents observations for one time.

Supply a data directory when starting titantuner, which will load all data files in that directory:

titantuner -d <datadir>

Using the autotune function (beta version)

Ongoing development. This function aims at finding optimized parameters for quality control methods. When running the autotune function as it is, three parameters are optimized for the buddy check run on temperature observations. These optimized parameters are the search radius, the minimum number of buddies a station can have, and the variance threshold for flagging the station.

./titantuner/autotune.py obs_ta_20230924T12Z.txt

With obs_ta_20230924T12Z.txt containing 5 columns of data (temperature values) following this format:

lat;lon;elev;value;prid;dqc
61.1697;10.4107;205.0;13.70;5;0
58.2968;8.4620;70.0;14.60;5;7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

titantuner-0.1.1.tar.gz (245.9 kB view details)

Uploaded Source

Built Distribution

titantuner-0.1.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file titantuner-0.1.1.tar.gz.

File metadata

  • Download URL: titantuner-0.1.1.tar.gz
  • Upload date:
  • Size: 245.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for titantuner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 45ea75953b1fd65eb408042d9a02a3b33fa29e756dd093e8a12d235e1e44f8ff
MD5 adc25d485fd40aa083e51d5f993a9720
BLAKE2b-256 72ed32022d4d7106370a9663c4271f6f71931282001ae18dad7bdb11b0601da7

See more details on using hashes here.

File details

Details for the file titantuner-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: titantuner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for titantuner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e90950280d313226b059229c34af9e7203c66c33f0cbe825aba160b1d108dfba
MD5 2d0bb1c34839288190387b177c2e9c23
BLAKE2b-256 2edf2501a13868ea891748e039bc465b0e83a4d71b4b4d2061ca9b9bb761ccb9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page