You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alternate name possibilities: convert_to_route()as.BirdFlowRoutes() (method of generic as),
Most of the work is already done by snap_to_birdflow(), issue #155, pr #157
This would be a wrapper to snap_to_birdflow() that makes the output a formal BirdFlowRoutes object.
At a minimum it needs to:
Call snap_to_birdflow()
Create a (likely new) "route_id" that server as a unique ID for every combination of values in id_cols
Assign the BirdFlowRoutes class
Add information from bf to the attributes.
Set metadata$route_type to something possibly set by an additional argument. Output of route() uses "synthetic" we need to figure out what types we allow for real data. I suspect it might be good to keep track of sensor type something like: "gps", "light" "modis", "banding". The MigConnectivity package has names it uses for different sensor types, be consistent with their terms if reasonable.
Possibly collect other metadata (aggregation method, mean number of points per week, ???)
A few other related cleanup items:
See if it's worth calling snap_to_birdflow() from interval_log_likelihood() to eliminate redundant code.
Error codes in interval_log_likelihood() are slightly different than snap_to_birdflow() standardize them.
BirdFlowRoutes produced by route() have a different column order than snap_to_birdflow(). Standardize.
Possibly save some stats during aggregation on the dispersion of the points that were aggregated.
The text was updated successfully, but these errors were encountered:
Specifications and expectations of BirdFlowRoute objects
Single species.
Maximum length of 1 year per route id. This is logistically required by plot_routes(). Unclear whether it's OK to start and end on the same timestep (OK with current synthetic routes, maybe not with @slager's working specification)
At most one point per route per timestep.
Dates are monotonic within a route ID (rows are ordered by date) and all routes are either forward or backwards within a single route object. Backwards only really makes sense with synthetic routes but is an option there.
When calculating track stats we shouldn't be limiting the track to locations the model thinks is valid. Therefore this function and snap_to_birdflow() need an argument - maybe valid_only - that controls whether the output should be limited to valid locations.
plot_routes() is now used for real data and for synthetic routes generated in python, as well as for the output of route(). It needs to be more robust and make fewer assumptions about the data. Switching from cyclical to monotonic dates will help a lot. Dropping any use of timesteps in the plotting code would also be good.
as_route()
Alternate name possibilities:
convert_to_route()
as.BirdFlowRoutes()
(method of genericas
),Most of the work is already done by
snap_to_birdflow()
, issue #155, pr #157This would be a wrapper to
snap_to_birdflow()
that makes the output a formal BirdFlowRoutes object.At a minimum it needs to:
snap_to_birdflow()
id_cols
bf
to the attributes.metadata$route_type
to something possibly set by an additional argument. Output ofroute()
uses "synthetic" we need to figure out what types we allow for real data. I suspect it might be good to keep track of sensor type something like: "gps", "light" "modis", "banding". The MigConnectivity package has names it uses for different sensor types, be consistent with their terms if reasonable.A few other related cleanup items:
snap_to_birdflow()
frominterval_log_likelihood()
to eliminate redundant code.interval_log_likelihood()
are slightly different thansnap_to_birdflow()
standardize them.BirdFlowRoutes
produced byroute()
have a different column order thansnap_to_birdflow()
. Standardize.The text was updated successfully, but these errors were encountered: