Skip to content

Commit c058e10

Browse files
authored
Merge pull request #50 from ocean-uhh/49-renaming
Feat: Project renaming
2 parents 0106195 + e7d5532 commit c058e10

70 files changed

Lines changed: 223 additions & 223 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
pip install pytest
3131
pip install -r requirements.txt
3232
33-
- name: Install CTD Tools in development mode
33+
- name: Install SeaSenseLib in development mode
3434
run: |
3535
pip install -e .
3636

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
3838
3939
40-
- name: Install ctd_tools
40+
- name: Install seasenselib
4141
shell: bash -l {0}
4242
run: |
4343
python -m pip install -e . --no-deps --force-reinstall

.github/workflows/docs_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
python -m pip install flake8 pytest
3333
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
3434
35-
- name: Install ctd_tools
35+
- name: Install seasenselib
3636
shell: bash -l {0}
3737
run: |
3838
python -m pip install -e . --no-deps --force-reinstall

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ target/
4242
# Package builder
4343
dist/
4444
build/
45-
ctd_tools.egg-info/
45+
seasenselib.egg-info/

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ release: build
8888
git push origin "v$$VERSION" 2>/dev/null || echo "Tag already pushed"; \
8989
if command -v gh > /dev/null; then \
9090
gh release create "v$$VERSION" \
91-
--title "CTD Tools v$$VERSION" \
91+
--title "SeaSenseLib v$$VERSION" \
9292
--notes "Release version $$VERSION" \
9393
--draft \
94-
dist/ctd_tools-$$VERSION.tar.gz \
95-
dist/ctd_tools-$$VERSION-py3-none-any.whl; \
94+
dist/seasenselib-$$VERSION.tar.gz \
95+
dist/seasenselib-$$VERSION-py3-none-any.whl; \
9696
echo "GitHub release created as draft. Please edit and publish manually."; \
9797
else \
9898
echo "GitHub CLI (gh) not found. Please create release manually at:"; \
99-
echo "https://github.com/ocean-uhh/ctd-tools/releases/new"; \
99+
echo "https://github.com/ocean-uhh/seasenselib/releases/new"; \
100100
echo "Tag: v$$VERSION"; \
101-
echo "Upload files: dist/ctd_tools-$$VERSION.tar.gz and dist/ctd_tools-$$VERSION-py3-none-any.whl"; \
101+
echo "Upload files: dist/seasenselib-$$VERSION.tar.gz and dist/seasenselib-$$VERSION-py3-none-any.whl"; \
102102
fi
103103

104104
# ----------------------------------------

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# CTD Tools
1+
# SeaSenseLib
22

33
A tool for reading, converting, and plotting sensor data from different oceanographic formats.
44

55
## Table of Contents
66

