UCL-ShippingGroup / pyrate

Python AIS Tools Environment
MIT License
25 stars 10 forks source link

From/To correction for get_messages_for_vessel() #1

Open juliaschaumeier opened 8 years ago

juliaschaumeier commented 8 years ago

repositories.aisdb.get_messages_for_vessel() does not seem to carry from_ts and to_ts through to get_message_stream. The result is the entire history of the vessel even if asked for a subset.

juliaschaumeier commented 8 years ago

Another issue is that get_messages_for_vessel() sometimes returns a different number of messages than calling get_message_stream() even if there is one MMSI for that IMO only. How are the date ranges (firstseen/lastseen) from imo_list dealt with? Is it a problem of message_id=5?