darsia.ImagingInterval#

class ImagingInterval(start_date, start_id, time_interval)[source]#

Bases: object

Right-open imaging interval.

Methods

contains(image_id)

Check if the image id is contained in the interval.

get_datetime(image_id)

Get the datetime of the image based on its id.

Attributes

start_date

Start date of the imaging interval.

start_id

Start id of the imaging interval.

time_interval

Time interval between images in the interval.

contains(image_id)[source]#

Check if the image id is contained in the interval.

Parameters:
image_idint

Image id to check.

Returns:
bool

True if the image id is contained in the interval, False otherwise.

get_datetime(image_id)[source]#

Get the datetime of the image based on its id.

Parameters:
image_idint

Image id to get the datetime for.

Returns:
datetime

The datetime of the image.

start_date#

Start date of the imaging interval.

start_id#

Start id of the imaging interval.

time_interval#

Time interval between images in the interval.