77
- [Installation](#installation)
8-
- [How to import CTD Tools](#how-to-import-ctd-tools)
8+
- [How to import SeaSenseLib](#how-to-import-seasenselib)
99
- [CLI Usage](#cli-usage)
1010
- [Example data](#example-data)
1111
- [Converting a CNV file to netCDF](#converting-a-cnv-file-to-netcdf)
@@ -15,23 +15,23 @@ A tool for reading, converting, and plotting sensor data from different oceanogr
1515

1616
## Installation
1717

18-
To install CTD Tools, we strongly recommend using a scientific Python distribution.
19-
If you already have Python, you can install CTD Tools with:
18+
To install SeaSenseLib, we strongly recommend using a scientific Python distribution.
19+
If you already have Python, you can install SeaSenseLib with:
2020

2121
```bash
22-
pip install ctd-tools
22+
pip install seasenselib
2323
```
2424

2525
Now you're ready to use the library.
2626

27-
## How to import CTD Tools
27+
## How to import SeaSenseLib
2828

29-
Example code for using the CTD Tools library in your project:
29+
Example code for using the SeaSenseLib library in your project:
3030

3131
```python
32-
from ctd_tools.readers import SbeCnvReader, NetCdfReader
33-
from ctd_tools.writers import NetCdfWriter
34-
from ctd_tools.plotters import TimeSeriesPlotter
32+
from seasenselib.readers import SbeCnvReader, NetCdfReader
33+
from seasenselib.writers import NetCdfWriter
34+
from seasenselib.plotters import TimeSeriesPlotter
3535

3636
# Read CTD data from CNV file
3737
reader = SbeCnvReader("sea-practical-2023.cnv")
@@ -54,7 +54,7 @@ This chapter describes how to run the program from CLI.
5454
After installing as a Python package, you can run it via CLI by just using the package name:
5555

5656
```bash
57-
ctd-tools
57+
seasenselib
5858
```
5959
The various features of the tool can be executed by using different commands. To invoke a command, simply append
6060
it as an argument to the program call via CLI (see following example section for some examples). The
@@ -73,18 +73,18 @@ Every command uses different parameters. To get more information about how to us
7373
program and each command, just run it with the `--help` (or `-h`) argument:
7474

7575
```bash
76-
ctd-tools --help
76+
seasenselib --help
7777
```
7878

7979
To get help for a single command, add `--help` (or `-h`) argument after typing the command name:
8080

8181
```bash
82-
ctd-tools convert --help
82+
seasenselib convert --help
8383
```
8484

8585
## Example data
8686

87-
In the `examples` directory of the [code repository on GitLab](https://gitlab.rrz.uni-hamburg.de/ifmeo-sea-practical/ctd-tools) you'll find example Seabird CNV files from real research cruises.
87+
In the `examples` directory of the [code repository](https://github.com/ocean-uhh/seasenselib) you'll find example files from real research cruises.
8888

8989
- The file `sea-practical-2023.cnv` contains data from a vertical CTD profile (one downcast) with parameters `temperature`, `salinity`, `pressure`, `oxygen`, `turbidity`.
9090
- The file `denmark-strait-ds-m1-17.cnv` contains data from an instrument moored over six days in a depth of around 650 m with parameters `temperature`, `salinity`, `pressure`.
@@ -96,7 +96,7 @@ The following examples will guide you through all available commands using the f
9696
Use the following command to convert a CNV file to a netCDF file:
9797

9898
```bash
99-
ctd-tools convert -i examples/sea-practical-2023.cnv -o output/sea-practical-2023.nc
99+
seasenselib convert -i examples/sea-practical-2023.cnv -o output/sea-practical-2023.nc
100100
```
101101

102102
As you can see, format detection works for this command via file extension (`.nc` for netCDF or `.csv` for CSV), but you can also specify it via argument `--format` (or `-f`).
@@ -105,15 +105,15 @@ Important note: Our example files work out of the box. But in some cases your Se
105105
are not known of our program or the `pycnv` library which we're using. If you get an error due to missing parameters while converting or if you miss parameters during further data processing, e.g. something essential like the temperature, then a parameter mapping might be necessary. A parameter mapping is performed with the argument `--mapping` (or `-m`), which is followed by a list of mapping pairs separated with spaces. A mapping pair consists of a standard parameter name that we use within the program and the corresponding name of the column or channel from the Seabird CNV file. Example for a mapping which works for the example above:
106106

107107
```bash
108-
ctd-tools convert -i examples/sea-practical-2023.cnv -o output/sea-practical-2023.nc -m temperature=tv290C pressure=prdM salinity=sal00 depth=depSM
108+
seasenselib convert -i examples/sea-practical-2023.cnv -o output/sea-practical-2023.nc -m temperature=tv290C pressure=prdM salinity=sal00 depth=depSM
109109
```
110110

111111
### Showing the summary of a netCDF
112112

113113
For the created netCDF file:
114114

115115
```bash
116-
ctd-tools show -i output/sea-practical-2023.nc
116+
seasenselib show -i output/sea-practical-2023.nc
117117
```
118118

119119
Again, format detection works also for this command via file extension (`.nc` for netCDF, `.csv` for CSV, `.cnv` for CNV).
@@ -123,19 +123,19 @@ Again, format detection works also for this command via file extension (`.nc` fo
123123
Plot a T-S diagram:
124124

125125
```bash
126-
ctd-tools plot-ts -i output/sea-practical-2023.nc
126+
seasenselib plot-ts -i output/sea-practical-2023.nc
127127
```
128128

129129
Plot a vertical CTD profile:
130130

131131
```bash
132-
ctd-tools plot-profile -i output/sea-practical-2023.nc
132+
seasenselib plot-profile -i output/sea-practical-2023.nc
133133
```
134134

135135
Plot a time series for 'temperature' parameter:
136136

137137
```bash
138-
ctd-tools plot-series -i output/sea-practical-2023.nc -p temperature salinity --dual-axis
138+
seasenselib plot-series -i output/sea-practical-2023.nc -p temperature salinity --dual-axis
139139
```
140140

141141
Also for this command, format detection works via file extension (`.nc` for netCDF, `.csv` for CSV, `.cnv` for CNV).
@@ -150,8 +150,8 @@ Start here to set up your local development environment: clone the repository, c
150150
1. **Clone the repo**
151151

152152
```bash
153-
git clone https://github.com/ocean-uhh/ctd-tools.git
154-
cd ctd-tools
153+
git clone https://github.com/ocean-uhh/seasenselib.git
154+
cd seasenselib
155155
```
156156

157157
2. **Create and activate a virtual environment**
@@ -197,7 +197,7 @@ Useful commands:
197197
- **Execute the application**
198198

199199
```bash
200-
python -m ctd_tools
200+
python -m seasenselib
201201
```
202202

203203
- **Build distributions**

docs/source/about.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
About CTD Tools
1+
About SeaSenseLib
22
===============
33

4-
CTD Tools is a Python library for reading, converting, and plotting oceanographic sensor data from various instruments and formats. The package is designed to work seamlessly with data from moored instruments and CTD profiles, supporting multiple file formats commonly used in oceanographic research.
4+
SeaSenseLib is a Python library for reading, converting, and plotting oceanographic sensor data from various instruments and formats. The package is designed to work seamlessly with data from moored instruments and CTD profiles, supporting multiple file formats commonly used in oceanographic research.
55

66
**Key Features:**
77

@@ -22,15 +22,15 @@ CTD Tools is a Python library for reading, converting, and plotting oceanographi
2222

2323
**Project Goals:**
2424

25-
CTD Tools aims to simplify the process of working with oceanographic sensor data by providing:
25+
SeaSenseLib aims to simplify the process of working with oceanographic sensor data by providing:
2626

2727
1. **Standardized Data Access**: Convert proprietary formats to standard xarray Datasets
2828
2. **Consistent API**: Uniform interface across different instrument types
2929
3. **CF Convention Support**: Ensure output data follows Climate and Forecast metadata conventions
3030
4. **Research Reproducibility**: Enable easy sharing and reprocessing of oceanographic datasets
3131
5. **Educational Use**: Provide tools suitable for teaching oceanographic data analysis
3232

33-
**Who Should Use CTD Tools:**
33+
**Who Should Use SeaSenseLib:**
3434

3535
* Oceanographic researchers working with CTD and mooring data
3636
* Students learning oceanographic data analysis
@@ -39,4 +39,4 @@ CTD Tools aims to simplify the process of working with oceanographic sensor data
3939

4040
**Community and Support:**
4141

42-
CTD Tools is developed and maintained by the oceanographic community. We welcome contributions, bug reports, and feature requests through our GitHub repository.
42+
SeaSenseLib is developed and maintained by the oceanographic community. We welcome contributions, bug reports, and feature requests through our GitHub repository.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
year = datetime.datetime.now(tz=datetime.timezone.utc).date().year
1616

1717
# General information about the project.
18-
project = 'ctd_tools'
18+
project = 'seasenselib'
1919
author = 'Yves Sorge'
2020
copyright = f"{year}, {author}"
2121
release = 'v0.0.0'

0 commit comments

Comments
 (0)