shrug-l: Creating an If/Then Python script, ArcMap 10.7

Scott Crosby scrosby at alachuacounty.us
Tue Sep 7 12:08:11 EDT 2021


Hi all,

I need to create a Python script that will change the values of one field based on the values of another field. In a nutshell, I want a Field called "Fire Type" to change to a yes, no or maybe, based on the values in another field called "Name_State" where this will happen:
                Name State = mesic flatwoods, or sandhill, or wet flatwoods, or pasture, or semi-improved pasture; then
                Fire type = Yes

                AND
                Name State = (non-pyric natural community); then
                Fire Type = No

                AND
                Name State = Basin marsh, or depression marsh, or dome swamp; then
                Fire Type = Maybe

It's been a while since I've dealt with Python, so any help anyone can provide would be greatly appreciated.

Thanks,
[cid:image001.png at 01D7A3E0.C6D33050]<http://www.alachuacounty.us/Pages/AlachuaCounty.aspx>

Scott Crosby, SAF Certified Forester
Senior Environmental Specialist
Environmental Protection
408 W. University Ave Suite 106 * Gainesville * FL * 32601
352-264-6823 (office) * 352-213-0024 (mobile)
[cid:image002.png at 01D7A3E0.C6D33050]<http://www.alachuacounty.us/Pages/AlachuaCounty.aspx>  [cid:image003.png at 01D7A3E0.C6D33050] <https://www.facebook.com/AlachuaCounty/>   [cid:image004.png at 01D7A3E0.C6D33050] <https://twitter.com/alachuacounty>   [cid:image005.png at 01D7A3E0.C6D33050] <https://www.instagram.com/alachuacounty/>   [cid:image006.jpg at 01D7A3E0.C6D33050] <https://www.youtube.com/user/alachuacounty>   [cid:image007.png at 01D7A3E0.C6D33050] <http://www.alachuacounty.us/depts/communications/pages/updatenewsletter.aspx>


PLEASE NOTE: Florida has a very broad public records law (F.S.119).
All e-mails to and from County Officials and County Staff are kept as public records. Your e-mail
communications, including your e-mail address, may be disclosed to the public and media at any time.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 14043 bytes
Desc: image001.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1595 bytes
Desc: image002.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1737 bytes
Desc: image003.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 993 bytes
Desc: image004.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 2343 bytes
Desc: image005.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 958 bytes
Desc: image006.jpg
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 2189 bytes
Desc: image007.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AC_logo-150ppi_b0554e81-2d50-477d-8264-0219cbd8ac34.png
Type: image/png
Size: 18897 bytes
Desc: AC_logo-150ppi_b0554e81-2d50-477d-8264-0219cbd8ac34.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Home2_44a3d51e-b983-4237-8082-72394e0032c7.png
Type: image/png
Size: 1595 bytes
Desc: Home2_44a3d51e-b983-4237-8082-72394e0032c7.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fb_logo_150ppi_9dd00851-99d8-4342-8932-10cac01030c6.png
Type: image/png
Size: 1417 bytes
Desc: fb_logo_150ppi_9dd00851-99d8-4342-8932-10cac01030c6.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter_150ppi_9c3d56ae-20c9-4509-b852-4aaed5522edd.png
Type: image/png
Size: 1034 bytes
Desc: twitter_150ppi_9c3d56ae-20c9-4509-b852-4aaed5522edd.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insta_150ppi_5be81f1b-b06b-49ca-b309-54edd0545f55.png
Type: image/png
Size: 6522 bytes
Desc: insta_150ppi_5be81f1b-b06b-49ca-b309-54edd0545f55.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: youtube_150ppi_0da7ed3a-56a8-459c-b04c-ed8dfa1a388a.png
Type: image/png
Size: 967 bytes
Desc: youtube_150ppi_0da7ed3a-56a8-459c-b04c-ed8dfa1a388a.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: county_news_150ppi_14250fe5-78c3-4aa5-b059-283cc85fd4ea.png
Type: image/png
Size: 2006 bytes
Desc: county_news_150ppi_14250fe5-78c3-4aa5-b059-283cc85fd4ea.png
URL: <http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20210907/f188b5b8/attachment-0012.png>


More information about the SHRUG-L mailing list