ipeaGIT / geobr

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

read_comparable_areas is not returning the right columns #327

Open ariaker opened 1 year ago

ariaker commented 1 year ago

The data I can pull using read_comparable_areas is wrong. The table contains the columns code_amc, list_code_muni_2010, list_name_muni_2010, and geom. The columns list_code_muni_2010 and list_name_muni_2010 always contain the same information, and there is nothing about IBGE codes from each of the start or end years.

I have checked this for dozens of different year-pairs.

I am using the 1.8.1 version of the package in R 4.2.2.

rafapereirabr commented 1 year ago

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

ariaker commented 11 months ago

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

Any update on this?

fbrustolin-fep commented 11 months ago

I'm using geobr_1.8.1 in R version 4.3.2 (2023-10-31 ucrt) / Platform: x86_64-w64-mingw32/x64 (64-bit) / Running under: Windows 10 x64 (build 19045) and the list_code_muni_2010 seems to be OK, but list_name_muni_2010 also return the codes, not the municipalities names. Data was downloaded on read_comparable_areas(start_year = 1970, end_year = 2010, simplified = TRUE, showProgress = TRUE) call.

PedroJorge7 commented 11 months ago

Hello @ariaker,

I apologize for the delay response. During this period, we have been conducting several tests and making adjustments to our AMC code. As @fbrustolin-fep pointed out, in my results, I found that the list_code_muni_2010 seems to be OK, but the list_name_muni_2010 was incorrect. We made an adjustment in this column and also changed the column name to always align with the end year. So, if the end_year argument is 1960, the column should be named list_code_muni_1960. We will be uploading these adjustments soon.