Simulation¶
This module is used to calculate attenuated backscatter profiles from extinction profiles given a predefined atmospheric model.
ExtinctionToAttenuatedBackscatter
¶
Class for simulating measurements (attenuated backscatter profiles) for different models.
Attributes:
Name | Type | Description |
---|---|---|
`model` |
{null, step}
|
atmospheric model to be simulated. |
`wavelength` |
float
|
Wavelength of the Rayleigh profile to be computed, in nm. |
`lidar_ratio` |
float
|
Lidar Ratio, in sr. |
`noise` |
float
|
Noise level. The noise is normalized to the maximum extinction value in the profile. |
Example
# some imports
import aprofiles as apro
# simulate rayleigh profiles with a random noise
simulator = apro.simulator.ExtinctionToAttenuatedBackscatter(
model = 'step', wavelength = 1064., lidar_ratio = 50., noise = 0.5
);
# calls the to_profiles_data method
sim_profiles = simulator.to_profiles_data()
# plot modelled extinction
sim_profiles.plot('extinction_model')
Source code in aprofiles/simulation/ext2back.py
15 16 17 18 19 20 21 22 23 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 |
|
_model_extinction()
¶
Calculates the extinction coefficient profiles for a given aerosol model (vertical distribution, lidar ratio) at a given wavelength and with a random noise.
Returns:
Type | Description |
---|---|
Dataset
|
|
Source code in aprofiles/simulation/ext2back.py
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 |
|
_simulate_attenuated_backscatter(ds)
¶
Calculates the attenuated backscatter measurements for given extinction profiles
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ds
|
Dataset
|
Dataset which contains extinction profiles ( |
required |
Returns:
Type | Description |
---|---|
Dataset
|
|
Source code in aprofiles/simulation/ext2back.py
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 |
|
to_profiles_data()
¶
Method which returns an instance of the (aprofiles.profiles.ProfilesData) class.
Returns:
Type | Description |
---|---|
ProfilesData
|
|
Source code in aprofiles/simulation/ext2back.py
52 53 54 55 56 57 58 59 |
|