Let's see how much it will cost to translate all the Sentinel-2 JPEG2000 to COGs using AWS Lambda https://github.com/developmentseed/sentinel-2-cog (Note at this scale AWS Lambda might not be the cheapest option).
How many S2 scenes do we have on AWS?
$ curl https://sat-api.developmentseed.org/collections/sentinel-2-l1c/items | jq -r '.meta.found'
5 633 438
Lambda config
- Memory: 2048
- RunTime: 30 to 50 seconds (30 seconds for partial scene).
Sentinel-2 Info
- 12 bands
5 633 438 * 12 = 67 601 256
67 601 256 * 40s = 2 704 050 240 seconds
*
*we assume a 40 seconds mean time.
2048/1024 * 2 704 050 240 = 5 408 100 480 Go-s
(5 408 100 480 - 400 000) * 0.00001667 = 90 146.36 $
(67 601 256 - 1 000 000) / 1 000 000 * 0.20 = 13.32 $
90 146.36 + 13.32 = 90 159.68 $
67 601 256 / 10 000 (Concurrent Execution Limit) * 40 sec = 270 405seconds = 4506 minutes = 75 hours = 3.13 days
Do you know when is it tentatively available officially?