stilt.receptors.receptors_from_frame#
- stilt.receptors.receptors_from_frame(frame)[source]#
Check a table with a row per release point and build its receptors.
The table needs
time,longitude,latitude, andaltitudecolumns. Each row is onePointReceptor, unless anr_idxcolumn groups rows into one receptor: a group of two rows at one location is aColumnReceptor, any other group aMultiPointReceptor.Field
Accepted column names (any case)
time
timelongitude
longitude,long,lonlatitude
latitude,lati,lataltitude (m)
altitude,zagl,zmsl,zreceptor group
r_idxaltitude reference
altitude_ref,height_refWithout an
altitude_refcolumn, altitudes are above mean sea level when the column is namedzmsland above ground level otherwise. Any other column becomes a label in each receptor’sattrs. For a group, labels come from its first row.- Returns:
In table order. A receptor listed twice appears once.
- Return type:
list[stilt.receptor.Receptor]- Raises:
ValueError – As
receptor_rows()raises.- Parameters:
frame (DataFrame)