Wrapper around Korona modules for processing echosounder data
Project description
Running Korona through Python
Prerequisites
Install LSSS/Korona.
This version of the KoronaScript is tested against lsss-2.16.0-alpha
version. LSSS and korona is usually placed at
~/lsss/lsss-2.16.0-alpha
or a similar directory.
Download the appropriate version from here:
https://marec.no/tmp/lsss-2.16.0-alpha-20230922-1417-linux.zip
https://marec.no/tmp/lsss-2.16.0-alpha-20230922-1417-windows.zip
If you run linux you need to install the netcdf library separately:
apt-get install libnetcdf
Add license
You need an LSSS licence. The licence have to be added according to the LSSS manual. the licence files are typically placed at the ~/marec/license
directory.
Set system variables
The LSSS
environment variable should point to the root directory of your
LSSS installation. It can be set at run time either by setting the LSSS environment
variable in the shell
export LSSS=~/lsss-2.16.0-alpha
before running your script, or by adding it manually from inside Python:
lsss = '~/lsss-2.16.0-alpha'
os.environ["LSSS"] = lsss
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file koronascript-0.2.tar.gz
.
File metadata
- Download URL: koronascript-0.2.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dcf0f6b201523eb67336c2ec09a883cb31124313d5a3e061ba2d5a6f5fcc8f5 |
|
MD5 | 405fb6d528e775af72056f9f85b97775 |
|
BLAKE2b-256 | cb929178067f4a7354411635d09f7c4a1be4245ae9e98a214658516e0d452441 |
File details
Details for the file koronascript-0.2-py3-none-any.whl
.
File metadata
- Download URL: koronascript-0.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd33664bdb0b5f395c1ebda32206ad5db6ece1f7a02b1fae89e4c64cc14a8b85 |
|
MD5 | f81cb081c75c52a09d4cb51605dfaba7 |
|
BLAKE2b-256 | 4f5ab4ecca1ce59c0e14901ba422cd24e13ad33cb844a345996656954b857d20 |