CTDFjorder-git


NameCTDFjorder-git JSON
Version 0.0.15 PyPI version JSON
download
home_pagehttps://github.com/nikothomas/CTDFjorder
SummaryA package for processing and analyzing CTD data.
upload_time2024-05-04 03:27:22
maintainerNone
docs_urlNone
authorNikolas Yanek-Chrones
requires_python>=3.11
licenseNone
keywords ctd
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CTDFjorder

CTDFjorder is a Python package for processing and analyzing CTD (Conductivity, Temperature, Depth) data.
Documentation: [Read the docs](https://nikothomas.github.io/CTDFjorder/CTDFjorder/CTDFjorder.html)

## Features

- Read RSK files and extract CTD data
- Process CTD data, including removing non-positive samples and cleaning data
- Calculate derived quantities such as absolute salinity, density, and overturns
- Determine mixed layer depth (MLD) using different methods
- Generate plots for visualizing CTD profiles and derived quantities
- Command-line interface (CLI) for easy processing and merging of RSK files

## Installation

To install CTDFjorder, you can use pip:

```shell
pip install ctdfjorder
```

## Usage

CTDFjorder provides a command-line interface (CLI) for processing and analyzing CTD data. Here are the available commands:

### Process a single RSK file

```shell
ctdfjorder-cli process <file>
```

This command processes a single RSK file specified by `<file>`. It performs various steps like adding filename to the CTD data table, saving data to a CSV file, adding location information, removing non-positive samples, etc.

### Merge all RSK files in the current folder

```shell
ctdfjorder-cli merge
```

This command merges all RSK files found in the current folder. It adds filename and location information to the data table and saves the data to a CSV file.

### Run the default processing pipeline

```shell
ctdfjorder-cli default
```

This command runs the default processing pipeline on all RSK files found in the current folder. It performs the same steps as the `process` command for each RSK file.

## Configuration

CTDFjorder looks for a master sheet Excel file named "FjordPhyto MASTER SHEET.xlsx" in the current working directory. This file is used for estimating location information when it's not available in the RSK files. You can change this by modifying the CTDFjorder.master_sheet_path field to the name of your own spreadsheet.

## Examples

Here are a few examples of how to use CTDFjorder:

- Process a single RSK file:

```shell
ctdfjorder-cli process path/to/rskfile.rsk
```

- Merge all RSK files in the current folder:

```shell
ctdfjorder-cli merge
```

- Run the default processing pipeline on all RSK files in the current folder:

```shell
ctdfjorder-cli default
```

- Write your own script:
```
from CTDFjorder import CTDFjorder
import os
for file in CTDFjorder.get_rsk_filenames_in_dir(os.getcwd()):
    try:
        my_data = CTDFjorder.CTD(file)
        my_data.add_filename_to_table()
        my_data.save_to_csv("output.csv")
        my_data.add_location_to_table()
        my_data.remove_non_positive_samples()
        my_data.clean("practicalsalinity", 'salinitydiff')
        my_data.add_absolute_salinity()
        my_data.add_density()
        my_data.add_overturns()
        my_data.add_mld(1)
        my_data.add_mld(5)
        my_data.save_to_csv("outputclean.csv")
        my_data.plot_depth_density_salinity_mld_scatter()
        my_data.plot_depth_temperature_scatter()
        my_data.plot_depth_salinity_density_mld_line()
    except Exception as e:
        print(f"Error processing file: '{file}' {e}")
        continue
```

## Contributing

Contributions to CTDFjorder are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the [GitHub repository](https://github.com).

## License

CTDFjorder is released under the MIT License.

## Acknowledgments

CTDFjorder was developed by Nikolas Yanek-Chrones for the Fjord Phyto project. The gsw library was used for certain dervied calculations.

## Citations
McDougall, T. J., & Barker, P. M. (2011). Getting started with TEOS-10 and the Gibbs Seawater (GSW) Oceanographic Toolbox. SCOR/IAPSO WG127.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nikothomas/CTDFjorder",
    "name": "CTDFjorder-git",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "CTD",
    "author": "Nikolas Yanek-Chrones",
    "author_email": "nikojb1001@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/24/f1/2f1a3e168b1ca02fafef27139cd8ea7e7c06e5ed56861e8b83143a2835a9/CTDFjorder-git-0.0.15.tar.gz",
    "platform": null,
    "description": "# CTDFjorder\n\nCTDFjorder is a Python package for processing and analyzing CTD (Conductivity, Temperature, Depth) data.\nDocumentation: [Read the docs](https://nikothomas.github.io/CTDFjorder/CTDFjorder/CTDFjorder.html)\n\n## Features\n\n- Read RSK files and extract CTD data\n- Process CTD data, including removing non-positive samples and cleaning data\n- Calculate derived quantities such as absolute salinity, density, and overturns\n- Determine mixed layer depth (MLD) using different methods\n- Generate plots for visualizing CTD profiles and derived quantities\n- Command-line interface (CLI) for easy processing and merging of RSK files\n\n## Installation\n\nTo install CTDFjorder, you can use pip:\n\n```shell\npip install ctdfjorder\n```\n\n## Usage\n\nCTDFjorder provides a command-line interface (CLI) for processing and analyzing CTD data. Here are the available commands:\n\n### Process a single RSK file\n\n```shell\nctdfjorder-cli process <file>\n```\n\nThis command processes a single RSK file specified by `<file>`. It performs various steps like adding filename to the CTD data table, saving data to a CSV file, adding location information, removing non-positive samples, etc.\n\n### Merge all RSK files in the current folder\n\n```shell\nctdfjorder-cli merge\n```\n\nThis command merges all RSK files found in the current folder. It adds filename and location information to the data table and saves the data to a CSV file.\n\n### Run the default processing pipeline\n\n```shell\nctdfjorder-cli default\n```\n\nThis command runs the default processing pipeline on all RSK files found in the current folder. It performs the same steps as the `process` command for each RSK file.\n\n## Configuration\n\nCTDFjorder looks for a master sheet Excel file named \"FjordPhyto MASTER SHEET.xlsx\" in the current working directory. This file is used for estimating location information when it's not available in the RSK files. You can change this by modifying the CTDFjorder.master_sheet_path field to the name of your own spreadsheet.\n\n## Examples\n\nHere are a few examples of how to use CTDFjorder:\n\n- Process a single RSK file:\n\n```shell\nctdfjorder-cli process path/to/rskfile.rsk\n```\n\n- Merge all RSK files in the current folder:\n\n```shell\nctdfjorder-cli merge\n```\n\n- Run the default processing pipeline on all RSK files in the current folder:\n\n```shell\nctdfjorder-cli default\n```\n\n- Write your own script:\n```\nfrom CTDFjorder import CTDFjorder\nimport os\nfor file in CTDFjorder.get_rsk_filenames_in_dir(os.getcwd()):\n    try:\n        my_data = CTDFjorder.CTD(file)\n        my_data.add_filename_to_table()\n        my_data.save_to_csv(\"output.csv\")\n        my_data.add_location_to_table()\n        my_data.remove_non_positive_samples()\n        my_data.clean(\"practicalsalinity\", 'salinitydiff')\n        my_data.add_absolute_salinity()\n        my_data.add_density()\n        my_data.add_overturns()\n        my_data.add_mld(1)\n        my_data.add_mld(5)\n        my_data.save_to_csv(\"outputclean.csv\")\n        my_data.plot_depth_density_salinity_mld_scatter()\n        my_data.plot_depth_temperature_scatter()\n        my_data.plot_depth_salinity_density_mld_line()\n    except Exception as e:\n        print(f\"Error processing file: '{file}' {e}\")\n        continue\n```\n\n## Contributing\n\nContributions to CTDFjorder are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the [GitHub repository](https://github.com).\n\n## License\n\nCTDFjorder is released under the MIT License.\n\n## Acknowledgments\n\nCTDFjorder was developed by Nikolas Yanek-Chrones for the Fjord Phyto project. The gsw library was used for certain dervied calculations.\n\n## Citations\nMcDougall, T. J., & Barker, P. M. (2011). Getting started with TEOS-10 and the Gibbs Seawater (GSW) Oceanographic Toolbox. SCOR/IAPSO WG127.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for processing and analyzing CTD data.",
    "version": "0.0.15",
    "project_urls": {
        "Homepage": "https://github.com/nikothomas/CTDFjorder",
        "Issues": "https://github.com/nikothomas/CTDFjorder/issues"
    },
    "split_keywords": [
        "ctd"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "84da4563cfa297d4fc233000d7e3c4bcebaba4511e58796442d2e6da5d07fa8f",
                "md5": "14653f10c148eda86ac27b6a61a2a333",
                "sha256": "ee12f017dc4b8ff274654280c2b434aa6630f0084a487a6c08591346e2d4fdf3"
            },
            "downloads": -1,
            "filename": "CTDFjorder_git-0.0.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "14653f10c148eda86ac27b6a61a2a333",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 15388,
            "upload_time": "2024-05-04T03:27:20",
            "upload_time_iso_8601": "2024-05-04T03:27:20.959024Z",
            "url": "https://files.pythonhosted.org/packages/84/da/4563cfa297d4fc233000d7e3c4bcebaba4511e58796442d2e6da5d07fa8f/CTDFjorder_git-0.0.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24f12f1a3e168b1ca02fafef27139cd8ea7e7c06e5ed56861e8b83143a2835a9",
                "md5": "ea3a2afb644029b50d70f578f939b580",
                "sha256": "7d37aa550b43fc3b263834283df9b176a6980b8f5a6da354f657bd4241ca7c3e"
            },
            "downloads": -1,
            "filename": "CTDFjorder-git-0.0.15.tar.gz",
            "has_sig": false,
            "md5_digest": "ea3a2afb644029b50d70f578f939b580",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 14879,
            "upload_time": "2024-05-04T03:27:22",
            "upload_time_iso_8601": "2024-05-04T03:27:22.377026Z",
            "url": "https://files.pythonhosted.org/packages/24/f1/2f1a3e168b1ca02fafef27139cd8ea7e7c06e5ed56861e8b83143a2835a9/CTDFjorder-git-0.0.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-04 03:27:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nikothomas",
    "github_project": "CTDFjorder",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ctdfjorder-git"
}
        
Elapsed time: 0.33257s