Created
April 26, 2021 05:33
-
-
Save plant99/14126c0fd585c03e7b2dc5464efd761c to your computer and use it in GitHub Desktop.
question related to sat-search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cloud_cover = 10 | |
search = Search( | |
url="https://earth-search.aws.element84.com/v0", | |
bbox=bbox, | |
query={ | |
"eo:cloud_cover": {"lt": cloud_cover} | |
}, | |
sort=[{"field": "eo:cloud_cover", "direction": "asc"}], | |
) | |
list(search.items()) | |
# gives the following result | |
## [S2A_44QQF_20210417_0_L1C, S2A_44QQF_20210417_0_L2A, S2A_44QQF_20210417_0_L2A, S2B_44QQF_20210412_0_L1C, S2B_44QQF_20210412_0_L2A, S2B_44QQF_20210412_0_L2A, S2A_44QQF_20210407_0_L1C, S2A_44QQF_20210407_0_L2A, S2A_44QQF_20210407_0_L2A, S2B_44QQF_20210402_0_L1C, S2B_44QQF_20210402_0_L2A, S2B_44QQF_20210402_0_L2A, LC08_L1TP_141047_20210329_20210329_01_T1, S2A_44QQF_20210328_0_L1C, S2A_44QQF_20210328_0_L2A, S2A_44QQF_20210328_0_L2A, S2B_44QQF_20210323_0_L1C, S2B_44QQF_20210323_0_L2A, S2B_44QQF_20210323_0_L2A, S2B_44QQF_20210313_0_L1C, S2B_44QQF_20210313_0_L2A, S2B_44QQF_20210313_0_L2A, LC08_L1TP_141047_20210313_20210317_01_T1, S2A_44QQF_20210308_0_L1C, S2A_44QQF_20210308_0_L2A, S2A_44QQF_20210308_0_L2A, S2B_44QQF_20210303_0_L1C, S2B_44QQF_20210303_0_L2A, S2B_44QQF_20210303_0_L2A, S2A_44QQF_20210226_0_L1C, S2A_44QQF_20210226_0_L2A, S2A_44QQF_20210226_0_L2A, LC08_L1TP_141047_20210225_20210304_01_T1, S2A_44QQF_20210216_0_L1C, S2A_44QQF_20210216_0_L2A, S2A_44QQF_20210216_0_L2A, S2B_44QQF_20210211_0_L1C, S2B_44QQF_20210211_0_L2A, S2B_44QQF_20210211_0_L2A, LC08_L1TP_141047_20210209_20210305_01_T1, S2A_44QQF_20210206_0_L1C, S2A_44QQF_20210206_0_L2A, S2A_44QQF_20210206_0_L2A, S2B_44QQF_20210201_0_L1C, S2B_44QQF_20210201_0_L2A, S2B_44QQF_20210201_0_L2A, S2A_44QQF_20210117_0_L1C, S2A_44QQF_20210117_0_L2A, S2A_44QQF_20210117_0_L2A, S2B_44QQF_20210112_0_L1C, S2B_44QQF_20210112_0_L2A, S2B_44QQF_20210112_0_L2A, S2B_44QQF_20210102_0_L1C, S2B_44QQF_20210102_0_L2A, S2B_44QQF_20210102_0_L2A, S2A_44QQF_20201228_0_L1C, S2A_44QQF_20201228_0_L2A, S2A_44QQF_20201228_0_L2A, S2B_44QQF_20201223_0_L2A, S2B_44QQF_20201223_0_L2A, S2B_44QQF_20201213_0_L1C, S2B_44QQF_20201213_0_L2A, S2B_44QQF_20201213_0_L2A, S2A_44QQF_20201208_0_L1C, S2A_44QQF_20201208_0_L2A, S2A_44QQF_20201208_0_L2A, LC08_L1TP_141047_20201207_20201218_01_T1, S2A_44QQF_20201118_0_L1C, S2A_44QQF_20201118_0_L2A, S2A_44QQF_20201118_0_L2A, S2B_44QQF_20201113_0_L1C, S2B_44QQF_20201113_0_L2A, S2B_44QQF_20201113_0_L2A, S2A_44QQF_20201108_0_L1C, S2A_44QQF_20201108_0_L2A, S2A_44QQF_20201108_0_L2A, S2B_44QQF_20201103_0_L1C, S2B_44QQF_20201103_0_L2A, S2B_44QQF_20201103_0_L2A, S2A_44QQF_20201029_0_L1C, S2A_44QQF_20201029_0_L2A, S2A_44QQF_20201029_0_L2A, S2B_44QQF_20200904_0_L2A, S2B_44QQF_20200904_0_L2A, S2A_44QQF_20200830_0_L1C, S2A_44QQF_20200830_0_L2A, S2A_44QQF_20200830_0_L2A, S2A_44QQF_20200820_0_L2A, S2A_44QQF_20200820_0_L2A, S2B_44QQF_20200606_0_L1C, S2B_44QQF_20200606_0_L2A, S2B_44QQF_20200606_0_L2A, S2B_44QQF_20200527_0_L1C, S2B_44QQF_20200527_0_L2A, S2B_44QQF_20200527_0_L2A, S2A_44QQF_20200522_0_L1C, S2A_44QQF_20200522_0_L2A, S2A_44QQF_20200522_0_L2A, S2A_44QQF_20200512_0_L1C, S2A_44QQF_20200512_0_L2A, S2A_44QQF_20200512_0_L2A, S2A_44QQF_20200502_0_L1C, S2A_44QQF_20200502_0_L2A, S2A_44QQF_20200502_0_L2A, S2B_44QQF_20200427_0_L1C, S2B_44QQF_20200427_0_L2A, S2B_44QQF_20200427_0_L2A, S2B_44QQF_20200417_0_L1C, S2B_44QQF_20200417_0_L2A, S2B_44QQF_20200417_0_L2A, S2A_44QQF_20200412_0_L1C, S2A_44QQF_20200412_0_L2A, S2A_44QQF_20200412_0_L2A, S2A_44QQF_20200402_0_L1C, S2A_44QQF_20200402_0_L2A, S2A_44QQF_20200402_0_L2A, S2B_44QQF_20200328_0_L1C, S2B_44QQF_20200328_0_L2A, S2B_44QQF_20200328_0_L2A, S2B_44QQF_20200318_0_L1C, S2B_44QQF_20200318_0_L2A, S2B_44QQF_20200318_0_L2A, S2A_44QQF_20200313_0_L1C, S2A_44QQF_20200313_0_L2A, S2A_44QQF_20200313_0_L2A, S2A_44QQF_20200303_0_L1C, S2A_44QQF_20200303_0_L2A, S2A_44QQF_20200303_0_L2A, S2B_44QQF_20200227_0_L1C, S2B_44QQF_20200227_0_L2A, S2B_44QQF_20200227_0_L2A, S2A_44QQF_20200222_0_L1C, S2A_44QQF_20200222_0_L2A, S2A_44QQF_20200222_0_L2A, S2B_44QQF_20200217_0_L1C, S2B_44QQF_20200217_0_L2A, S2B_44QQF_20200217_0_L2A, S2A_44QQF_20200212_0_L1C, S2A_44QQF_20200212_0_L2A, S2A_44QQF_20200212_0_L2A, S2A_44QQF_20200123_0_L1C, S2A_44QQF_20200123_0_L2A, S2A_44QQF_20200123_0_L2A, S2B_44QQF_20200118_0_L1C, S2B_44QQF_20200118_0_L2A, S2B_44QQF_20200118_0_L2A, S2A_44QQF_20200113_0_L1C, S2A_44QQF_20200113_0_L2A, S2A_44QQF_20200113_0_L2A, S2B_44QQF_20200108_0_L1C, S2B_44QQF_20200108_0_L2A, S2B_44QQF_20200108_0_L2A, S2B_44QQF_20191229_0_L1C, S2B_44QQF_20191229_0_L2A, S2B_44QQF_20191229_0_L2A, S2B_44QQF_20191219_0_L1C, S2B_44QQF_20191219_0_L2A, S2B_44QQF_20191219_0_L2A, S2A_44QQF_20191214_0_L1C, S2A_44QQF_20191214_0_L2A, S2A_44QQF_20191214_0_L2A, S2B_44QQF_20191209_0_L1C, S2B_44QQF_20191209_0_L2A, S2B_44QQF_20191209_0_L2A, S2A_44QQF_20191204_0_L1C, S2A_44QQF_20191204_0_L2A, S2A_44QQF_20191204_0_L2A, S2B_44QQF_20191129_0_L1C, S2B_44QQF_20191129_0_L2A, S2B_44QQF_20191129_0_L2A, S2A_44QQF_20191124_0_L1C, S2A_44QQF_20191124_1_L2A, S2A_44QQF_20191124_1_L2A, S2B_44QQF_20191119_0_L1C, S2B_44QQF_20191119_0_L2A, S2B_44QQF_20191119_0_L2A, S2A_44QQF_20191114_0_L1C, S2A_44QQF_20191114_0_L2A, S2A_44QQF_20191114_0_L2A, S2A_44QQF_20191104_0_L1C, S2A_44QQF_20191104_0_L2A, S2A_44QQF_20191104_0_L2A, S2A_44QQF_20191005_0_L1C, S2A_44QQF_20191005_0_L2A, S2A_44QQF_20191005_0_L2A, S2A_44QQF_20190528_0_L1C, S2A_44QQF_20190528_0_L2A, S2A_44QQF_20190528_0_L2A, S2A_44QQF_20190518_0_L1C, S2A_44QQF_20190518_0_L2A, S2A_44QQF_20190518_0_L2A, S2A_44QQF_20190508_1_L1C, S2A_44QQF_20190508_1_L2A, S2A_44QQF_20190508_1_L2A, S2A_44QQF_20190428_0_L1C, S2A_44QQF_20190428_1_L2A, S2A_44QQF_20190428_1_L2A, S2A_44QQF_20190428_1_L1C, S2A_44QQF_20190428_0_L2A, S2A_44QQF_20190428_0_L2A, S2B_44QQF_20190423_0_L1C, S2B_44QQF_20190423_0_L2A, S2B_44QQF_20190423_0_L2A, S2A_44QQF_20190418_0_L1C, S2A_44QQF_20190418_0_L2A, S2A_44QQF_20190418_0_L2A, S2B_44QQF_20190413_0_L1C, S2B_44QQF_20190413_0_L2A, S2B_44QQF_20190413_0_L2A, S2A_44QQF_20190408_0_L1C, S2A_44QQF_20190408_0_L2A, S2A_44QQF_20190408_0_L2A, S2B_44QQF_20190403_0_L1C, S2B_44QQF_20190403_0_L2A, S2B_44QQF_20190403_0_L2A, S2A_44QQF_20190329_0_L1C, S2A_44QQF_20190329_0_L2A, S2A_44QQF_20190329_0_L2A, S2B_44QQF_20190324_0_L1C, S2B_44QQF_20190324_0_L2A, S2B_44QQF_20190324_0_L2A, S2A_44QQF_20190319_0_L1C, S2A_44QQF_20190319_0_L2A, S2A_44QQF_20190319_0_L2A, S2B_44QQF_20190314_0_L1C, S2B_44QQF_20190314_0_L2A, S2B_44QQF_20190314_0_L2A, S2A_44QQF_20190309_0_L1C, S2A_44QQF_20190309_0_L2A, S2A_44QQF_20190309_0_L2A, S2A_44QQF_20190227_0_L1C, S2A_44QQF_20190227_0_L2A, S2A_44QQF_20190227_0_L2A, S2B_44QQF_20190222_0_L1C, S2B_44QQF_20190222_0_L2A, S2B_44QQF_20190222_0_L2A, S2A_44QQF_20190217_0_L1C, S2A_44QQF_20190217_0_L2A, S2A_44QQF_20190217_0_L2A, S2B_44QQF_20190212_0_L1C, S2B_44QQF_20190212_0_L2A, S2B_44QQF_20190212_0_L2A, S2A_44QQF_20190207_0_L1C, S2A_44QQF_20190207_0_L2A, S2A_44QQF_20190207_0_L2A, S2B_44QQF_20190202_0_L1C, S2B_44QQF_20190202_0_L2A, S2B_44QQF_20190202_0_L2A, S2B_44QQF_20190123_0_L1C, S2B_44QQF_20190123_0_L2A, S2B_44QQF_20190123_0_L2A, S2A_44QQF_20190118_0_L1C, S2A_44QQF_20190118_0_L2A, S2A_44QQF_20190118_0_L2A, S2B_44QQF_20190113_0_L1C, S2B_44QQF_20190113_0_L2A, S2B_44QQF_20190113_0_L2A, S2A_44QQF_20190108_0_L1C, S2A_44QQF_20190108_0_L2A, S2A_44QQF_20190108_0_L2A, S2B_44QQF_20190103_0_L1C, S2B_44QQF_20190103_0_L2A, S2B_44QQF_20190103_0_L2A, S2A_44QQF_20181229_0_L1C, S2A_44QQF_20181229_0_L2A, S2A_44QQF_20181229_0_L2A, S2B_44QQF_20181224_0_L1C, S2B_44QQF_20181224_0_L2A, S2B_44QQF_20181224_0_L2A, S2B_44QQF_20181214_0_L1C, S2B_44QQF_20181214_0_L2A, S2B_44QQF_20181214_0_L2A, S2B_44QQF_20181204_0_L1C, S2B_44QQF_20181204_0_L2A, S2B_44QQF_20181204_0_L2A, S2A_44QQF_20181129_0_L1C, S2A_44QQF_20181129_0_L2A, S2A_44QQF_20181129_0_L2A, S2B_44QQF_20181124_0_L1C, S2B_44QQF_20181124_0_L2A, S2B_44QQF_20181124_0_L2A, S2A_44QQF_20181119_0_L1C, S2A_44QQF_20181119_0_L2A, S2A_44QQF_20181119_0_L2A, S2B_44QQF_20181104_0_L1C, S2B_44QQF_20181104_0_L2A, S2B_44QQF_20181104_0_L2A, S2A_44QQF_20181030_0_L1C, S2A_44QQF_20181030_0_L2A, S2A_44QQF_20181030_0_L2A, S2B_44QQF_20181025_0_L1C, S2B_44QQF_20181025_0_L2A, S2B_44QQF_20181025_0_L2A, S2A_44QQF_20181020_0_L1C, S2A_44QQF_20181020_0_L2A, S2A_44QQF_20181020_0_L2A, S2B_44QQF_20181005_0_L1C, S2B_44QQF_20181005_0_L2A, S2B_44QQF_20181005_0_L2A, S2A_44QQF_20180930_0_L1C, S2A_44QQF_20180930_0_L2A, S2A_44QQF_20180930_0_L2A, S2B_44QQF_20180925_0_L1C, S2B_44QQF_20180925_0_L2A, S2B_44QQF_20180925_0_L2A, S2B_44QQF_20180915_0_L1C, S2B_44QQF_20180915_0_L2A, S2B_44QQF_20180915_0_L2A, S2B_44QQF_20180617_0_L1C, S2B_44QQF_20180617_0_L2A, S2B_44QQF_20180617_0_L2A, S2A_44QQF_20180513_0_L2A, S2A_44QQF_20180513_0_L2A, S2B_44QQF_20180508_0_L1C, S2B_44QQF_20180508_0_L2A, S2B_44QQF_20180508_0_L2A, S2B_44QQF_20180418_0_L1C, S2B_44QQF_20180418_0_L2A, S2B_44QQF_20180418_0_L2A, S2A_44QQF_20180413_0_L1C, S2A_44QQF_20180413_0_L2A, S2A_44QQF_20180413_0_L2A, S2B_44QQF_20180408_0_L1C, S2B_44QQF_20180408_0_L2A, S2B_44QQF_20180408_0_L2A, S2B_44QQF_20180329_0_L1C, S2B_44QQF_20180329_0_L2A, S2B_44QQF_20180329_0_L2A, S2B_44QQF_20180319_0_L1C, S2B_44QQF_20180319_0_L2A, S2B_44QQF_20180319_0_L2A, S2B_44QQF_20180309_0_L1C, S2B_44QQF_20180309_0_L2A, S2B_44QQF_20180309_0_L2A, S2A_44QQF_20180304_0_L1C, S2A_44QQF_20180304_0_L2A, S2A_44QQF_20180304_0_L2A, S2B_44QQF_20180227_0_L1C, S2B_44QQF_20180227_0_L2A, S2B_44QQF_20180227_0_L2A, S2A_44QQF_20180222_0_L1C, S2A_44QQF_20180222_1_L2A, S2A_44QQF_20180222_1_L2A, S2B_44QQF_20180128_0_L1C, S2B_44QQF_20180128_0_L2A, S2B_44QQF_20180128_0_L2A, S2B_44QQF_20180118_0_L1C, S2B_44QQF_20180118_0_L2A, S2B_44QQF_20180118_0_L2A, S2B_44QQF_20180108_0_L1C, S2B_44QQF_20180108_0_L2A, S2B_44QQF_20180108_0_L2A, S2A_44QQF_20180103_0_L1C, S2A_44QQF_20180103_0_L2A, S2A_44QQF_20180103_0_L2A, S2B_44QQF_20171229_0_L1C, S2B_44QQF_20171229_0_L2A, S2B_44QQF_20171229_0_L2A, S2A_44QQF_20171214_0_L1C, S2A_44QQF_20171214_0_L2A, S2A_44QQF_20171214_0_L2A, S2B_44QQF_20171129_0_L1C, S2B_44QQF_20171129_0_L2A, S2B_44QQF_20171129_0_L2A, S2A_44QQF_20171124_0_L1C, S2A_44QQF_20171124_0_L2A, S2A_44QQF_20171124_0_L2A, S2B_44QQF_20171109_0_L1C, S2B_44QQF_20171109_0_L2A, S2B_44QQF_20171109_0_L2A, S2A_44QQF_20171104_0_L1C, S2A_44QQF_20171104_0_L2A, S2A_44QQF_20171104_0_L2A, S2B_44QQF_20171030_0_L1C, S2B_44QQF_20171030_0_L2A, S2A_44QQF_20171015_0_L1C, S2A_44QQF_20171015_0_L2A, S2A_44QQF_20171015_0_L2A, S2A_44QQF_20170925_0_L1C, S2A_44QQF_20170925_0_L2A, S2A_44QQF_20170925_0_L2A, S2A_44QQF_20170508_0_L1C, S2A_44QQF_20170508_0_L2A, S2A_44QQF_20170508_0_L2A, S2A_44QQF_20170329_0_L1C, S2A_44QQF_20170329_0_L2A, S2A_44QQF_20170329_0_L2A, S2A_44QQF_20170217_0_L1C, S2A_44QQF_20170217_0_L2A, S2A_44QQF_20170217_0_L2A, S2A_44QQF_20170207_0_L1C, S2A_44QQF_20170207_0_L2A, S2A_44QQF_20170207_0_L2A, S2A_44QQF_20170118_0_L1C, S2A_44QQF_20170118_0_L2A, S2A_44QQF_20170118_0_L2A, S2A_44QQF_20170108_0_L1C, S2A_44QQF_20170108_0_L2A, S2A_44QQF_20170108_0_L2A, S2A_44QQF_20161229_0_L1C, S2A_44QQF_20161129_0_L1C, S2A_44QQF_20160523_0_L1C, S2A_44QQF_20160413_0_L1C, S2A_44QQF_20160213_0_L1C] | |
# if you see there are some LC08 in result, to filter them I added the following but I get an empty list | |
product = "landsat-8-l1-c1" | |
search = Search( | |
url="https://earth-search.aws.element84.com/v0", | |
bbox=bbox, | |
query={ | |
"eo:cloud_cover": {"lt": cloud_cover}, | |
"collection": {"eq": product}, | |
}, | |
sort=[{"field": "eo:cloud_cover", "direction": "asc"}], | |
) | |
list(search.items()) | |
# [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment