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.0.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.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: koronascript-3.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 90536978f40c13aef888ed67725cdbc71047531f7b08a195cff2c2d65a8c2855
MD5 1ce1a73a5ca70a21c0dea5459aed2bad
BLAKE2b-256 27cf375905bf68db802acdfc2433f62e0f34ab894f71e56854d0506ff977ca8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for koronascript-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e65c0ef20627675aa33eb7ac8aecbe74f92450a78f4bd3373289f9b9f515a984
MD5 9990e39e4d368c9c2b53169ec878365e
BLAKE2b-256 cbb8b501f9e77036b4f515e2b5b1f73d216777e4019b28261febba4a06c88b91

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