Skip to content

Commit

Permalink
somente buscar L4
Browse files Browse the repository at this point in the history
  • Loading branch information
gracielle-ch committed May 19, 2020
1 parent 85d1d9a commit 1dfbeed
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions forest_monitor/stac_compose/business.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,19 @@ def search_kepler_stac(cls, url, collection, bbox, time=False):
response = StacComposeServices.search_items(url, collection.upper(), query)
if not response:
return []
return response['features'] if response.get('features') else [response]

#retornar somente parametros L4
features = response['features'] if response.get('features') else [response]
listL4 = []
padrao = "L4"
for i in features:

if padrao in i['id']:
#print(i['id'])
listL4.append(i)

return listL4



@classmethod
def search(cls, collections, bbox, cloud_cover=False, time=False, limit=100):
Expand Down

0 comments on commit 1dfbeed

Please sign in to comment.