Extended Source¶
Bases: Source
Initialize an extended source (e.g., the Sun) for use in AO simulations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
optBand
|
str
|
Optical band identifier. |
required |
coordinates
|
list
|
Sky position [zenith, azimuth] in [arcsec, degrees], by default [0, 0]. |
[0, 0]
|
fov
|
float
|
Field of view in arcseconds, by default 10. |
10
|
altitude
|
float
|
Altitude of the source in meters. Default is infinity. |
inf
|
img_path
|
str
|
Path to the H5 image of the source (e.g., solar image). |
''
|
img_PS
|
float
|
Plate scale in arcsec/pixel, by default None to use the metadata of the image. |
None
|
nSubDirs
|
int
|
Number of sub-directions across the extended source. |
1
|
maxnSubDirs
|
int
|
Maximum number of sub-directions allowed for processing limits. |
7
|
patch_padding
|
float
|
Padding beyond FOV for sub-region extraction. |
5
|
subDir_margin
|
float
|
Margin added to avoid boundary effects. |
1.0
|
logger
|
Logger
|
Optional logger instance. |
None
|
Source code in SAOS/ExtendedSource.py
24 25 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 51 52 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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
PHOTOMETRY_BANDS
class-attribute
instance-attribute
¶
PHOTOMETRY_BANDS = {
"V": [5e-07, 0.0, 114000000000.0],
"V1": [5.25e-07, 0.0, 114000000000.0],
"R": [6.8e-07, 0.0, 114000000000.0],
"IR": [1.3e-06, 0.0, 114000000000.0],
}
photometry ¶
Return photometric properties specific to solar sources.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arg
|
str
|
Photometric band identifier. |
required |
Returns:
| Type | Description |
|---|---|
list
|
[wavelength, bandwidth, zero point flux] |
Source code in SAOS/ExtendedSource.py
print_properties ¶
Print key attributes of the extended source.
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in SAOS/ExtendedSource.py
load_sun_img ¶
Load the solar image patch and extract both padded and unpadded versions.
Returns:
| Type | Description |
|---|---|
tuple of np.ndarray
|
(unpadded image patch, padded image patch) |
Source code in SAOS/ExtendedSource.py
get_subDirs ¶
Compute the sub-direction coordinates and extract subregions from the image.
Returns:
| Type | Description |
|---|---|
tuple of (np.ndarray, np.ndarray)
|
Coordinates [r, theta] and subregion image cubes. |
Source code in SAOS/ExtendedSource.py
setup_logging ¶
Source code in SAOS/ExtendedSource.py
__del__ ¶
get_available_bands
classmethod
¶
Returns a list of available optical bands.
Returns:
| Type | Description |
|---|---|
list of str
|
Available optical bands. |
print_available_bands
classmethod
¶
Prints the available optical bands and their properties.