showMessage('Loading',staticTemplates.loadingModal);
function runGeeViz(){
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change_Raw_Probability_Slow_Loss", "Change_Raw_Probability_Fast_Loss", "Change_Raw_Probability_Gain"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}, "newNames": {"constantValue": ["Slow_Loss", "Fast_Loss", "Gain"]}}}}, "2": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change_Raw_.*"]}, "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.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "2"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}},{"min": 0, "max": 30, "opacity": 0, "addToLegend": false},'Raw LCMS Change Model Probability',true);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover_Raw_Probability_Trees", "Land_Cover_Raw_Probability_Tall-Shrubs-and-Trees-Mix", "Land_Cover_Raw_Probability_Shrubs-and-Trees-Mix", "Land_Cover_Raw_Probability_Grass-Forb-Herb-and-Trees-Mix", "Land_Cover_Raw_Probability_Barren-and-Trees-Mix", "Land_Cover_Raw_Probability_Tall-Shrubs", "Land_Cover_Raw_Probability_Shrubs", "Land_Cover_Raw_Probability_Grass-Forb-Herb-and-Shrubs-Mix", "Land_Cover_Raw_Probability_Barren-and-Shrubs-Mix", "Land_Cover_Raw_Probability_Grass-Forb-Herb", "Land_Cover_Raw_Probability_Barren-and-Grass-Forb-Herb-Mix", "Land_Cover_Raw_Probability_Barren-or-Impervious", "Land_Cover_Raw_Probability_Snow-or-Ice", "Land_Cover_Raw_Probability_Water"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}, "newNames": {"constantValue": ["Trees", "Tall-Shrubs-and-Trees-Mix", "Shrubs-and-Trees-Mix", "Grass-Forb-Herb-and-Trees-Mix", "Barren-and-Trees-Mix", "Tall-Shrubs", "Shrubs", "Grass-Forb-Herb-and-Shrubs-Mix", "Barren-and-Shrubs-Mix", "Grass-Forb-Herb", "Barren-and-Grass-Forb-Herb-Mix", "Barren-or-Impervious", "Snow-or-Ice", "Water"]}}}}, "2": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover_Raw_.*"]}, "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.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "2"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}},{"min": 0, "max": 30, "opacity": 0, "addToLegend": false},'Raw LCMS Land Cover Model Probability',true);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use_Raw_Probability_Agriculture", "Land_Use_Raw_Probability_Developed", "Land_Use_Raw_Probability_Forest", "Land_Use_Raw_Probability_Non-Forest-Wetland", "Land_Use_Raw_Probability_Other", "Land_Use_Raw_Probability_Rangeland-or-Pasture"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}, "newNames": {"constantValue": ["Agriculture", "Developed", "Forest", "Non-Forest-Wetland", "Other", "Rangeland-or-Pasture"]}}}}, "2": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use_Raw_.*"]}, "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.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "2"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}},{"min": 0, "max": 30, "opacity": 0, "addToLegend": false},'Raw LCMS Land Use Model Probability',true);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "2": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"valueReference": "2"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1989}, "field": {"constantValue": "year"}, "start": {"constantValue": 1985}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "2"}}}}}}}}},{"autoViz": true},'Early Land Use Mode (1985-1989)',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Use"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "2": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"valueReference": "2"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2020}, "field": {"constantValue": "year"}, "start": {"constantValue": 2016}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "2"}}}}}}}}},{"autoViz": true},'Recent Land Use Mode (2016-2020)',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "2": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"valueReference": "2"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 1989}, "field": {"constantValue": "year"}, "start": {"constantValue": 1985}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "2"}}}}}}}}},{"autoViz": true},'Early Land Cover Mode (1985-1989)',false);
Map2.addSerializedLayer({"result": "0", "values": {"1": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Land_Cover"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "2": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "0": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "reduce.mode", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "Collection.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "1"}}, "collection": {"valueReference": "2"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.calendarRange", "arguments": {"end": {"constantValue": 2020}, "field": {"constantValue": "year"}, "start": {"constantValue": 2016}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "2"}}}}}}}}},{"autoViz": true},'Recent Land Cover Mode (2016-2020)',false);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "system:time_start"}, "3": {"constantValue": "year"}, "1": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"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": {"argumentReference": "_MAPPING_VAR_0_0"}, "property": {"valueReference": "2"}}}}}}}, "unit": {"valueReference": "3"}}}}}}}}}}, "names": {"arrayValue": {"values": [{"valueReference": "3"}]}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 2}}}}}}}}}}, "properties": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "source": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"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": "4"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "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"]},'Most Recent Slow Loss Year',true);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "system:time_start"}, "3": {"constantValue": "year"}, "1": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"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": {"argumentReference": "_MAPPING_VAR_0_0"}, "property": {"valueReference": "2"}}}}}}}, "unit": {"valueReference": "3"}}}}}}}}}}, "names": {"arrayValue": {"values": [{"valueReference": "3"}]}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 3}}}}}}}}}}, "properties": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "source": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"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": "4"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "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"]},'Most Recent Fast Loss Year',true);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "system:time_start"}, "3": {"constantValue": "year"}, "1": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"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": {"argumentReference": "_MAPPING_VAR_0_0"}, "property": {"valueReference": "2"}}}}}}}, "unit": {"valueReference": "3"}}}}}}}}}}, "names": {"arrayValue": {"values": [{"valueReference": "3"}]}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 4}}}}}}}}}}, "properties": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "source": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"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": "4"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1985, "max": 2020, "palette": ["c5ee93", "00a398"]},'Most Recent Gain Year',true);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "system:time_start"}, "3": {"constantValue": "year"}, "1": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"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": {"argumentReference": "_MAPPING_VAR_0_0"}, "property": {"valueReference": "2"}}}}}}}, "unit": {"valueReference": "3"}}}}}}}}}}, "names": {"arrayValue": {"values": [{"valueReference": "3"}]}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 2}}}}}}}}}}, "properties": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "source": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "reduce.count", "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": "4"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1, "max": 5, "palette": ["BD1600", "E2F400", "0C2780"]},'Slow Loss Duration',false);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "system:time_start"}, "3": {"constantValue": "year"}, "1": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"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": {"argumentReference": "_MAPPING_VAR_0_0"}, "property": {"valueReference": "2"}}}}}}}, "unit": {"valueReference": "3"}}}}}}}}}}, "names": {"arrayValue": {"values": [{"valueReference": "3"}]}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 3}}}}}}}}}}, "properties": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "source": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "reduce.count", "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": "4"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1, "max": 5, "palette": ["BD1600", "E2F400", "0C2780"]},'Fast Loss Duration',false);
Map2.addSerializedLayer({"result": "0", "values": {"2": {"constantValue": "system:time_start"}, "3": {"constantValue": "year"}, "1": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"functionInvocationValue": {"functionName": "Image.rename", "arguments": {"input": {"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": {"argumentReference": "_MAPPING_VAR_0_0"}, "property": {"valueReference": "2"}}}}}}}, "unit": {"valueReference": "3"}}}}}}}}}}, "names": {"arrayValue": {"values": [{"valueReference": "3"}]}}}}}, "mask": {"functionInvocationValue": {"functionName": "Image.eq", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 4}}}}}}}}}}, "properties": {"arrayValue": {"values": [{"valueReference": "2"}]}}, "source": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "4": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change"]}, "input": {"argumentReference": "_MAPPING_VAR_0_0"}}}}, "0": {"functionInvocationValue": {"functionName": "reduce.count", "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": "4"}}, "collection": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}}}}}}}}}}}},{"min": 1, "max": 5, "palette": ["BD1600", "E2F400", "0C2780"]},'Gain Duration',false);
Map2.addSerializedTimeLapse({"result": "0", "values": {"2": {"functionInvocationValue": {"functionName": "Collection.filter", "arguments": {"collection": {"functionInvocationValue": {"functionName": "ImageCollection.load", "arguments": {"id": {"constantValue": "USFS/GTAC/LCMS/v2021-7"}}}}, "filter": {"functionInvocationValue": {"functionName": "Filter.equals", "arguments": {"leftField": {"constantValue": "study_area"}, "rightValue": {"constantValue": "CONUS"}}}}}}}, "1": {"functionInvocationValue": {"functionName": "Image.updateMask", "arguments": {"image": {"argumentReference": "_MAPPING_VAR_0_0"}, "mask": {"functionInvocationValue": {"functionName": "Image.copyProperties", "arguments": {"destination": {"functionInvocationValue": {"functionName": "Image.and", "arguments": {"image1": {"functionInvocationValue": {"functionName": "Image.gt", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 1}}}}}}}, "image2": {"functionInvocationValue": {"functionName": "Image.lt", "arguments": {"image1": {"argumentReference": "_MAPPING_VAR_0_0"}, "image2": {"functionInvocationValue": {"functionName": "Image.constant", "arguments": {"value": {"constantValue": 5}}}}}}}}}}, "source": {"functionInvocationValue": {"functionName": "Collection.first", "arguments": {"collection": {"valueReference": "2"}}}}}}}}}}, "3": {"functionInvocationValue": {"functionName": "Image.select", "arguments": {"bandSelectors": {"constantValue": ["Change"]}, "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.map", "arguments": {"baseAlgorithm": {"functionDefinitionValue": {"argumentNames": ["_MAPPING_VAR_0_0"], "body": "3"}}, "collection": {"valueReference": "2"}}}}}}}}},{"autoViz": true},'LCMS Change Time Lapse',false);
setTimeout(function(){$('#close-modal-button').click();}, 2500);
synchronousCenterObject({"geodesic": false, "type": "Polygon", "coordinates": [[[-135.28638701799068, 20.383790094917764], [-56.44630603930493, 20.383790094917764], [-56.44630603930493, 52.4593640767228], [-135.28638701799068, 52.4593640767228], [-135.28638701799068, 20.383790094917764]]]})
$('#query-label').click();
}