-
Notifications
You must be signed in to change notification settings - Fork 1
update the get_gid_0 function #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
one if condition is adding in the parse_events.py for Taiwan administrative area type |
i-be-snek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the only change now is checking that the gid an alphabetic string. It's encouraged to add as much validation as possible, so this code is fine. My question is: what is the problem you were trying to solve with this change?
|
I just checked the attached issue. So the thing is, some GADM codes are alphanumerical and not just alphabetic. The ones I was able to find are indeed all the ones that contain Z followed by two digits and related to China, India, and some other regions. And your reason for trying to remove them is that they include disputed areas, specifically in regards to China.
My opinion here is that this is not a conflict, this is by design, this is how GADM chooses to break down areas based on their own criteria. If your goal is to remove the location information of these areas so that they would all appear to be part of China (GADM code CHN), then you may be reducing the granularity of our data and erasing data that is essential... if a flood happens in Tibet, how useful is the data if we remove Tibet (GADM code Z03) and lump it all under China (GADM code CHN)? And if a flood happens in all of China, then that would by extension include Tibet given its geographical location. You may also be introducing unfair breakdowns based on political reasons. Sorry, I will not pass this PR or spend more time on this until we have had a discussion about this in the group. I need to understand the pros and cons of doing such filtering, but I'm still struggling to do that at the moment. |
I think the issue is not excluding them in GIDs, but, to make sure we don't have undetected parsed output"'Tukchenzam', 'Valley County, Nebraska, United States', from the original output [ |
I update the get_gid_0 for country code, pls help to test