Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
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)
Beispiel #4
0
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)