Skip to content

download

download_usa_polygon #

download_usa_polygon(
    output_name: str = USA_POLYGON, output_directory: str | Path = DATA_DIR
) -> list[str | Path]

Download USA polygon file.

Parameters:

Name Type Description Default
output_name str

What name to give to downloaded file

USA_POLYGON
output_directory str | Path

Where to save the downloaded file

DATA_DIR

Returns:

Source code in geospatial_tools/download.py
37
38
39
40
41
42
43
44
45
46
47
48
49
50
def download_usa_polygon(output_name: str = USA_POLYGON, output_directory: str | Path = DATA_DIR) -> list[str | Path]:
    """
    Download USA polygon file.

    Args:
      output_name: What name to give to downloaded file
      output_directory: Where to save the downloaded file

    Returns:
    """
    file_list = _download_from_link(
        target_download=USA_POLYGON, output_name=output_name, output_directory=output_directory
    )
    return file_list

download_s2_tiling_grid #

download_s2_tiling_grid(
    output_name: str = SENTINEL_2_TILLING_GRID, output_directory: str | Path = DATA_DIR
) -> list[str | Path]

" Download Sentinel 2 tiling grid file.

Parameters:

Name Type Description Default
output_name str

What name to give to downloaded file

SENTINEL_2_TILLING_GRID
output_directory str | Path

Where to save the downloaded file

DATA_DIR

Returns:

Source code in geospatial_tools/download.py
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
def download_s2_tiling_grid(
    output_name: str = SENTINEL_2_TILLING_GRID, output_directory: str | Path = DATA_DIR
) -> list[str | Path]:
    """
    " Download Sentinel 2 tiling grid file.

    Args:
      output_name: What name to give to downloaded file
      output_directory: Where to save the downloaded file

    Returns:
    """
    file_list = _download_from_link(
        target_download=SENTINEL_2_TILLING_GRID, output_name=output_name, output_directory=output_directory
    )
    return file_list