Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore CompareGtE SubscriptLoad AttributeLoad NameLoad attr Index Num Num If NameLoad body Assign NameStore TupleLoad NameLoad orelse Assign NameStore TupleLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Str Str Str Dict NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If CompareIn SubscriptLoad NameLoad Index Str NameLoad body Return Call NameLoad NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad body Pass TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass TryExcept body If CompareIn SubscriptLoad NameLoad Index Str NameLoad body Return Call NameLoad NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Str Str body Return NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body TryExcept body With Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad NameStore body Assert CompareGt Call NameLoad NameLoad Num FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad NameStore body For NameStore NameLoad body Expr Yield NameLoad decorator_list Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse If CompareIn SubscriptLoad NameLoad Index Str BinOpAdd NameLoad ListLoad Str body Assign NameStore ListLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore ListLoad Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad Call NameLoad NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Index Str Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore ListLoad Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Dict Str Str Str ListLoad Assign SubscriptStore NameLoad Index Str ListComp NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad Call NameLoad BinOpDiv BinOpSub NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad BinOpDiv BinOpSub NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Return TupleLoad TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore TupleStore NameStore NameStore TupleStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore BinOpMult TupleLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore BinOpMult TupleLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore NameLoad orelse If CompareNotEq Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Assign TupleStore TupleStore NameStore NameStore TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Index Num Num Assign NameStore Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Index Num Num Assign NameStore Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Index Num Num Assign NameStore Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Index Num Num Assign NameStore TupleLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad If NameLoad body Assign NameStore TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad orelse Assign NameStore TupleLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore BinOpMult Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpAdd NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpAdd NameLoad SubscriptLoad NameLoad Index Num If NameLoad body Assign SubscriptStore NameLoad ExtSlice Slice Slice NameLoad NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad NameLoad Slice NameLoad NameLoad orelse Assign SubscriptStore NameLoad ExtSlice Slice NameLoad NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad NameLoad Slice NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword CompareEq NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore BinOpMult UnaryOpInvert AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr orelse If NameLoad body Assign NameStore NameLoad orelse Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Num Expr Call AttributeLoad NameLoad attr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body If NameLoad body Raise Call NameLoad Str orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A __future__ absolute_import __future__ division N/A sys N/A json N/A math N/A fiona N/A rasterio N/A warnings affine Affine N/A numpy np shapely.geos ReadingError shapely wkt wkb collections Iterable Mapping N/A geom_types N/A Point LineString Polygon MultiPoint MultiLineString MultiPolygon N/A PY3 N/A N/A N/A sys version_info N/A 0 3 N/A PY3 N/A N/A string_types N/A str N/A N/A string_types N/A basestring wrap_geom N/A N/A geom N/A N/A N/A  Wraps a geometry dict in an GeoJSON Feature
     N/A N/A type properties geometry Feature N/A geom N/A parse_feature N/A N/A obj N/A N/A N/A  Given a python object
    attemp to a GeoJSON-like Feature from it
     N/A N/A hasattr obj __geo_interface__ N/A N/A gi N/A obj __geo_interface__ N/A N/A N/A gi N/A type geom_types N/A N/A N/A wrap_geom gi N/A N/A N/A N/A gi N/A type Feature N/A N/A gi N/A N/A N/A shape N/A N/A wkt loads obj N/A N/A wrap_geom N/A shape __geo_interface__ N/A N/A N/A N/A ReadingError TypeError AttributeError N/A N/A N/A N/A N/A shape N/A N/A wkb loads obj N/A N/A wrap_geom N/A shape __geo_interface__ N/A N/A N/A N/A ReadingError TypeError N/A N/A N/A N/A N/A N/A N/A obj N/A type geom_types N/A N/A N/A wrap_geom obj N/A N/A N/A N/A obj N/A type Feature N/A N/A obj N/A N/A N/A N/A AssertionError TypeError N/A N/A N/A N/A ValueError N/A Can't parse %s as a geojson Feature object obj N/A read_features N/A N/A obj layer N/A 0 N/A N/A features_iter None N/A N/A isinstance obj string_types N/A N/A N/A N/A N/A N/A fiona open obj r layer layer src N/A N/A N/A N/A len src 0 fiona_generator N/A N/A obj N/A N/A N/A N/A N/A fiona open obj r layer layer src N/A N/A feature src N/A N/A N/A feature N/A N/A features_iter N/A fiona_generator obj N/A N/A N/A N/A AssertionError TypeError IOError OSError N/A N/A N/A N/A mapping N/A N/A json loads obj N/A N/A N/A type mapping N/A N/A mapping N/A type FeatureCollection N/A N/A features_iter N/A mapping N/A features N/A N/A N/A N/A mapping N/A type N/A geom_types N/A Feature N/A N/A features_iter N/A N/A parse_feature mapping N/A N/A N/A ValueError N/A N/A features_iter N/A N/A parse_feature obj N/A N/A N/A isinstance obj Mapping N/A N/A N/A N/A type obj N/A N/A obj N/A type FeatureCollection N/A N/A features_iter N/A obj N/A features N/A N/A features_iter N/A N/A parse_feature obj N/A N/A N/A isinstance obj bytes N/A N/A features_iter N/A N/A parse_feature obj N/A N/A N/A hasattr obj __geo_interface__ N/A N/A mapping N/A obj __geo_interface__ N/A N/A N/A mapping N/A type FeatureCollection N/A N/A features_iter N/A mapping N/A features N/A N/A features_iter N/A N/A parse_feature mapping N/A N/A N/A isinstance obj Iterable N/A N/A features_iter N/A N/A parse_feature x N/A x obj N/A N/A features_iter N/A N/A N/A ValueError Object is not a recognized source of Features N/A features_iter N/A read_featurecollection N/A N/A obj layer N/A 0 N/A N/A features N/A read_features obj layer layer N/A fc N/A type features FeatureCollection N/A N/A N/A fc N/A features N/A f N/A f features N/A fc N/A rowcol N/A N/A x y affine op N/A N/A math floor N/A N/A  Get row/col for a x/y
     N/A r N/A int N/A op N/A N/A y N/A affine f N/A affine e N/A c N/A int N/A op N/A N/A x N/A affine c N/A affine a N/A N/A r c N/A bounds_window N/A N/A bounds affine N/A N/A N/A Create a full cover rasterio-style window
     N/A N/A w s e n bounds N/A N/A row_start col_start N/A rowcol w n affine N/A N/A row_stop col_stop N/A rowcol e s affine op N/A math ceil N/A N/A N/A row_start row_stop N/A col_start col_stop N/A window_bounds N/A N/A window affine N/A N/A N/A N/A N/A row_start row_stop N/A col_start col_stop window N/A N/A w s N/A N/A col_start row_stop affine N/A N/A e n N/A N/A col_stop row_start affine N/A N/A w s e n N/A boundless_array N/A N/A arr window nodata masked N/A False N/A N/A dim3 False N/A N/A N/A len N/A arr shape 3 N/A N/A dim3 True N/A N/A N/A N/A len N/A arr shape 2 N/A N/A N/A ValueError Must be a 2D or 3D array N/A N/A N/A wr_start wr_stop N/A wc_start wc_stop window N/A olr_start N/A max N/A min N/A N/A window N/A 0 N/A 0 N/A N/A N/A arr shape N/A -2 N/A 0 0 N/A olr_stop N/A max N/A min N/A N/A window N/A 0 N/A 1 N/A N/A N/A arr shape N/A -2 N/A 0 0 N/A olc_start N/A max N/A min N/A N/A window N/A 1 N/A 0 N/A N/A N/A arr shape N/A -2 N/A 1 0 N/A olc_stop N/A max N/A min N/A N/A window N/A 1 N/A 1 N/A N/A N/A arr shape N/A -2 N/A 1 0 N/A overlap_shape N/A N/A olr_stop olr_start N/A olc_stop olc_start N/A dim3 N/A N/A window_shape N/A N/A N/A arr shape N/A 0 N/A wr_stop wr_start N/A wc_stop wc_start N/A N/A window_shape N/A N/A wr_stop wr_start N/A wc_stop wc_start N/A out N/A N/A N/A np ones shape window_shape nodata N/A nr_start N/A olr_start wr_start N/A nr_stop N/A nr_start N/A overlap_shape N/A 0 N/A nc_start N/A olc_start wc_start N/A nc_stop N/A nc_start N/A overlap_shape N/A 1 N/A dim3 N/A N/A N/A out N/A N/A N/A nr_start nr_stop N/A nc_start nc_stop N/A arr N/A N/A N/A olr_start olr_stop N/A olc_start olc_stop N/A N/A N/A out N/A N/A nr_start nr_stop N/A nc_start nc_stop N/A arr N/A N/A olr_start olr_stop N/A olc_start olc_stop N/A masked N/A N/A out N/A N/A N/A np ma MaskedArray out mask N/A out nodata N/A out N/A Raster N/A object N/A N/A  Raster abstraction for data access to 2/3D array-like things

    Use as a context manager to ensure dataset gets closed properly::

        >>> with Raster(path) as rast:
        ...

    Parameters
    ----------
    raster: 2/3D array-like data source, required
        Currently supports paths to rasterio-supported rasters and
        numpy arrays with Affine transforms.

    affine: Affine object
        Maps row/col to coordinate reference system
        required if raster is ndarray

    nodata: nodata value, optional
        Overrides the datasource's internal nodata if specified

    band: integer
        raster band number, optional (default: 1)

    Methods
    -------
    index
    read
     __init__ N/A N/A self raster affine nodata band N/A None None 1 N/A N/A N/A self drivers None N/A N/A self array None N/A N/A self src None N/A N/A isinstance raster N/A np ndarray N/A N/A N/A affine None N/A N/A N/A ValueError Must specify affine for numpy arrays N/A N/A self array raster N/A N/A self affine affine N/A N/A self shape N/A raster shape N/A N/A self nodata nodata N/A N/A N/A self drivers N/A N/A rasterio drivers N/A N/A self src N/A N/A rasterio open raster r N/A N/A self affine N/A N/A self src affine N/A N/A self shape N/A N/A N/A self src height N/A N/A self src width N/A N/A self band band N/A N/A nodata None N/A N/A N/A self nodata N/A float nodata N/A N/A N/A self nodata N/A N/A self src nodata N/A index N/A N/A self x y N/A N/A N/A Given x,y in crs, return the (column, row) on the raster
         N/A N/A col row N/A N/A N/A math floor a N/A a N/A N/A N/A self affine N/A x y N/A N/A row col N/A read N/A N/A self bounds window masked nan_as_nodata N/A None None False False N/A N/A  Performs a boundless read against the underlying array source

        Parameters
        ----------
        bounds: bounding box
            in w, s, e, n order, iterable, optional
        window: rasterio-style window, optional
            bounds OR window are required,
            specifying both or neither will raise exception
        masked: boolean
            return a masked numpy array, default: False
            bounds OR window are required, specifying both or neither will raise exception
        nan_as_nodata: boolean
            Treat NaN values as nodata, default: False

        Returns
        -------
        Raster object with update affine and array info
         N/A N/A bounds window N/A N/A N/A ValueError Specify either bounds or window N/A bounds N/A N/A win N/A bounds_window bounds N/A self affine N/A N/A window N/A N/A win window N/A N/A N/A ValueError Specify either bounds or window N/A N/A c _ _ f N/A window_bounds win N/A self affine N/A N/A a b _ d e _ _ _ _ N/A tuple N/A self affine N/A new_affine N/A Affine a b c d e f N/A nodata N/A self nodata N/A N/A nodata None N/A N/A nodata -999 N/A N/A N/A warnings warn Setting nodata to -999; specify nodata explicitly N/A N/A N/A self array None N/A N/A new_array N/A boundless_array N/A self array window win nodata nodata masked masked N/A N/A N/A self src N/A N/A new_array N/A N/A N/A self src read N/A self band window win boundless True masked masked N/A nan_as_nodata N/A N/A nans N/A N/A np isnan new_array N/A N/A N/A nans any N/A N/A masked N/A N/A N/A NotImplementedError specify nan_as_nodata OR masked N/A N/A N/A new_array N/A nans nodata N/A N/A Raster new_array new_affine nodata N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self N/A args N/A N/A N/A N/A self src None N/A N/A N/A N/A N/A self src close N/A N/A