Skip to content
Snippets Groups Projects
Commit 0ef0b5a3 authored by Neha Hunka's avatar Neha Hunka
Browse files

Classifying the world into IPCC Table 4.7

parent 351392be
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,6 @@ del(PLANTATIONS)
MASK = PRIMARY + YOUNG + OLD
EcoCont = rasterio.open(args.EcoCont).read(1)
kwargs = rasterio.open(args.EcoCont).meta
kwargs.update(dtype=rasterio.uint16,count=1,compress='lzw')
kwargs.update(dtype=rasterio.uint32,count=1,compress='lzw')
EcoCont = (EcoCont*10) + MASK
with rasterio.open(args.output_file, 'w', **kwargs) as dst: dst.write_band(1, EcoCont.astype(rasterio.uint16))
with rasterio.open(args.output_file, 'w', **kwargs) as dst: dst.write_band(1, EcoCont.astype(rasterio.uint32))
This diff is collapsed.
......@@ -172,6 +172,6 @@ del(PLANTATIONS)
MASK = PRIMARY + YOUNG + OLD
EcoCont = rasterio.open(args.EcoCont).read(1)
kwargs = rasterio.open(args.EcoCont).meta
kwargs.update(dtype=rasterio.uint16,count=1,compress='lzw')
kwargs.update(dtype=rasterio.uint32,count=1,compress='lzw')
EcoCont = (EcoCont*10) + MASK
with rasterio.open(args.output_file, 'w', **kwargs) as dst: dst.write_band(1, EcoCont.astype(rasterio.uint16))
with rasterio.open(args.output_file, 'w', **kwargs) as dst: dst.write_band(1, EcoCont.astype(rasterio.uint32))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment