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
This can be set at run time either by setting the LSSS environment variable in the shell
export LSSS=~/lsss-2.16.0-alpha/korona
before running your script, or by adding to path
lsss = '~/lsss-2.16.0-alpha/korona'
os.environ["LSSS"] = lsss
pointing at the LSSS environment to your script.
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.1.tar.gz
.
File metadata
- Download URL: koronascript-0.1.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f432b6ee4b423727db49f9e7783dcde9574ddc263b7ed10639e231649f1b38 |
|
MD5 | ae7c68810b72f8648ae3d0014d66b590 |
|
BLAKE2b-256 | 99da2909d7e2b914530ef608cba47a875878006ebaafd73551ccbf898c1d37da |
File details
Details for the file koronascript-0.1-py3-none-any.whl
.
File metadata
- Download URL: koronascript-0.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611b8c601d118dc065dd203dfd1519e44e5b90e74ad73a52abcd52556d5cfe37 |
|
MD5 | eb8ba24a009c56644f0b3ac24c74704c |
|
BLAKE2b-256 | c22564144fbb29d3505794dcb8c0036a0b915af402511fb4935f4b1e94f34544 |