var layerLoadErrorMessages=[];showMessage('Loading',staticTemplates.loadingModal[mode]);
function runGeeViz(){
try{
	Map2.addSerializedLayer({"result": "0", "values": {"0": {"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}}}}}}}}},{"reducer": "{\"result\": \"0\", \"values\": {\"0\": {\"functionInvocationValue\": {\"functionName\": \"Reducer.mode\", \"arguments\": {}}}}}", "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);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMAP LC 1985-1990 mode<br>GEE "+err);}
try{
	Map2.addSerializedLayer({"result": "0", "values": {"0": {"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": 2022}, "field": {"constantValue": "year"}, "start": {"constantValue": 2020}}}}}}}}},{"reducer": "{\"result\": \"0\", \"values\": {\"0\": {\"functionInvocationValue\": {\"functionName\": \"Reducer.mode\", \"arguments\": {}}}}}", "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 2020-2022 mode',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMAP LC 2020-2022 mode<br>GEE "+err);}
try{
	Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2022-8"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1990}, "field": {"constantValue": "year"}, "start": {"constantValue": 1985}}}}}}}}}}}},{"reducer": "{\"result\": \"0\", \"values\": {\"0\": {\"functionInvocationValue\": {\"functionName\": \"Reducer.mode\", \"arguments\": {}}}}}", "autoViz": true},'LCMS LC 1985-1990 mode',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS LC 1985-1990 mode<br>GEE "+err);}
try{
	Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2022-8"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2022}, "field": {"constantValue": "year"}, "start": {"constantValue": 2020}}}}}}}}}}}},{"reducer": "{\"result\": \"0\", \"values\": {\"0\": {\"functionInvocationValue\": {\"functionName\": \"Reducer.mode\", \"arguments\": {}}}}}", "autoViz": true},'LCMS LC 2020-2022 mode',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS LC 2020-2022 mode<br>GEE "+err);}
try{
	Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2022-8"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1990}, "field": {"constantValue": "year"}, "start": {"constantValue": 1985}}}}}}}}}}}},{"reducer": "{\"result\": \"0\", \"values\": {\"0\": {\"functionInvocationValue\": {\"functionName\": \"Reducer.mode\", \"arguments\": {}}}}}", "autoViz": true},'LCMS LU 1985-1990 mode',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS LU 1985-1990 mode<br>GEE "+err);}
try{
	Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2022-8"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2022}, "field": {"constantValue": "year"}, "start": {"constantValue": 2020}}}}}}}}}}}},{"reducer": "{\"result\": \"0\", \"values\": {\"0\": {\"functionInvocationValue\": {\"functionName\": \"Reducer.mode\", \"arguments\": {}}}}}", "autoViz": true},'LCMS LU 2020-2022 mode',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS LU 2020-2022 mode<br>GEE "+err);}
try{
	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/v2022-8"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1985, "max": 2022, "palette": ["ffffe5", "fff7bc", "fee391", "fec44f", "fe9929", "ec7014", "cc4c02"]},'LCMS Most Recent Fast Loss Year',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS Most Recent Fast Loss Year<br>GEE "+err);}
try{
	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/v2022-8"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1985, "max": 2022, "palette": ["ffffe5", "fff7bc", "fee391", "fec44f", "fe9929", "ec7014", "cc4c02"]},'LCMS Most Recent Slow Loss Year',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS Most Recent Slow Loss Year<br>GEE "+err);}
try{
	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/v2022-8"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1985, "max": 2022, "palette": ["c5ee93", "00a398"]},'LCMS Most Recent Gain Year',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS Most Recent Gain Year<br>GEE "+err);}
try{
	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": 2022, "palette": ["00F", "F0F"]},'LCMAP Most Recent SC Date',true);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMAP Most Recent SC Date<br>GEE "+err);}
try{
	Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["tStart", "tEnd", "tBreak", "changeProb", "red.*", "nir.*", "swir1.*", "swir2.*", "NDVI.*"]}, "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-2022"}}}}}}}}}}}},{"opacity": 0},'RAW CCDC Output',false);
}catch(err){
	layerLoadErrorMessages.push("Error loading: RAW CCDC Output<br>GEE "+err);}
try{
	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"}]}}, "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-2022"}}}}}}}}}}, "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": 2022, "palette": ["ffffe5", "fff7bc", "fee391", "fec44f", "fe9929", "ec7014", "cc4c02"]},'LCMS CCDC Most Recent Loss Year',true);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS CCDC Most Recent Loss Year<br>GEE "+err);}
try{
	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"}]}}, "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-2022"}}}}}}}}}}, "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": 2022, "palette": ["c5ee93", "00a398"]},'LCMS CCDC Most Recent Gain Year',true);
}catch(err){
	layerLoadErrorMessages.push("Error loading: LCMS CCDC Most Recent Gain Year<br>GEE "+err);}
