Skip to main content

Wrapper around Korona modules for processing echosounder data

Project description

Running Korona through Python

Prerequisites

KoronaScript depends on LSSS and Korona version 3.0.0. The LSSS environment variable can be set to point to an existing installation, otherwise, the LSSS distribution will be automatically downloaded from the Marec web pages and installed as part of this package.

Usage

Import the modules:

import KoronaScript as ks
import KoronaScript.Modules as ksm

Create a script object:

ks = ks.KoronaScript(Categorization='categorization.xml',
                 HorizontalTransducerOffsets='HorizontalTransducerOffsets.xml')

Add some modules:

ks.add(ksm.EmptyPingRemoval())
ks.add(ksm.Comment(LineBreak='false', Label='CW_0256ms'))
ks.add(ksm.ChannelRemoval(Channels=[1,5,9,13,17],KeepSpecified='true'))
ks.add(ksm.Writer(RelativeDirectory='CW_0256ms'))

Write out the resulting configuration:

ks.write()

Run the script:

ks.run(src="input_dir", dst="output_dir")

The list of modules and their parameters can be found in the configuration/korona-info.json file.

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

koronascript-3.0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koronascript-3.0.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file koronascript-3.0.1.tar.gz.

File metadata

  • Download URL: koronascript-3.0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for koronascript-3.0.1.tar.gz
Algorithm Hash digest
SHA256 70bc562ef8b5264e22e762895c27e68e4eb854f0b07a9f2ac7e26e1843b6b649
MD5 8dca23df451e685c3409f93a4f13b4d6
BLAKE2b-256 251724e9b466cc9e471833eeccd979b05dc71c58c3c60b548493892f7e52431a

See more details on using hashes here.

File details

Details for the file koronascript-3.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for koronascript-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6ce693589261088d3399505feba8f41847138e02108cb78766f6e36e7f2ccd1
MD5 f022877e627ba897eda06cf2cb07e127
BLAKE2b-256 b63f82741680c6c4dc3f28e90c282c19330e3482f32c48962ab227b85e9c7da2

See more details on using hashes here.

Supported by

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