2-D comparison
Project description
WOC - Weighted Overlap Coefficient
Python code to calculate the weighted overlap coefficient between 2 fields while considering masking.
Please cite J. Yoo et.al., (ApJS, Vol 261, Issue 2, 2022) arXiv:2205.08161
Install
python -m pip install git+https://github.com/csabiu/WOC.git
or
pip install pywoc
Running
from pywoc import woc
woc(map1,map2,radii, mask=mask)
map1 is the 2D array of pixel values
map2 should be same shape as map1
radii is the array of radius values used to select the contours from map1 eg [100,200,300] in pixel units
optional: mask is the array used to mask both maps (0=masked, 1=unmasked)
revision history
0.0.1 initial code release
0.1.0 added python notebook tutorial under /nb improved documentation
0.2.0 added a dynamic calculation of radial profile fixed some installation problems
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.