GLOW 2D Generation in GEO Coordinates
glow2d.geo_model
Run GLOW model looking along heading from the current location and return the model output in
(T, R) geocentric coordinates where T is angle in radians from the current location along the great circle
following current heading, and R is altitude in kilometers. R is in an uniform grid with n_alt
points.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time |
datetime
|
Datetime of GLOW calculation. |
required |
lat |
Numeric
|
Latitude of starting location. |
required |
lon |
Numeric
|
Longitude of starting location. |
required |
heading |
Numeric
|
Heading (look direction). |
required |
max_alt |
Numeric
|
Maximum altitude where intersection is considered (km). Defaults to 1000, i.e. exobase. |
1000
|
n_pts |
int
|
Number of GEO coordinate angular grid points (i.e. number of GLOW runs), must be even and > 20. Defaults to 50. |
50
|
n_bins |
int
|
Number of energy bins. Defaults to 100. |
100
|
n_alt |
int
|
Number of altitude bins, must be > 100. Defaults to |
None
|
n_threads |
int
|
Number of threads for parallel GLOW runs. Set to |
None
|
show_progress |
bool
|
Use TQDM to show progress of GLOW model calculations. Defaults to |
True
|
kwargs |
dict
|
Passed to |
{}
|
Returns:
Name | Type | Description |
---|---|---|
bds |
xarray.Dataset
|
Ionospheric parameters and brightnesses (with production and loss) in GEO coordinates. |
Raises:
Type | Description |
---|---|
ValueError
|
Number of position bins can not be odd. |
ValueError
|
Number of position bins can not be < 20. |
ValueError
|
Resampling can not be < 0.5. |
Warns
ResourceWarning: Number of threads requested is more than available system threads.
Source code in glow2d/_glow2d.py
Compute GLOW model on the great circle passing through the origin location along the specified bearing. The result is presented in a geocentric coordinate system.
Source code in glow2d/_glow2d.py
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 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
|
__init__(time, lat, lon, heading, max_alt=1000, n_pts=50, n_bins=100, *, n_alt=None, uniformize_glow=True, n_threads=None, full_circ=False, show_progress=True, **kwargs)
Create a GLOWRaycast object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
time |
datetime
|
Datetime of GLOW calculation. |
required |
lat |
Numeric
|
Latitude of starting location. |
required |
lon |
Numeric
|
Longitude of starting location. |
required |
heading |
Numeric
|
Heading (look direction). |
required |
max_alt |
Numeric
|
Maximum altitude where intersection is considered (km). Defaults to 1000, i.e. exobase. |
1000
|
n_pts |
int
|
Number of GEO coordinate angular grid points (i.e. number of GLOW runs), must be even and > 20. Defaults to 50. |
50
|
n_bins |
int
|
Number of energy bins. Defaults to 100. |
100
|
n_alt |
int
|
Number of altitude bins, must be > 100. Used only when |
None
|
uniformize_glow |
bool
|
Interpolate GLOW output to an uniform altitude grid. |
True
|
n_threads |
int
|
Number of threads for parallel GLOW runs. Set to |
None
|
full_circ |
bool
|
For testing only, do not use. Defaults to False. |
False
|
show_progress |
bool
|
Use TQDM to show progress of GLOW model calculations. Defaults to True. |
True
|
kwargs |
dict
|
Passed to |
{}
|
Raises:
Type | Description |
---|---|
ValueError
|
Number of position bins can not be odd. |
ValueError
|
Number of position bins can not be < 20. |
ValueError
|
Number of altitude bins can not be < 100. |
Warns
ResourceWarning: Number of threads requested is more than available system threads.
Source code in glow2d/_glow2d.py
run_model()
Run the GLOW model calculation to get the model output in GEO coordinates.
Returns:
Type | Description |
---|---|
xarray.Dataset
|
xarray.Dataset: GLOW model output in GEO coordinates. |