try{
	Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["NDVI_CCDC_fitted"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"constantValue": "NDVI"}, "5": {"constantValue": "_.*"}, "3": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"valueReference": "4"}, "string2": {"valueReference": "5"}}}}]}}, "6": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_INTP"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}, "11": {"constantValue": "year"}, "12": {"functionInvocationValue": {"functionName": "Number.int16", "arguments": {"input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "10": {"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": "11"}]}}}}}, "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": "12"}, "right": {"constantValue": 1}}}}}}}, "delta": {"functionInvocationValue": {"functionName": "Number.subtract", "arguments": {"left": {"argumentReference": "_MAPPING_VAR_0_0"}, "right": {"valueReference": "12"}}}}, "unit": {"valueReference": "11"}}}}}}}}}}, "13": {"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}}}}, "9": {"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": "10"}}, "list": {"functionInvocationValue": {"functionName": "List.sequence", "arguments": {"end": {"functionInvocationValue": {"functionName": "Number.add", "arguments": {"left": {"constantValue": 2022}, "right": {"valueReference": "13"}}}}, "start": {"functionInvocationValue": {"functionName": "Number.add", "arguments": {"left": {"constantValue": 1984}, "right": {"valueReference": "13"}}}}, "step": {"constantValue": 0.1}}}}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2022}, "field": {"valueReference": "11"}, "start": {"constantValue": 1984}}}}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 365}, "start": {"constantValue": 1}}}}}}}, "8": {"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": "9"}}}}}}}}}}}}}]}}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}, "7": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_SLP"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}, "image2": {"valueReference": "8"}}}}, "16": {"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"constantValue": ".*"}, "string2": {"functionInvocationValue": {"functionName": "Number.format", "arguments": {"number": {"argumentReference": "_MAPPING_VAR_0_0"}}}}}}}, "15": {"functionInvocationValue": {"functionName": "List.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "16"}}, "list": {"constantValue": [1, 2, 3]}}}}, "14": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "15"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_SIN.*"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}}}}, "19": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 1}}}}, "18": {"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": "19"}, "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": "8"}}}}, "17": {"functionInvocationValue": {"functionName": "Image.sin", "arguments": {"value": {"valueReference": "18"}}}}, "20": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "15"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_COS.*"]}, "input": {"argumentReference": "_MAPPING_VAR_3_0"}}}}}}}, "21": {"functionInvocationValue": {"functionName": "Image.cos", "arguments": {"value": {"valueReference": "18"}}}}, "22": {"functionInvocationValue": {"functionName": "Reducer.sum", "arguments": {}}}, "24": {"constantValue": "nir"}, "23": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"valueReference": "24"}, "string2": {"valueReference": "5"}}}}]}}, "26": {"constantValue": "red"}, "25": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"valueReference": "26"}, "string2": {"valueReference": "5"}}}}]}}, "28": {"constantValue": "swir1"}, "27": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"valueReference": "28"}, "string2": {"valueReference": "5"}}}}]}}, "30": {"constantValue": "swir2"}, "29": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"valueReference": "30"}, "string2": {"valueReference": "5"}}}}]}}, "31": {"functionInvocationValue": {"functionName": "String.cat", "arguments": {"string1": {"argumentReference": "_MAPPING_VAR_0_0"}, "string2": {"constantValue": "_CCDC_fitted"}}}}, "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": {"valueReference": "6"}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "3"}, "input": {"valueReference": "7"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "3"}, "input": {"valueReference": "14"}}}}, "image2": {"valueReference": "17"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "3"}, "input": {"valueReference": "20"}}}}, "image2": {"valueReference": "21"}}}}}}}, "reducer": {"valueReference": "22"}}}}, {"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": "23"}, "input": {"valueReference": "6"}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "23"}, "input": {"valueReference": "7"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "23"}, "input": {"valueReference": "14"}}}}, "image2": {"valueReference": "17"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "23"}, "input": {"valueReference": "20"}}}}, "image2": {"valueReference": "21"}}}}}}}, "reducer": {"valueReference": "22"}}}}, {"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": "25"}, "input": {"valueReference": "6"}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "25"}, "input": {"valueReference": "7"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "25"}, "input": {"valueReference": "14"}}}}, "image2": {"valueReference": "17"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "25"}, "input": {"valueReference": "20"}}}}, "image2": {"valueReference": "21"}}}}}}}, "reducer": {"valueReference": "22"}}}}, {"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": "27"}, "input": {"valueReference": "6"}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "27"}, "input": {"valueReference": "7"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "27"}, "input": {"valueReference": "14"}}}}, "image2": {"valueReference": "17"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "27"}, "input": {"valueReference": "20"}}}}, "image2": {"valueReference": "21"}}}}}}}, "reducer": {"valueReference": "22"}}}}, {"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": "29"}, "input": {"valueReference": "6"}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "29"}, "input": {"valueReference": "7"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "29"}, "input": {"valueReference": "14"}}}}, "image2": {"valueReference": "17"}}}}}}}, "srcImg": {"functionInvocationValue": {"functionName": "Image.multiply", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"valueReference": "29"}, "input": {"valueReference": "20"}}}}, "image2": {"valueReference": "21"}}}}}}}, "reducer": {"valueReference": "22"}}}}]}}}}}}}}, "names": {"functionInvocationValue": {"functionName": "List.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "31"}}, "list": {"arrayValue": {"values": [{"valueReference": "4"}, {"valueReference": "24"}, {"valueReference": "26"}, {"valueReference": "28"}, {"valueReference": "30"}]}}}}}}}}}}}, "37": {"constantValue": "tStart"}, "38": {"constantValue": "tEnd"}, "39": {"constantValue": "tBreak"}, "36": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "37"}, {"valueReference": "38"}, {"valueReference": "39"}, {"constantValue": "changeProb"}, {"constantValue": "red.*"}, {"constantValue": "nir.*"}, {"constantValue": "swir1.*"}, {"constantValue": "swir2.*"}, {"constantValue": "NDVI.*"}]}}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "35": {"functionInvocationValue": {"functionName": "ImageCollection.mosaic", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "36"}}, "collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "projects/lcms-292214/assets/CONUS-LCMS/Base-Learners/CCDC-Collection-1984-2022"}}}}}}}}}}, "34": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": [".*_coefs"]}, "input": {"valueReference": "35"}}}}, "40": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "37"}]}}, "input": {"valueReference": "35"}}}}, "41": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 0}}}}, "43": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": -1}}}}, "42": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "end": {"valueReference": "43"}, "input": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "39"}]}}, "input": {"valueReference": "35"}}}}, "start": {"valueReference": "41"}}}}, "44": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"arrayValue": {"values": [{"valueReference": "38"}]}}, "input": {"valueReference": "35"}}}}, "33": {"functionInvocationValue": {"functionName": "Image.arrayFlatten", "arguments": {"coordinateLabels": {"arrayValue": {"values": [{"functionInvocationValue": {"functionName": "Image.bandNames", "arguments": {"image": {"valueReference": "34"}}}}, {"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": "34"}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.arrayRepeat", "arguments": {"axis": {"constantValue": 2}, "copies": {"valueReference": "19"}, "input": {"functionInvocationValue": {"functionName": "Image.arrayRepeat", "arguments": {"axis": {"constantValue": 1}, "copies": {"valueReference": "19"}, "input": {"functionInvocationValue": {"functionName": "Image.and", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.lt", "arguments": {"image1": {"functionInvocationValue": {"functionName": "If", "arguments": {"condition": {"constantValue": false}, "falseCase": {"valueReference": "40"}, "trueCase": {"functionInvocationValue": {"functionName": "Image.arrayCat", "arguments": {"axis": {"constantValue": 0}, "image1": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "end": {"valueReference": "19"}, "input": {"valueReference": "40"}, "start": {"valueReference": "41"}}}}, "image2": {"valueReference": "42"}}}}}}}, "image2": {"argumentReference": "_MAPPING_VAR_1_0"}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.gte", "arguments": {"image1": {"functionInvocationValue": {"functionName": "If", "arguments": {"condition": {"constantValue": false}, "falseCase": {"valueReference": "44"}, "trueCase": {"functionInvocationValue": {"functionName": "Image.arrayCat", "arguments": {"axis": {"constantValue": 0}, "image1": {"valueReference": "42"}, "image2": {"functionInvocationValue": {"functionName": "Image.arraySlice", "arguments": {"axis": {"constantValue": 0}, "input": {"valueReference": "44"}, "start": {"valueReference": "43"}}}}}}}}}}, "image2": {"argumentReference": "_MAPPING_VAR_1_0"}}}}}}}}}}}}}}}}}}}}}}}}}, "32": {"functionInvocationValue": {"functionName": "Image.addBands", "arguments": {"dstImg": {"argumentReference": "_MAPPING_VAR_1_0"}, "srcImg": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"valueReference": "33"}, "mask": {"functionInvocationValue": {"functionName": "Image.neq", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.reduce", "arguments": {"image": {"valueReference": "33"}, "reducer": {"functionInvocationValue": {"functionName": "Reducer.max", "arguments": {}}}}}}, "image2": {"valueReference": "41"}}}}}}}}}}, "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": "32"}}, "collection": {"valueReference": "9"}}}}}}}}}}}},{"opacity": 0},'Fitted CCDC NDVI',true);
}catch(err){
	layerLoadErrorMessages.push("Error loading: Fitted CCDC NDVI<br>GEE "+err);}
if(layerLoadErrorMessages.length>0){showMessage("Map.addLayer Error List",layerLoadErrorMessages.join("<br>"));}
setTimeout(function(){if(layerLoadErrorMessages.length===0){$('#close-modal-button').click();}}, 2500);
Map2.setTitle("LCMAP LCMS Viewer")
Map2.turnOnInspector();
Map2.setQueryDateFormat("YYYY");
queryWindowMode = "sidePane"
}