コード例 #1
0
def summarize_by_huc12(geometries):
    """Summarize by HUC12

    Parameters
    ----------
    geometries : Series of pygeos geometries, indexed by HUC12 id
    """

    summarize_raster_by_geometry(
        geometries,
        extract_by_geometry,
        outfilename=results_filename,
        progress_label="Calculating Florida Blueprint area by HUC12",
        bounds=FLORIDA_BOUNDS,
    )
コード例 #2
0
ファイル: midse.py プロジェクト: astutespruce/secas-blueprint
def summarize_by_huc12(geometries):
    """Summarize by HUC12

    Parameters
    ----------
    geometries : Series of pygeos geometries, indexed by HUC12 id
    """

    summarize_raster_by_geometry(
        geometries,
        extract_by_geometry,
        outfilename=results_filename,
        progress_label="Summarizing Middle Southeast Blueprint",
        bounds=MIDSE_BOUNDS,
    )
コード例 #3
0
def summarize_by_unit(geometries, out_dir):
    """Summarize by HUC12 or marine lease block

    Parameters
    ----------
    geometries : Series of pygeos geometries, indexed by HUC12 / marine lease block id
    out_dir : str
    """

    summarize_raster_by_geometry(
        geometries,
        extract_by_geometry,
        outfilename=out_dir / "blueprint.feather",
        progress_label="Summarizing Blueprint and Input Areas",
    )
コード例 #4
0
def summarize_by_huc12(geometries):
    """Summarize by HUC12

    Parameters
    ----------
    geometries : Series of pygeos geometries, indexed by HUC12 id
    """

    summarize_raster_by_geometry(
        geometries,
        extract_by_geometry,
        outfilename=out_dir / "gulf_hypoxia.feather",
        progress_label="Calculating Gulf Hypoxia area by HUC12",
        bounds=GULF_HYPOXIA_BOUNDS,
    )
コード例 #5
0
def summarize_by_marine_block(geometries):
    """Summarize by marine_block

    Parameters
    ----------
    geometries : Series of pygeos geometries, indexed by marine block ID
    """

    summarize_raster_by_geometry(
        geometries,
        extract_by_geometry,
        outfilename=results_filename,
        progress_label="Calculating Florida Marine Blueprint area by Marine Block",
        bounds=FLORIDA_MARINE_BOUNDS,
    )
コード例 #6
0
def summarize_by_huc12(geometries):
    """Summarize by HUC12

    Parameters
    ----------
    geometries : Series of pygeos geometries, indexed by HUC12 id
    out_dir : str
    """

    summarize_raster_by_geometry(
        geometries,
        extract_by_geometry,
        outfilename=results_filename,
        progress_label="Calculating NatureScape area by HUC12",
        bounds=NATURESCAPE_BOUNDS,
    )
コード例 #7
0
def summarize_by_unit(geometries, out_dir, marine=False):
    """Summarize by HUC12 / marine lease block

    Parameters
    ----------
    geometries : Series of pygeos geometries, indexed by HUC12 / marine lease block id
    out_dir : str or Path object
    marine : bool
        True for marine lease blocks, False otherwise
    """

    summarize_raster_by_geometry(
        geometries,
        extract_by_geometry,
        outfilename=out_dir / "southatlantic.feather",
        progress_label="Summarizing South Atlantic",
        bounds=SOUTHATLANTIC_BOUNDS,
        marine=marine,
    )