Provide geographic attribute files as hosted parquet, including pre-2006 censuses
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
Direzione di ricerca
Start by checking the R implementation of get_statcan_geographic_attributes() and the hosted storage status described in the issue; then inspect the listed source files and layouts for the older censuses. The work also requires deciding how to expose differing census fields and documenting provenance. Done means the missing parquet files are hosted with source and licence metadata, and the function can read them across the intended census years.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The geographic attribute files are useful well beyond TongFen: they link the lowest census geography to the higher levels, with population, dwellings and representative points. get_statcan_geographic_attributes() only covers 2006 to 2021 and downloads from StatCan, which now puts at least the 2021 file behind a browser check (#228).
This proposes serving the attribute files as hosted parquet, written with r2parquet, and adding the older censuses.
Files
| Census | Source | Base geography | Records |
|---|---|---|---|
| 2021, 2016, 2011, 2006 | 92-151 attribute files |
DB | Not counted here |
| 2001 | GeoSuite 2001 geosuite2001.mdb, tables CB and DA |
Block, DA | 478,707 blocks, 52,993 DAs |
| 1996 | GAF1996.txt |
EA | 49,361 |
| 1991 | gaf91.txt |
EA | 45,995 |
| 1986 | GAF1986.txt |
EA | 44,042 |
| 1981 | GAF1981.txt |
EA | 41,197 |
I haven't found a separate 2001 attribute file. The GeoSuite CB table has similar content: population, dwellings, representative points, and the codes for higher levels. If StatCan did release a 2001 attribute file, it should replace this.
Hosting status
I found no attribute files in the public mountainmath S3 bucket under the tongfen, cancensus, statcan, census, gaf or attribute prefixes, and the existing mirror holds only correspondence files. R2 still needs checking, as I couldn't list its buckets.
What needs doing
- Confirm what's already hosted on R2, then convert and upload what's missing, with the source and the Statistics Canada Open Data licence in the parquet footer.
- Extend
get_statcan_geographic_attributes()to the older years and read from the hosted files. Keep the provenance visible, since re-hosting is the concern raised in #228. - Parse the older fixed-width layouts, which have a different structure for each census.
- Decide whether to return columns as released or harmonised across years. As released is simpler and closer to the source, but the older EA-based files have quite different fields from the DB-based ones.
- Decide on the function's scope. The existing name still fits, but pre-2006 results are at EA level.
- Consider the same treatment for
get_statcan_geo_suite(). Its 2001 download URL returned a Cloudflare challenge (HTTP 403) when tested from a script.
Related: mountainMath/tongfen#22, which covers the correspondence files for the same censuses.
- Lingua principale
- HTML
- Stelle
- 90
- Fork
- 14
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mountainMath/cancensus
-
user agentForse già presa @mountainMath l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
mountainMath/cancensus#231 ·
-
Translate API level labelling to "labelled" columnsForse già presa @mountainMath l’ha presa 3 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
mountainMath/cancensus#230 · 1 commento ·
-
French language labelsForse già presa @mountainMath l’ha presa 3 giorni fa. Apertaenhancement
Difficoltà 4/5 1-2 giorni Idoneità per principianti 15/100
mountainMath/cancensus#229 · 2 commenti ·
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
mountainMath/cancensus#228 · 1 commento ·
-
(Warning) messages when no cache path is setForse già presa @mountainMath l’ha presa 3 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
mountainMath/cancensus#227 ·
Tutte le issue di mountainMath/cancensus
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
desktop v3 windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
esengine/DeepSeek-Reasonix#15016 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[yugabyted] xcluster set_up and add_to_replication fail for database names containing - . or (Apertakind/bug priority/medium qa_automation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
yugabyte/yugabyte-db#37324 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
balovess/aria2_rust#88 ·
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 87/100
btclib-org/btclib-node#2260 ·
I maintainer di solito rispondono entro 1 giorno