height_path_data_generic#
- pycraf.pathprof.height_path_data_generic(distance, step, lon_mid, lat_mid, zone_t=<CLUTTER.UNKNOWN: -1>, zone_r=<CLUTTER.UNKNOWN: -1>)[source]#
Calculate height profile auxillary data needed for
atten_path_fast.This can be used to cache height-profile data. Since it is independent of frequency, timepercent, Tx and Rx heights, etc., one can re-use it to save computing time when doing batch jobs. It is assumed that the Tx is at a fixed position, while the Rx “moves” accross the specified paths (since the attenuation is completely symmetric, this is without loss of generality).
- Parameters:
- distance
double Maximal path length [km]
- step
double Distance resolution of height profile along path [m]
- lon_mid, lat_mid
double Geographic longitude/latitude of path’s mid point [deg]
This is needed to query radiometerological values.
- zone_t, zone_r
CLUTTERenum, optional Clutter type for transmitter/receiver terminal. (default: CLUTTER.UNKNOWN)
- distance
- Returns:
- hprof_data
dict Dictionary with height profile auxillary data.
The dictionary contains the following entities (the path length is m):
“lons”, “lats” :
ndarray1D (float; (m,))Longitudes and latitudes of path.
This is returned for information, only. It is not needed by
atten_path_fast!“lon_mids”, “lat_mids” :
ndarray1D (float; (m,))Path center longitudes and latitudes of path. The values at index
iin these arrays are the midpoints of the paths fromlons[0]tolons[i](likewise forlats).This is returned for information, only. It is not needed by
atten_path_fast!“distances” :
ndarray1D (float; (m,))Distances of each point in the path from Tx position.
“heights” :
ndarray1D (float; (m,))Height profile.
“bearing” : float
Start bearing of path.
This is returned for information, only. It is not needed by
atten_path_fast!“backbearings” :
ndarray1D (float; (m,))Back-bearing of each point in the path.
This is returned for information, only. It is not needed by
atten_path_fast!“omega” :
ndarray1D (float; (m,))The
omegavalues for each point in the path.“d_tm”, “d_lm” :
ndarray1D (float; (m,))The
d_tmandd_lmvalues for each point in the path.“d_ct”, “d_cr” :
ndarray1D (float; (m,))The
d_ctandd_crvalues for each point in the path.“zone_t” : int
Clutter type at Tx.
“zone_r” :
ndarray1D (int; (m,))Clutter type at Rx. (Currently only a single type is used.)
“N0”, “delta_N”, “beta0” :
ndarray1D (float; (m,))The
N0,delta_N, andbeta0values for each point in the path.
- hprof_data
Notes
Currently, no sea or lake bodies are accounted for. Also the clutter type of the receiver is fixed, while one could also think of using different clutter types (in the array). You can modify the returned arrays in
hprof_data, of course, before feeding intoatten_path_fast.