def export_gleam(): # if the working directory is alread ml_drought don't need ../data if Path('.').absolute().as_posix().split('/')[-1] == 'ml_drought': data_path = Path('data') else: data_path = Path('../data') exporter = GLEAMExporter(data_folder=data_path) exporter.export(['E', 'SMroot', 'SMsurf'], 'monthly')
def export_gleam(): exporter = GLEAMExporter(data_folder=get_data_path()) exporter.export(["E", "SMroot", "SMsurf"], "monthly")