<?xml version="1.0" encoding="UTF-8"?>
<metadata xml:lang="en"><Esri><CreaDate>20181128</CreaDate><CreaTime>10500400</CreaTime><ArcGISFormat>1.0</ArcGISFormat><SyncOnce>TRUE</SyncOnce><DataProperties><lineage><Process ToolSource="c:\arcgis\desktop10.4\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20181128" Time="105004">CalculateField g2008_af_2 FEWS_ID "!FEWS_ID! .replace('Swaziland', 'Eswatini')" PYTHON_9.3 #</Process><Process ToolSource="c:\arcgis\desktop10.4\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20181128" Time="105016">CalculateField g2008_af_2 ADM0_NAME "!ADM0_NAME! .replace('Swaziland', 'Eswatini')" PYTHON_9.3 #</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\AddField" Date="20191007" Time="080105">AddField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp POLY_ID String # # 50 # NULLABLE NON_REQUIRED #</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20191007" Time="080106">CalculateField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp POLY_ID calcValue(!POLY_ID!, !FEWS_CODE!, None, None, None, 'POLY_ID', 'utf-8') PYTHON_9.3 "\ndef calcValue(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode):\n    # print(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode)\n    calc_exp_res = ''\n    if new_fld_name == 'POLY_ID':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (str(int(fld0)) + '+' + str(int(fld1)) + '+' +\n                            str(int(fld2)))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = str(int(fld0)) + '+' + str(int(fld1))\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = str(int(fld0))\n        elif old_fld is not None:\n            calc_exp_res = str(old_fld)\n    elif new_fld_name == 'POLY_NAME':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (fld0.encode(ecode) + '+' + fld1.encode(ecode) +\n                            '+' + fld2.encode(ecode))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode) + '+' + fld1.encode(ecode)\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode)\n        elif old_fld is not None:\n            calc_exp_res = old_fld.encode(ecode)\n    elif new_fld_name == 'GS_START' or new_fld_name == 'WS_START':\n        calc_exp_res = int(old_fld)\n    # print(calc_exp_res)  # for debugging\n    return calc_exp_res\n"</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\AddField" Date="20191007" Time="080107">AddField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp POLY_NAME String # # 254 # NULLABLE NON_REQUIRED #</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20191007" Time="080108">CalculateField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp POLY_NAME calcValue(!POLY_NAME!, !FEWS_ID!, None, None, None, 'POLY_NAME', 'utf-8') PYTHON_9.3 "\ndef calcValue(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode):\n    # print(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode)\n    calc_exp_res = ''\n    if new_fld_name == 'POLY_ID':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (str(int(fld0)) + '+' + str(int(fld1)) + '+' +\n                            str(int(fld2)))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = str(int(fld0)) + '+' + str(int(fld1))\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = str(int(fld0))\n        elif old_fld is not None:\n            calc_exp_res = str(old_fld)\n    elif new_fld_name == 'POLY_NAME':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (fld0.encode(ecode) + '+' + fld1.encode(ecode) +\n                            '+' + fld2.encode(ecode))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode) + '+' + fld1.encode(ecode)\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode)\n        elif old_fld is not None:\n            calc_exp_res = old_fld.encode(ecode)\n    elif new_fld_name == 'GS_START' or new_fld_name == 'WS_START':\n        calc_exp_res = int(old_fld)\n    # print(calc_exp_res)  # for debugging\n    return calc_exp_res\n"</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\AddField" Date="20191007" Time="080109">AddField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp GS_START SHORT 5 # # # NULLABLE NON_REQUIRED #</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20191007" Time="080110">CalculateField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp GS_START calcValue(!GS_START!, !SEAS_START!, None, None, None, 'GS_START', 'utf-8') PYTHON_9.3 "\ndef calcValue(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode):\n    # print(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode)\n    calc_exp_res = ''\n    if new_fld_name == 'POLY_ID':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (str(int(fld0)) + '+' + str(int(fld1)) + '+' +\n                            str(int(fld2)))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = str(int(fld0)) + '+' + str(int(fld1))\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = str(int(fld0))\n        elif old_fld is not None:\n            calc_exp_res = str(old_fld)\n    elif new_fld_name == 'POLY_NAME':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (fld0.encode(ecode) + '+' + fld1.encode(ecode) +\n                            '+' + fld2.encode(ecode))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode) + '+' + fld1.encode(ecode)\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode)\n        elif old_fld is not None:\n            calc_exp_res = old_fld.encode(ecode)\n    elif new_fld_name == 'GS_START' or new_fld_name == 'WS_START':\n        calc_exp_res = int(old_fld)\n    # print(calc_exp_res)  # for debugging\n    return calc_exp_res\n"</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\AddField" Date="20191007" Time="080111">AddField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp WS_START SHORT 5 # # # NULLABLE NON_REQUIRED #</Process><Process ToolSource="c:\arcgis\desktop10.3\ArcToolbox\Toolboxes\Data Management Tools.tbx\CalculateField" Date="20191007" Time="080112">CalculateField D:\FEWS\temp\G4\Africa_NEW\g2008_af_2.shp WS_START calcValue(!WS_START!, !SEAS_START!, None, None, None, 'WS_START', 'utf-8') PYTHON_9.3 "\ndef calcValue(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode):\n    # print(new_fld, old_fld, fld0, fld1, fld2, new_fld_name, ecode)\n    calc_exp_res = ''\n    if new_fld_name == 'POLY_ID':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (str(int(fld0)) + '+' + str(int(fld1)) + '+' +\n                            str(int(fld2)))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = str(int(fld0)) + '+' + str(int(fld1))\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = str(int(fld0))\n        elif old_fld is not None:\n            calc_exp_res = str(old_fld)\n    elif new_fld_name == 'POLY_NAME':\n        if fld0 is not None and fld1 is not None and fld2 is not None:\n            calc_exp_res = (fld0.encode(ecode) + '+' + fld1.encode(ecode) +\n                            '+' + fld2.encode(ecode))\n        elif fld0 is not None and fld1 is not None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode) + '+' + fld1.encode(ecode)\n        elif fld0 is not None and fld1 is None and fld2 is None:\n            calc_exp_res = fld0.encode(ecode)\n        elif old_fld is not None:\n            calc_exp_res = old_fld.encode(ecode)\n    elif new_fld_name == 'GS_START' or new_fld_name == 'WS_START':\n        calc_exp_res = int(old_fld)\n    # print(calc_exp_res)  # for debugging\n    return calc_exp_res\n"</Process></lineage></DataProperties></Esri></metadata>
