Hi there,
I'm doing my bachelor thesis research about land use change,
since our national land use survey is vector data,
I would like to convert it to grid data for the next steps.
First, I used the "Create Fishnet" tool to generate a 20m*20m grid,
then I used the "Tabulate Area" tool to calculate the area of each land use type in each grid,
but the resulting table still needs to decide the types of the grid by
determining the maximum area in each grid.
After searching the web,
I found this Excel function that returns the column with the largest data in each field
to determine the land use type for that cell:
=ADDRESS(1,MATCH(MAX(Column Start:Column End),Column Start:Column End,0)+1)
When the Excel determination is complete,
import the new table into ArcGIS Pro and run the "Join field" tool to complete this session.
But the problem is that my tabulated table exceeds Excel's limit,
so I can't use Excel to do this,
then I was wondering if there is a better way to do this with the "Caculate Field" tool or Python syntax?
I'm trying MS Access but the SQL syntax also makes me exhausted as a coding newbie.
I thought it would be simple, but even ChatGPT couldn't give me any syntax to run it correctly.
The table after "Tabulated" looks like:
Table after tabulated
The result I want:
The result I want
Best regards,
William.