tyson-swetnam / porder

Simple CLI for Planet ordersV2 API
https://tyson-swetnam.github.io/porder/
Apache License 2.0
48 stars 12 forks source link

Suggestion: filter by acquisition time #47

Closed tillmann123456 closed 3 years ago

tillmann123456 commented 3 years ago

Hi Samapriya,

I'd have a suggestion for an additional filter criterion for the idlist command, namely the time of day at which the image was acquired. Or is there perhaps a way to do this already?

Thanks a lot,

Tillmann

samapriya commented 3 years ago

Hi @tillmann123456 This issue has now been integrated as an enhancement and you can pass date and time together for the search function/idlist command. For example all of these are valid. This feature is available in version 0.8.1 onwards

2021-01-01
or
2021-01-01T09:10:10
or
2021-01-01T14:12
tillmann123456 commented 3 years ago

Great, thanks. Do I understand correctly that this would not allow me yet to search in one go for, say, all images taken between 9am and 11am local time on any given day in 2020? That would be useful for my application, but perhaps that's a rather limited use case.

samapriya commented 3 years ago

Yes you can use the time filter applies to both start and end dates to the same date

So --start 2021-03-26T09:00 --end 2021-03-26T11:00 gets you there based on local time and searches within the same date within a two hour window

Good luck