I am studying this notebook: California wildfires 2017 - Thomas Fire analysis
I can follow the first part of the notebook. But I have got confused in this cell to calculate the burnt area:
ext = {"xmax": -13246079.10806628, "ymin": 4035733.9433013694, "xmin": -13438700.419344831, "ymax": 4158033.188557592,
"spatialReference": {"wkid": 102100, "latestWkid": 3857}, "type": "extent"}
pixx = (ext['xmax'] - ext['xmin']) / 1200.0
pixy = (ext['ymax'] - ext['ymin']) / 450.0
res = burnt_areas.compute_histograms(ext, pixel_size={'x':pixx, 'y':pixy})
numpix = 0
histogram = res['histograms'][0]['counts'][1:]
for i in histogram:
numpix += i
So where do the numbers 1200 and 450 in the pixx and pixy calculation come from? I have tried to investigate the metadata of the object and cannot find any hints. Are they some constant numbers?
Also, why the compute_histograms returns five classes while "burnt_areas" has only four "output_values" classes?