Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
owc-software-python owc-software-python
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bodc
  • owc-software-pythonowc-software-python
  • Merge requests
  • !13

Merged
Created Nov 20, 2019 by edsmall@edsmallContributor

ARGODEV-159: Convert noise

  • Overview 0
  • Commits 13
  • Pipelines 3
  • Changes 3

Jira Issue

ARGODEC-159 (https://jira.ceh.ac.uk/browse/ARGODEV-159)

Python Implementation

Algorithm is mostly the same.

  • Changed the function name from noise to noise_variance to better reflect what the function is actually doing.
  • Added some more in-depth documentation, and added an error message for the situation where no unique points are given.

Testing

Wrote 3 tests:

  1. Check that the return type of noise_variance is a float
  2. Check that we get a 0 if the points given to the function are the same
  3. Check that, if given some real data, we get the expected result

Old Matlab Implementation

Calculates the variance in the noise of the salinity data for the historical data. In this case, the noise is simply the difference in salinity between each data point and its closest other data point (in terms of space). We then take the sum all of the differences squared over two times the number of data points to find the variance in the noise. In other words

Noise_Var(X) = Sum(D^2) / 2*N

where D is the difference between salinity of each data point and its closest data point (min(Xi - X)), and N is the number of data points.

This is explained in more detail in HERE

Edited Nov 20, 2019 by edsmall
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: edsmall/noise