Guest User

Untitled

a guest
Jun 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. for ids in id_list:
  2. my_asset = client.get_assets_by_id('PSScene4Band', ids).get()
  3. client.activate(my_asset['analytic'])
  4. my_asset = client.get_assets_by_id('PSScene4Band', ids).get()
  5. callback = api.write_to_file('**dir**')
  6. body = client.download(my_asset['analytic'], callback=callback)
  7. body.await()
  8. time.sleep(30)
Add Comment
Please, Sign In to add comment