ipeaGIT / geobr

Easy access to official spatial data sets of Brazil in R and Python
https://ipeagit.github.io/geobr/
794 stars 119 forks source link

read_comparable_areas giving 522 AMCs #319

Open gabriel-berga opened 1 year ago

gabriel-berga commented 1 year ago

Hello there,

When I use the read_comparable_areas(start_year=1872, end_year = 2010) function the database has 522 AMCs, while Ehrl creates 482 AMCS using the same period. I'm not sure if I'm making some mistake, or if there is some problem with this function in the package.

Regards,

rafapereirabr commented 1 year ago

@PedroJorge7 , could you please have a look at this issue?

fbrustolin-fep commented 9 months ago

Today, just comparing the number of AMCs, I found:

Regards,

PedroJorge7 commented 9 months ago

Hello @fbrustolin-fep ,

I apologize for the delayed response. During this period, we have been conducting various tests and adjustments in search of differences between the AMCs in our code and the output from Ehrl.

We have finally found a result that is more consistent and aligned with what was observed with Ehrl (We will be uploading these adjustments soon). Following your example:

Note that there is a difference of one AMC between 1920-2010 and 1970-2010. However, it seems that our code is functioning correctly. This AMC difference is caused by Mossoró that in Ehrl code, does not share the same AMC as Serra do Mel, but in the original file, it appears to do. So, they should be considered a single AMC.

Attached are some screenshots from our comparative analysis:

image image

fbrustolin-fep commented 9 months ago

Thank you so much, @PedroJorge7 !