3.1. cpforager.parameters.get_params
- cpforager.parameters.get_params(config_file_paths)
Create a parameters dictionary loaded from a list of .yml paths.
- Parameters:
config_file_paths (list[str]) – a list of the .yml configuration file paths.
- Returns:
a dictionary of parameters.
- Return type:
dict
The parameters dictionary is required to construct
GPS,TDRandAXYclasses. The user-defined colony code allows to define a dictionary of parameters according to a specific dataset. Find below the exhaustive table of parameters within the dictionary.Important
Users only have to write the .yml files with parameter values consistent with their dataset and their need.
Warning
Even if all your parameters are written in a unique .yml file, you must express it as a single-element list e.g.
params = get_params(["my_unique_config_path.yml"]).Note
The website at https://mapscaping.com/bounding-box-calculator/ is a user-friendly tool that can help define the colony bounding box.
name
description
required
colonydictionary with infos about the searbird’s colony
GPScolony["name"]name of the searbird’s colony
GPScolony["center"]longitude/latitude center of the searbird’s colony
GPScolony["box_longitude"]longitude bounding box inside which the searbird’s nest is to be found
GPScolony["box_latitude"]latitude bounding box inside which the searbird’s nest is to be found
GPSlocal_tzlocal timezone of the seabird’s nest
GPS,AXY,TDRmax_possible_speedspeed threshold in km/h above which a longitude/latitude measure can be considered an error
GPSdist_thresholddistance from the nest threshold in km above which the seabird is considered in a foraging trip
GPSspeed_thresholdspeed threshold in km/h above which the seabird is still considered in a foraging trip despite being below the distance threshold
GPSnesting_speedlocal timezone of the seabird’s nest
GPSnest_positionlongitude and latitude of the seabird’s nest if known beforehand
GPStrip_min_durationduration in seconds above which a trip is valid
GPStrip_max_durationduration in seconds below which a trip is valid
GPStrip_min_lengthlength in km above which a trip is valid
GPStrip_max_lengthlength in km below which a trip is valid
GPStrip_min_stepslength in km below which a trip is valid
GPSzoc_time_windowswidths of successive rolling time windows used for zero-offset correction
TDRzoc_quantilesquantiles to keep during the successive rolling time windows used for zero-offset correction
TDRdiving_depth_thresholddepth threshold above which a seabird is considered to be diving
TDRdive_min_durationminimum duration in seconds of a dive
TDRodba_p_normp-norm used for the computation of overall dyanmical body acceleration
AXYfilter_typechoose type of filter for accelerations measures (
rolling_avgorhigh_pass)AXYacc_time_windowduration in seconds of the rolling window used for filtering dynamic acceleration
AXYcutoff_fcutoff frequency in Hz for the Butterworth high-pass filter
AXYorderorder of the Butterworth high-pass filter
AXY