How to use the hydrafloods.fetch function in hydrafloods

To help you get started, we’ve selected a few hydrafloods examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Servir-Mekong / hydra-floods / hydrafloods / collection.py View on Github external
def extract(self, date, region, credentials, outDir='./', gridding_radius=50000):
        files = fetch.atms(credentials, startTime=date,
                           endTime=None, region=region, outDir=outDir)
        geotiffs = list(
            map(lambda x: preprocess.atms(x, gridding_radius), files))
        return geotiffs
github Servir-Mekong / hydra-floods / hydrafloods / processing.py View on Github external
def extract(self,date,region,outdir='./',creds=None,gridding_radius=50000):
        files = fetch.atms(date,region,outdir,creds)
        geotiffs = list(map(lambda x: preprocess.atms(x,gridding_radius), files))
        return geotiffs