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.18.0-alpha-20240918-0847-linux.zip
https://marec.no/tmp/lsss-2.16.0-alpha-20230922-1417-windows.zip
https://marec.no/tmp/lsss-2.18.0-alpha-20240918-0847-windows.zip
If you run linux you need to install the netcdf separately:
apt-get install libnetcdf or sudo apt install libnetcdf-dev
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koronascript-0.2.1.tar.gz.
File metadata
- Download URL: koronascript-0.2.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39db45059a3539405bf2ceab259e960840676d9de2c2e2610e94727a75f651de
|
|
| MD5 |
eba52fec2db801cf223e49c416ec7be6
|
|
| BLAKE2b-256 |
1e3192211f02fdd22e8dc2c9ba1bd2fd1e0c2d0927ce1d7d8550852f160504bb
|
File details
Details for the file koronascript-0.2.1-py3-none-any.whl.
File metadata
- Download URL: koronascript-0.2.1-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f274de14aa94a18b0935b928ed00a94687c790d62d259d39a3976cb4d76b03e
|
|
| MD5 |
d75d5988ac08733b1482e14a822520d5
|
|
| BLAKE2b-256 |
2c146c33a369cc43bf81277e49739447e936e8425362f62c035eb60b9164820f
|