Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmoothOperator #64

Merged
merged 3 commits into from
Mar 1, 2021
Merged

SmoothOperator #64

merged 3 commits into from
Mar 1, 2021

Conversation

briochemc
Copy link
Member

Adds smooth_operator function to create mass-conserving operator (matrix) which can be applied (multiplied to the left of) a given vectorized field and yield a smoothed vectorized field.

Smoothing is made according to a 3D Gaussian Kernel from ImageFiltering.jl, of which the weights are masked by the stencil of the ocean circulation, and then scaled to conserve mass.

@codecov-io
Copy link

codecov-io commented Mar 1, 2021

Codecov Report

Merging #64 (b38c2cf) into master (d1662c6) will increase coverage by 0.16%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
+ Coverage   66.37%   66.53%   +0.16%     
==========================================
  Files          22       22              
  Lines        1035     1043       +8     
==========================================
+ Hits          687      694       +7     
- Misses        348      349       +1     
Impacted Files Coverage Δ
src/AIBECS.jl 100.00% <ø> (ø)
src/Rivers.jl 93.75% <ø> (ø)
src/diagnostics.jl 71.87% <87.50%> (+2.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1662c6...00d0e5a. Read the comment docs.

@briochemc briochemc merged commit 8066222 into master Mar 1, 2021
@briochemc briochemc deleted the SmoothOperator branch March 1, 2021 08:00
@briochemc
Copy link
Member Author

This PR provides a workaround for #63

briochemc added a commit that referenced this pull request Apr 1, 2021
* master:
  SmoothOperator (#64)
  Update Project.toml
  CompatHelper: bump compat for "BSON" to "0.3"
  Fix ReadMe typos
  Update Project.toml
  CompatHelper: bump compat for "Shapefile" to "0.7"
  Update Project.toml
  bump version
  CompatHelper: bump compat for "Reexport" to "1.0"
  CompatHelper: bump compat for "NCDatasets" to "0.11"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants