Module Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad Assert CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num Call AttributeLoad Str attr Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Assert CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str decorator_list FunctionDef arguments args defaults body Assert CompareEq Call NameLoad Str Num Assert CompareEq Call NameLoad Str Num Assert CompareEq Call NameLoad Str Num With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Num Num Num Num Num Num Assign NameStore Dict Num Num Str Str Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareNotIn Num Call AttributeLoad NameLoad attr Assert CompareIn Str Call AttributeLoad NameLoad attr Assert CompareIn Num Call AttributeLoad NameLoad attr decorator_list
N/A N/A sys N/A os N/A pytest rasterstats.utils stats_to_csv get_percentile remap_categories rasterstats zonal_stats rasterstats.utils VALID_STATS N/A N/A N/A N/A sys path append N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A DATA N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ data N/A raster N/A N/A N/A os path join DATA slope.tif test_csv N/A N/A N/A N/A N/A polygons N/A N/A N/A os path join DATA polygons.shp N/A stats N/A zonal_stats polygons raster stats * N/A csv N/A stats_to_csv stats N/A N/A N/A N/A N/A csv split N/A 0 N/A N/A , join N/A sorted VALID_STATS N/A test_categorical_csv N/A N/A N/A N/A N/A polygons N/A N/A N/A os path join DATA polygons.shp N/A categorical_raster N/A N/A N/A os path join DATA slope_classes.tif N/A stats N/A zonal_stats polygons categorical_raster categorical True N/A csv N/A stats_to_csv stats N/A N/A N/A N/A N/A csv split N/A 0 1.0,2.0,5.0 N/A test_get_percentile N/A N/A N/A N/A N/A N/A N/A get_percentile percentile_0 0.0 N/A N/A N/A get_percentile percentile_100 100.0 N/A N/A N/A get_percentile percentile_13.2 13.2 N/A N/A N/A pytest raises ValueError N/A N/A N/A get_percentile percentile_101 N/A N/A N/A pytest raises ValueError N/A N/A N/A get_percentile percentile_-1 N/A N/A N/A pytest raises ValueError N/A N/A N/A get_percentile percentile_foobar N/A test_remap_categories N/A N/A N/A N/A N/A feature_stats N/A 1 2 3 22.343 54.34 987.5 N/A category_map N/A 1 2 grassland forest N/A new_stats N/A remap_categories category_map feature_stats N/A N/A 1 N/A N/A new_stats keys N/A N/A grassland N/A N/A new_stats keys N/A N/A 3 N/A N/A new_stats keys N/A