nasa_hls might help you to query, download and work with S30 and/or L30 data from NASA's Harmonized Landsat and Sentinel-2 project. If you are lucky, your area of interest is covered by the test sites (see also the map with available tiles).
The package comprises the following functionality:
- query the right scenes
- download scenes
- convert the HDF files (one per scene) in GeoTiff raster files (one per band)
- convert the bit-encoded Quality Assessment (QA) layer in a mask according to your needs
In case you have git installed you can install the package as follows:
pip install git+https://github.com/benmack/nasa_hls.git
If not and you have trouble to find a way, please open an issue.
This package requires that the GDAL command line tools. Specifically,
gdal_translate
is required by the functionconvert_hdf2tiffs
gdalinfo
is required by the functionget_cloud_coverage_from_hdf
Furthermore it depends on the Python packages bs4, requests and tqdm.
Tutorials are available in the documentation of the package