Skip to content
Snippets Groups Projects
Commit 8abcbdf3 authored by ImmaSerra's avatar ImmaSerra
Browse files

Changes functions

parent b07d760c
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,10 @@ import json
#fileTemporal = sys.argv[2] #txt file
def bbox():
coord = ARG['bbox'].split(',')
return coord
def main():
ARG=json.load(open("vlabparams.json","r"))
......@@ -78,12 +82,8 @@ def main():
coord = ARG['bbox'].split(',')
print(coord[0])
def bbox():
coord = ARG['bbox'].split(',')
return coord
env_coord = bbox()
env_coord
#print(ARG['bbox'][0]) #Error 4 primer digit
#print(ARG['bbox'][1]) #Error 3 segon digit
......@@ -104,7 +104,6 @@ def main():
processinglevel = 'Level-2A',
cloudcoverpercentage = (0, 80)) #80%
print('files:',len(products))
if not os.path.exists('output'):
......@@ -124,7 +123,6 @@ def main():
f.write(str(api.get_product_odata(i)['title'])+'\n')
f.close()
# convert to Pandas DataFrame
products_df = api.to_dataframe(products)
#print(products_df)
......@@ -173,4 +171,3 @@ def main():
if __name__ == "__main__":
main()
#bbox()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment