Skip to content

matt-bernstein

Latest
Compare
Choose a tag to compare
@vascobnunes vascobnunes released this 11 May 16:49
· 31 commits to master since this release
a5db062

This release includes a lot of developments made by Matt Bernstein (https://github.com/matt-bernstein). Thank you!

Features:

  • Previously, fels was usable only from the CLI. Now, you can from fels import run_fels in Python.
    - run_fels returns a list of matching urls or dates, for further use in scripting
    - added Python-friendly alternate args, for example, datetime.date(2015, 1, 1) instead of '2015-01-01'
    - Also provides access to utility functions like convert_wkt_to_scene, landsatdir_to_date, safedir_to_datetime
  • For Sentinel-2, add --reject_old to read the manifest.safe to reject duplicate images that are not in the correct new (post-2016) format
  • Add --dates to return dates of each matching image instead of urls
  • Add --geometry as an alternative to scene. This takes a GeoJSON or WKT string and parses the shapefile from each satellite in order to find the matching scenes.
    --includeoverlap switches between returning overlapping scenes or just completely containing scenes, in the case where geometry is bigger than a point.

Fixes:

  • Refactored into files utils.py, landsat.py, sentinel2.py, and fels.py for readability
  • Landsat 7 doesn't try to grab missing bands 6, 9
  • Landsat 7, 8 grab an ANG.txt metadata file they were missing
  • Fixed a makedirs error when --output is nonempty
  • Now works with python 3.8. I'm not sure we did anything to fix this, actually; it might have worked as-is? There was a note in the README about it. But it has now been thoroughly tested on 3.8.