Select to view content in your preferred language

Help needed: Attempted to group habitats within aggregate class.

630
2
01-13-2023 05:01 AM
SimpleMapper
New Contributor

Hi there,

I'm using Arc GIS pro and I have been attempting to use the calculate field to organise these 'Broad Habitats' into their 'Aggregate Class' - so simplifying them in a way. 

 

thumbnail_image.png

I created a new field within the attribute table and attempted to calculate the field. I thought I should add the 'Broad Habitat values', and then equal it to the 'aggregate class'. This screenshot below shows how I attempted this with the Semi-Natural Grassland 'Aggregate class'. 

image.png

I added the 'broad Habitat' values together, but I got an error sign when attempting to apply it. any thoughts where I went wrong and how I can solve this issue? Am I on the right track?

image-2.png

Any help would be appreciated 🙂

 

 

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

screen grab just the dialogs to make them easier to read.

and if you are trying to do a field calculation, with a python expression, you need to enclose the field names in exclamation marks

!fld0! == !fld1

will return the fields where they are equal


... sort of retired...
0 Kudos
SimpleMapper
New Contributor

Thank you for getting back to me so quickly.

And yes sorry for the blurry screenshots.

thumbnail_image-2.png

image-3.png

Hope this is better to read.

Do you recommend using Arcade instead of Python?  

0 Kudos