Gradient Energy¤
get_GE
dLuxToliman.gradient_energy.get_GE(array)
¤
Calculates the spatial gradient energy of the array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
array
|
Array
|
The array to calculate the gradient energy for. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
array |
Array
|
The array of gradient energies. |
Source code in dLuxToliman/gradient_energy.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
get_RGE
dLuxToliman.gradient_energy.get_RGE(array, epsilon=1e-08)
¤
Calculates the spatial radial gradient energy of the array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
array
|
Array
|
The array to calculate the radial gradient energy for. |
required |
epsilon
|
float
|
A small value added to the radial values to help with gradient stability. |
1e-08
|
Returns:
| Name | Type | Description |
|---|---|---|
array |
Array
|
The array of radial gradient energies. |
Source code in dLuxToliman/gradient_energy.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
get_RWGE
dLuxToliman.gradient_energy.get_RWGE(array, epsilon=1e-08)
¤
Calculates the spatial radially weighted gradient energy of the array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
array
|
Array
|
The array to calculate the radially weighted gradient energy for. |
required |
epsilon
|
float
|
A small value added to the radially weighted values to help with gradient stability. |
1e-08
|
Returns:
| Name | Type | Description |
|---|---|---|
array |
Array
|
The array of radial radially weighted energies. |
Source code in dLuxToliman/gradient_energy.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
get_radial_mask
dLuxToliman.gradient_energy.get_radial_mask(npixels, rmin, rmax)
¤
Calculates a binary radial mask, masking out radii below rmin, and above rmax.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
npixels
|
int
|
The linear size of the array. |
required |
rmin
|
Array
|
The inner radius to mask out. |
required |
rmax
|
Array
|
The outer radius to mask out. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
mask |
Array
|
A mask with the values below rmin and above rmax masked out. |
Source code in dLuxToliman/gradient_energy.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |