def tree_cover_extent_function(hansenareamosaic, fc_geo, scratch_gdb, maindir, shapefile, column_name2, outdir, tcdmosaic, filename, orig_fcname): outputs = zstats.zonal_stats_mask(hansenareamosaic, fc_geo, scratch_gdb, maindir, shapefile, column_name2, outdir) mask = outputs[0] extent = outputs[1] zstats.zonal_stats(tcdmosaic, hansenareamosaic, filename, "tree_cover_extent", hansenareamosaic, mask, scratch_gdb, outdir, column_name2, orig_fcname, extent)
def forest_loss_function(hansenareamosaic, fc_geo, scratch_gdb, maindir, shapefile, column_name2, outdir, lossyr, filename, orig_fcname): outputs = zstats.zonal_stats_mask(hansenareamosaic, fc_geo, scratch_gdb, maindir, shapefile, column_name2, outdir) mask = outputs[0] extent = outputs[1] zstats.zonal_stats(lossyr, hansenareamosaic, filename, "forest_loss", hansenareamosaic, mask, scratch_gdb, outdir, column_name2, orig_fcname, extent)
def carbon_emissions_function(hansenareamosaic,biomassmosaic,fc_geo,scratch_gdb,maindir,shapefile,column_name2,outdir,lossyr,filename,orig_fcname): mask = zstats.zonal_stats_mask(hansenareamosaic, fc_geo, scratch_gdb, maindir, shapefile, column_name2, outdir) zstats.zonal_stats(lossyr, hansenareamosaic, filename, "forest_loss", hansenareamosaic, mask, scratch_gdb, outdir, column_name2, orig_fcname) zstats.zonal_stats(lossyr, biomassmosaic, filename, "biomass_max", hansenareamosaic, mask, scratch_gdb, outdir, column_name2, orig_fcname) zstats.zonal_stats(lossyr, biomassmosaic, filename, "biomass_min", hansenareamosaic, mask, scratch_gdb, outdir, column_name2, orig_fcname)
def tree_cover_extent_function(hansenareamosaic,fc_geo,scratch_gdb,maindir,shapefile,column_name2,outdir,tcdmosaic,filename,orig_fcname): mask = zstats.zonal_stats_mask(hansenareamosaic, fc_geo, scratch_gdb, maindir, shapefile, column_name2, outdir) zstats.zonal_stats(tcdmosaic, hansenareamosaic, filename, "tree_cover_extent", hansenareamosaic, mask, scratch_gdb, outdir, column_name2, orig_fcname)