geobr icon indicating copy to clipboard operation
geobr copied to clipboard

python: translate read_statistical_grid

Open rafapereirabr opened this issue 5 years ago • 4 comments

In the R version, grid_state_correspondence_table is located in /r-package/data directory. It is stored locally with the R package. To load this data, the R user needs to run data(grid_state_correspondence_table). We could save it as a .csv files to use in the python version.

I assume that Python libraries can also store small datasets locally. Correct?

rafapereirabr avatar Mar 07 '20 11:03 rafapereirabr

Yes, it can. I'd need the .csv version though :)

On Sat, Mar 7, 2020 at 6:35 AM Rafael H M Pereira [email protected] wrote:

In the R version, grid_state_correspondence_table is located in /r-package/data directory. It is stored locally with the R package. To load this data, the R user needs to run data(grid_state_correspondence_table). We could save it as a .csv files to use in the python version.

I assume that Python libraries can also store small datasets locally. Correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ipeaGIT/geobr/issues/123?email_source=notifications&email_token=AEYJ6VFRBEL4SNPKO42BFYTRGIWQXA5CNFSM4LDO5QKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITJHTDQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYJ6VAPSUSK6ABFWKI2SUTRGIWQXANCNFSM4LDO5QKA .

--

João Carabetta

(19) 99944 8764

[image: LinkedIn] https://htmlsig.com/t/000001CC9BV9 [image: Github] https://htmlsig.com/t/000001C5STHP

JoaoCarabetta avatar Mar 07 '20 20:03 JoaoCarabetta

In which directory should I save it?

Rafael H.M. Pereira

On 7 Mar 2020, at 17:06, João Carabetta [email protected] wrote:

Yes, it can. I'd need the .csv version though :)

On Sat, Mar 7, 2020 at 6:35 AM Rafael H M Pereira [email protected] wrote:

In the R version, grid_state_correspondence_table is located in /r-package/data directory. It is stored locally with the R package. To load this data, the R user needs to run data(grid_state_correspondence_table). We could save it as a .csv files to use in the python version.

I assume that Python libraries can also store small datasets locally. Correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ipeaGIT/geobr/issues/123?email_source=notifications&email_token=AEYJ6VFRBEL4SNPKO42BFYTRGIWQXA5CNFSM4LDO5QKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITJHTDQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYJ6VAPSUSK6ABFWKI2SUTRGIWQXANCNFSM4LDO5QKA .

--

João Carabetta

(19) 99944 8764

[image: LinkedIn] https://htmlsig.com/t/000001CC9BV9 [image: Github] https://htmlsig.com/t/000001C5STHP — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rafapereirabr avatar Mar 08 '20 02:03 rafapereirabr

put it at python-package/geobr/data/<file_name>

On Sat, Mar 7, 2020 at 9:15 PM Rafael H M Pereira [email protected] wrote:

In which directory should I save it?

Rafael H.M. Pereira

On 7 Mar 2020, at 17:06, João Carabetta [email protected] wrote:

Yes, it can. I'd need the .csv version though :)

On Sat, Mar 7, 2020 at 6:35 AM Rafael H M Pereira < [email protected]> wrote:

In the R version, grid_state_correspondence_table is located in /r-package/data directory. It is stored locally with the R package. To load this data, the R user needs to run data(grid_state_correspondence_table). We could save it as a .csv files to use in the python version.

I assume that Python libraries can also store small datasets locally. Correct?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/ipeaGIT/geobr/issues/123?email_source=notifications&email_token=AEYJ6VFRBEL4SNPKO42BFYTRGIWQXA5CNFSM4LDO5QKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ITJHTDQ , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEYJ6VAPSUSK6ABFWKI2SUTRGIWQXANCNFSM4LDO5QKA

.

--

João Carabetta

(19) 99944 8764

[image: LinkedIn] https://htmlsig.com/t/000001CC9BV9 [image: Github] https://htmlsig.com/t/000001C5STHP — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ipeaGIT/geobr/issues/123?email_source=notifications&email_token=AEYJ6VFIU7XIDQGZTVJZBY3RGL5VLA5CNFSM4LDO5QKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOEKONA#issuecomment-596158260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYJ6VH6WTWHA5FIOUVH3CLRGL5VLANCNFSM4LDO5QKA .

--

João Carabetta

(19) 99944 8764

[image: LinkedIn] https://htmlsig.com/t/000001CC9BV9 [image: Github] https://htmlsig.com/t/000001C5STHP

JoaoCarabetta avatar Mar 08 '20 03:03 JoaoCarabetta

Ok. I've just added python-package\geobr\data\grid_state_correspondence_table.csv

rafapereirabr avatar Mar 08 '20 12:03 rafapereirabr