showMessage('Loading',staticTemplates.loadingModal);
function runGeeViz(){
Map2.addSerializedLayer({"result": "0", "values": {"0": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/sat-io/open-datasets/LCMAP/LCPRI"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1990}, "field": {"constantValue": "year"}, "start": {"constantValue": 1985}}}}}}}}}}}},{"min": 1, "max": 9, "palette": ["E60000", "A87000", "E3E3C2", "1D6330", "476BA1", "BAD9EB", "FFFFFF", "B3B0A3", "A201FF"], "classLegendDict": {"1- Developed": "E60000", "2- Cropland": "A87000", "3- Grass/Shrub": "E3E3C2", "4- Tree Cover": "1D6330", "5- Water": "476BA1", "6- Wetlands": "BAD9EB", "7- Ice/Snow": "FFFFFF", "8- Barren": "B3B0A3", "9- Class Change": "A201FF"}, "queryDict": {"1": "1- Developed", "2": "2- Cropland", "3": "3- Grass/Shrub", "4": "4- Tree Cover", "5": "5- Water", "6": "6- Wetlands", "7": "7- Ice/Snow", "8": "8- Barren", "9": "9- Class Change"}},'LCMAP LC 1985-1990 mode',false);
Map2.addSerializedLayer({"result": "0", "values": {"0": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/sat-io/open-datasets/LCMAP/LCPRI"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2020}, "field": {"constantValue": "year"}, "start": {"constantValue": 2016}}}}}}}}}}}},{"min": 1, "max": 9, "palette": ["E60000", "A87000", "E3E3C2", "1D6330", "476BA1", "BAD9EB", "FFFFFF", "B3B0A3", "A201FF"], "classLegendDict": {"1- Developed": "E60000", "2- Cropland": "A87000", "3- Grass/Shrub": "E3E3C2", "4- Tree Cover": "1D6330", "5- Water": "476BA1", "6- Wetlands": "BAD9EB", "7- Ice/Snow": "FFFFFF", "8- Barren": "B3B0A3", "9- Class Change": "A201FF"}, "queryDict": {"1": "1- Developed", "2": "2- Cropland", "3": "3- Grass/Shrub", "4": "4- Tree Cover", "5": "5- Water", "6": "6- Wetlands", "7": "7- Ice/Snow", "8": "8- Barren", "9": "9- Class Change"}},'LCMAP LC 2016-2020 mode',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2020-5"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover"]}, "input": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"valueReference": "1"}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1990}, "field": {"constantValue": "year"}, "start": {"constantValue": 1985}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "1"}}}}}}}}}}}},{"autoViz": true},'LCMS LC 1985-1990 mode',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2020-5"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover"]}, "input": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"valueReference": "1"}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2020}, "field": {"constantValue": "year"}, "start": {"constantValue": 2016}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "1"}}}}}}}}}}}},{"autoViz": true},'LCMS LC 2016-2020 mode',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2020-5"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"valueReference": "1"}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1990}, "field": {"constantValue": "year"}, "start": {"constantValue": 1985}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "1"}}}}}}}}}}}},{"autoViz": true},'LCMS LU 1985-1990 mode',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2020-5"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"valueReference": "1"}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2020}, "field": {"constantValue": "year"}, "start": {"constantValue": 2016}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "1"}}}}}}}}}}}},{"autoViz": true},'LCMS LU 2016-2020 mode',false);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"argumentReference": "_MAPPING_VAR_0_0"}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 3}}}}}}}}}}, "1": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.int16", "arguments": {"value": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"functionInvocationValue": {"functionName": "Date.get", "arguments": {"date": {"functionInvocationValue": {"functionName": "Date", "arguments": {"value": {"functionInvocationValue": {"functionName": "Element.get", "arguments": {"object": {"valueReference": "2"}, "property": {"constantValue": "system:time_start"}}}}}}}, "unit": {"constantValue": "year"}}}}}}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.mask", "arguments": {"image": {"valueReference": "2"}}}}}}}, "3": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "reduce.max", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "3"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2020-5"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1985, "max": 2020, "palette": "ffffe5,fff7bc,fee391,fec44f,fe9929,ec7014,cc4c02"},'LCMS Most Recent Fast Loss Year',false);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"argumentReference": "_MAPPING_VAR_0_0"}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 2}}}}}}}}}}, "1": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.int16", "arguments": {"value": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"functionInvocationValue": {"functionName": "Date.get", "arguments": {"date": {"functionInvocationValue": {"functionName": "Date", "arguments": {"value": {"functionInvocationValue": {"functionName": "Element.get", "arguments": {"object": {"valueReference": "2"}, "property": {"constantValue": "system:time_start"}}}}}}}, "unit": {"constantValue": "year"}}}}}}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.mask", "arguments": {"image": {"valueReference": "2"}}}}}}}, "3": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "reduce.max", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "3"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2020-5"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1985, "max": 2020, "palette": "ffffe5,fff7bc,fee391,fec44f,fe9929,ec7014,cc4c02"},'LCMS Most Recent Slow Loss Year',false);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"argumentReference": "_MAPPING_VAR_0_0"}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 4}}}}}}}}}}, "1": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.int16", "arguments": {"value": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"functionInvocationValue": {"functionName": "Date.get", "arguments": {"date": {"functionInvocationValue": {"functionName": "Date", "arguments": {"value": {"functionInvocationValue": {"functionName": "Element.get", "arguments": {"object": {"valueReference": "2"}, "property": {"constantValue": "system:time_start"}}}}}}}, "unit": {"constantValue": "year"}}}}}}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.mask", "arguments": {"image": {"valueReference": "2"}}}}}}}, "3": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "reduce.max", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "3"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2020-5"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1985, "max": 2020, "palette": "c5ee93,00a398"},'LCMS Most Recent Gain Year',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.float", "arguments": {"value": {"functionInvocationValue": {"functionName": "Image.add", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"functionInvocationValue": {"functionName": "Date.get", "arguments": {"date": {"functionInvocationValue": {"functionName": "Date", "arguments": {"value": {"functionInvocationValue": {"functionName": "Element.get", "arguments": {"object": {"argumentReference": "_MAPPING_VAR_0_0"}, "property": {"constantValue": "system:time_start"}}}}}}}, "unit": {"constantValue": "year"}}}}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.divide", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 365}}}}}}}}}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.mask", "arguments": {"image": {"argumentReference": "_MAPPING_VAR_0_0"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "reduce.max", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/sat-io/open-datasets/LCMAP/SCTIME"}}}}}}}}}}}},{"min": 1985, "max": 2020, "palette": ["00F", "F0F"]},'LCMAP Most Recent SC Date',true);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["tStart", "tEnd", "tBreak", "changeProb", "red.*", "nir.*", "swir1.*", "swir2.*", "NDVI.*", "NBR.*"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "ImageCollection.mosaic", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/lcms-292214/assets/CONUS-LCMS/Base-Learners/CCDC-Collection-1984-2021"}}}}}}}}}}}},{"opacity": 0},'RAW CCDC Output',false);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "tBreak"}, "5": {"constantValue": "changeProb"}, "6": {"constantValue": "NDVI.*"}, "4": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"constantValue": "tStart"}, {"constantValue": "tEnd"}, {"valueReference": "2"}, {"valueReference": "5"}, {"constantValue": "red.*"}, {"constantValue": "nir.*"}, {"constantValue": "swir1.*"}, {"constantValue": "swir2.*"}, {"valueReference": "6"}, {"constantValue": "NBR.*"}]}}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "3": {"functionInvocationValue": {"functionName": "ImageCollection.mosaic", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "4"}}, "collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/lcms-292214/assets/CONUS-LCMS/Base-Learners/CCDC-Collection-1984-2021"}}}}}}}}}}, "1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "input": {"valueReference": "3"}}}}, "8": {"functionInvocationValue": {"functionName": "Image.arraySort", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "6"}]}}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_magnitude"]}, "input": {"valueReference": "3"}}}}}}}, "keys": {"valueReference": "1"}}}}, "9": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 0}}}}, "7": {"functionInvocationValue": {"functionName": "Image.lt", "arguments": {"image1": {"valueReference": "8"}, "image2": {"valueReference": "9"}}}}, "10": {"constantValue": [1]}, "11": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": -1}}}}, "0": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"constantValue": [["loss_year"]]}, "image": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"functionInvocationValue": {"functionName": "Image.arrayPad", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayMask", "arguments": {"input": {"functionInvocationValue": {"functionName": "Image.arraySort", "arguments": {"image": {"valueReference": "1"}}}}, "mask": {"valueReference": "7"}}}}, "lengths": {"valueReference": "10"}}}}, "start": {"valueReference": "11"}}}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.and", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.lt", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"constantValue": [["loss_mag"]]}, "image": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"functionInvocationValue": {"functionName": "Image.arrayPad", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayMask", "arguments": {"input": {"valueReference": "8"}, "mask": {"valueReference": "7"}}}}, "lengths": {"valueReference": "10"}}}}, "start": {"valueReference": "11"}}}}}}}, "image2": {"valueReference": "9"}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"constantValue": [["loss_mask"]]}, "image": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"functionInvocationValue": {"functionName": "Image.arrayPad", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayMask", "arguments": {"input": {"functionInvocationValue": {"functionName": "Image.arraySort", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.gte", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "5"}]}}, "input": {"valueReference": "3"}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 1}}}}}}}, "keys": {"valueReference": "1"}}}}, "mask": {"valueReference": "7"}}}}, "lengths": {"valueReference": "10"}}}}, "start": {"valueReference": "11"}}}}}}}}}}}}}}},{"min": 1985, "max": 2020, "palette": "ffffe5,fff7bc,fee391,fec44f,fe9929,ec7014,cc4c02"},'LCMS CCDC Most Recent Loss Year',true);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "tBreak"}, "5": {"constantValue": "changeProb"}, "6": {"constantValue": "NDVI.*"}, "4": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"constantValue": "tStart"}, {"constantValue": "tEnd"}, {"valueReference": "2"}, {"valueReference": "5"}, {"constantValue": "red.*"}, {"constantValue": "nir.*"}, {"constantValue": "swir1.*"}, {"constantValue": "swir2.*"}, {"valueReference": "6"}, {"constantValue": "NBR.*"}]}}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "3": {"functionInvocationValue": {"functionName": "ImageCollection.mosaic", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "4"}}, "collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/lcms-292214/assets/CONUS-LCMS/Base-Learners/CCDC-Collection-1984-2021"}}}}}}}}}}, "1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "input": {"valueReference": "3"}}}}, "8": {"functionInvocationValue": {"functionName": "Image.arraySort", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "6"}]}}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_magnitude"]}, "input": {"valueReference": "3"}}}}}}}, "keys": {"valueReference": "1"}}}}, "9": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 0}}}}, "7": {"functionInvocationValue": {"functionName": "Image.gt", "arguments": {"image1": {"valueReference": "8"}, "image2": {"valueReference": "9"}}}}, "10": {"constantValue": [1]}, "11": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": -1}}}}, "0": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"constantValue": [["gain_year"]]}, "image": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"functionInvocationValue": {"functionName": "Image.arrayPad", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayMask", "arguments": {"input": {"functionInvocationValue": {"functionName": "Image.arraySort", "arguments": {"image": {"valueReference": "1"}}}}, "mask": {"valueReference": "7"}}}}, "lengths": {"valueReference": "10"}}}}, "start": {"valueReference": "11"}}}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.and", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.gt", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"constantValue": [["gain_mag"]]}, "image": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"functionInvocationValue": {"functionName": "Image.arrayPad", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayMask", "arguments": {"input": {"valueReference": "8"}, "mask": {"valueReference": "7"}}}}, "lengths": {"valueReference": "10"}}}}, "start": {"valueReference": "11"}}}}}}}, "image2": {"valueReference": "9"}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"constantValue": [["gain_mask"]]}, "image": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"functionInvocationValue": {"functionName": "Image.arrayPad", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.arrayMask", "arguments": {"input": {"functionInvocationValue": {"functionName": "Image.arraySort", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.gte", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "5"}]}}, "input": {"valueReference": "3"}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 1}}}}}}}, "keys": {"valueReference": "1"}}}}, "mask": {"valueReference": "7"}}}}, "lengths": {"valueReference": "10"}}}}, "start": {"valueReference": "11"}}}}}}}}}}}}}}},{"min": 1985, "max": 2020, "palette": "c5ee93,00a398"},'LCMS CCDC Most Recent Gain Year',true);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_predicted"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"constantValue": "NDVI"}, "3": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"valueReference": "4"}, "string2": {"constantValue": "_.*"}}}}]}}, "8": {"constantValue": "year"}, "9": {"functionInvocationValue": {"functionName": "Number.int16", "arguments": {"input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "7": {"functionInvocationValue": {"functionName": "Element.set", "arguments": {"key": {"constantValue": "system:time_start"}, "object": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"functionInvocationValue": {"functionName": "Image.float", "arguments": {"value": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"argumentReference": "_MAPPING_VAR_0_0"}}}}}}}, "names": {"arrayValue": {"values": [{"valueReference": "8"}]}}}}}, "value": {"functionInvocationValue": {"functionName": "Date.millis", "arguments": {"date": {"functionInvocationValue": {"functionName": "Date.advance", "arguments": {"date": {"functionInvocationValue": {"functionName": "Date.fromYMD", "arguments": {"day": {"constantValue": 31}, "month": {"constantValue": 12}, "year": {"functionInvocationValue": {"functionName": "Number.subtract", "arguments": {"left": {"valueReference": "9"}, "right": {"constantValue": 1}}}}}}}, "delta": {"functionInvocationValue": {"functionName": "Number.subtract", "arguments": {"left": {"argumentReference": "_MAPPING_VAR_0_0"}, "right": {"valueReference": "9"}}}}, "unit": {"valueReference": "8"}}}}}}}}}}, "10": {"functionInvocationValue": {"functionName": "Number.divide", "arguments": {"left": {"functionInvocationValue": {"functionName": "Number.parse", "arguments": {"input": {"functionInvocationValue": {"functionName": "Date.format", "arguments": {"date": {"functionInvocationValue": {"functionName": "Date.fromYMD", "arguments": {"day": {"constantValue": 1}, "month": {"constantValue": 1}, "year": {"constantValue": 1984}}}}, "format": {"constantValue": "DDD"}}}}}}}, "right": {"constantValue": 365}}}}, "6": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.fromImages", "arguments": {"images": {"functionInvocationValue": {"functionName": "List.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "7"}}, "list": {"functionInvocationValue": {"functionName": "List.sequence", "arguments": {"end": {"functionInvocationValue": {"functionName": "Number.add", "arguments": {"left": {"constantValue": 2021}, "right": {"valueReference": "10"}}}}, "start": {"functionInvocationValue": {"functionName": "Number.add", "arguments": {"left": {"constantValue": 1984}, "right": {"valueReference": "10"}}}}, "step": {"constantValue": 0.1}}}}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2021}, "field": {"valueReference": "8"}, "start": {"constantValue": 1984}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 365}, "start": {"constantValue": 1}}}}}}}, "5": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "List.get", "arguments": {"index": {"constantValue": 0}, "list": {"functionInvocationValue": {"functionName": "Image.bandNames", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [0]}, "input": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "6"}}}}}}}}}}}}}]}}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}, "12": {"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"constantValue": ".*"}, "string2": {"functionInvocationValue": {"functionName": "Number.format", "arguments": {"number": {"argumentReference": "_MAPPING_VAR_0_0"}}}}}}}, "11": {"functionInvocationValue": {"functionName": "List.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "12"}}, "list": {"constantValue": [1, 2, 3]}}}}, "14": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 1}}}}, "13": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"valueReference": "14"}, "srcImg": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 2}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 3}}}}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"functionInvocationValue": {"functionName": "Number.multiply", "arguments": {"left": {"constantValue": 2.0}, "right": {"constantValue": 3.141592653589793}}}}}}}}}}, "image2": {"valueReference": "5"}}}}, "15": {"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"argumentReference": "_MAPPING_VAR_0_0"}, "string2": {"constantValue": "_predicted"}}}}, "2": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"argumentReference": "_MAPPING_VAR_3_0"}, "srcImg": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"functionInvocationValue": {"functionName": "ImageCollection.toBands", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.fromImages", "arguments": {"images": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "Image.reduce", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "3"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_INTP"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "3"}, "input": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_SLP"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}, "image2": {"valueReference": "5"}}}}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "3"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "11"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_SIN.*"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}}}}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.sin", "arguments": {"value": {"valueReference": "13"}}}}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "3"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "11"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_COS.*"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}}}}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.cos", "arguments": {"value": {"valueReference": "13"}}}}}}}}}}, "reducer": {"functionInvocationValue": {"functionName": "Reducer.sum", "arguments": {}}}}}}]}}}}}}}}, "names": {"functionInvocationValue": {"functionName": "List.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "15"}}, "list": {"arrayValue": {"values": [{"valueReference": "4"}]}}}}}}}}}}}, "20": {"constantValue": "tStart"}, "21": {"constantValue": "tEnd"}, "22": {"constantValue": "tBreak"}, "23": {"constantValue": "changeProb"}, "24": {"constantValue": "NDVI.*"}, "25": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "20"}, {"valueReference": "21"}, {"valueReference": "22"}, {"valueReference": "23"}, {"constantValue": "red.*"}, {"constantValue": "nir.*"}, {"constantValue": "swir1.*"}, {"constantValue": "swir2.*"}, {"valueReference": "24"}, {"constantValue": "NBR.*"}]}}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "19": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "20"}, {"valueReference": "21"}, {"valueReference": "22"}, {"valueReference": "23"}, {"valueReference": "24"}]}}, "input": {"functionInvocationValue": {"functionName": "ImageCollection.mosaic", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "25"}}, "collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/lcms-292214/assets/CONUS-LCMS/Base-Learners/CCDC-Collection-1984-2021"}}}}}}}}}}}}}, "18": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_coefs"]}, "input": {"valueReference": "19"}}}}, "26": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "20"}]}}, "input": {"valueReference": "19"}}}}, "27": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 0}}}}, "29": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": -1}}}}, "28": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "end": {"valueReference": "29"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "22"}]}}, "input": {"valueReference": "19"}}}}, "start": {"valueReference": "27"}}}}, "30": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "21"}]}}, "input": {"valueReference": "19"}}}}, "17": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "Image.bandNames", "arguments": {"image": {"valueReference": "18"}}}}, {"constantValue": ["INTP", "SLP", "COS1", "SIN1", "COS2", "SIN2", "COS3", "SIN3"]}]}}, "image": {"functionInvocationValue": {"functionName": "Image.arrayTranspose", "arguments": {"axis1": {"constantValue": 1}, "axis2": {"constantValue": 0}, "input": {"functionInvocationValue": {"functionName": "Image.arrayProject", "arguments": {"axes": {"constantValue": [2, 1]}, "input": {"functionInvocationValue": {"functionName": "Image.arrayMask", "arguments": {"input": {"functionInvocationValue": {"functionName": "Image.toArray", "arguments": {"axis": {"constantValue": 2}, "image": {"valueReference": "18"}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.arrayRepeat", "arguments": {"axis": {"constantValue": 2}, "copies": {"valueReference": "14"}, "input": {"functionInvocationValue": {"functionName": "Image.arrayRepeat", "arguments": {"axis": {"constantValue": 1}, "copies": {"valueReference": "14"}, "input": {"functionInvocationValue": {"functionName": "Image.and", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.lt", "arguments": {"image1": {"functionInvocationValue": {"functionName": "If", "arguments": {"condition": {"constantValue": false}, "falseCase": {"valueReference": "26"}, "trueCase": {"functionInvocationValue": {"functionName": "Image.arrayCat", "arguments": {"axis": {"constantValue": 0}, "image1": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "end": {"valueReference": "14"}, "input": {"valueReference": "26"}, "start": {"valueReference": "27"}}}}, "image2": {"valueReference": "28"}}}}}}}, "image2": {"argumentReference": "_MAPPING_VAR_1_0"}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.gte", "arguments": {"image1": {"functionInvocationValue": {"functionName": "If", "arguments": {"condition": {"constantValue": false}, "falseCase": {"valueReference": "30"}, "trueCase": {"functionInvocationValue": {"functionName": "Image.arrayCat", "arguments": {"axis": {"constantValue": 0}, "image1": {"valueReference": "28"}, "image2": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"valueReference": "30"}, "start": {"valueReference": "29"}}}}}}}}}}, "image2": {"argumentReference": "_MAPPING_VAR_1_0"}}}}}}}}}}}}}}}}}}}}}}}}}, "16": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"argumentReference": "_MAPPING_VAR_1_0"}, "srcImg": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"valueReference": "17"}, "mask": {"functionInvocationValue": {"functionName": "Image.neq", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.reduce", "arguments": {"image": {"valueReference": "17"}, "reducer": {"functionInvocationValue": {"functionName": "Reducer.max", "arguments": {}}}}}}, "image2": {"valueReference": "27"}}}}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_3_0"], "body": "2"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_1_0"], "body": "16"}}, "collection": {"valueReference": "6"}}}}}}}}}}}},{"opacity": 0},'Fitted CCDC NDVI',true);
setTimeout(function(){$('#close-modal-button').click();}, 2500);
$('#title-banner').html('LCMAP LCMS Viewer');document.title = 'geeViz | LCMAP LCMS Viewer';
$('#query-label').click();
}