Skip to content

SpatialDays/usgs-product-finder-pypi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usgs-product-finder-pypi

Simple utility to find USGS Landsat products by AOI provided as WKT or shapely object.

Installation

pip3 install usgs-product-finder

Usage

from usgs_product_finder import UsgsProductFinder

# Initialize finder
usgs_product_finder = UsgsProductFinder()
# You can also specify a path where to download the products and
# maximum age of the files in days

# usgs_product_finder = UsgsProductFinder(
#                       path_for_usgs_data="/home/user/usgs-product-finder", 
#                       max_age_of_usgs_data=7)


# define aoi in wkt
aoi_wkt = """MULTIPOLYGON (((-175 -12,-179.99999 -12,-179.99999 -20,-175 -20,-175 -12)), ((175 -12,179.99999
    -12,179.99999 -20,175 -20,175 -12))) """
    
# find products
pandas_obj = usgs_product_finder.find_products_via_wkt(aoi_wkt, 8, minimal_output=False)
list_of_dicts = usgs_product_finder.find_products_via_wkt(aoi_wkt, 8, minimal_output=True)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages