Camera.apply_date_range¶
- Camera.apply_date_range()[source]¶
This method filters images by date, setting any whose
observation_date
is not betweenstart_date
andend_date
to False.This method uses the
start_date
andend_date
attributes to create a date range. It then checks theobservation_date
attribute of eachOpNavImage
contained in theimages
to identify which images are in the specified date range. If an image was not taken during the specific date range, then the corresponding index of theimage_mask
list is set toFalse
.Note
This method must be called after all other filter methods, such as
only_long_on()
.Note
If either the
start_date
orend_date
attributes are type None, they will not be consideredNote
This method does not turn on any images that are turned off, even if they fall within the date range.