datasus

Download DATASUS databases

https://github.com/dtiezzi/datasus

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.1%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Download DATASUS databases

Basic Info
  • Host: GitHub
  • Owner: dtiezzi
  • License: gpl-3.0
  • Language: C
  • Default Branch: main
  • Size: 24.4 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 4 years ago · Last pushed over 3 years ago
Metadata Files
Readme License Citation

README.md

DATASUS

Download DATASUS databases

This is a shell script to download datasets from DATASUS FTP server.

To download data, you have to pass the year as an argument:

bash ./datasus.sh 15 # downloads all datasets from 2015

Note the script is designed to download the SIA-PA data. You can change the $DATABASE and the URL variables. Note you have to create a directory named dbfiles or change the $OUTDIR variable.

bash mkdir dbfiles

Using OpenMP

You can use OpenMP with datasus.c for multi-thread download. The default year is 2010. If you want to modify, change de global variable year. To compile, you can use the gcc compiler and setup the number of threads:

bash gcc -o datasus.out -fopenmp datasus.c export OMP_NUM_THREADS=4 # for 4 threads nohup ./datasus.c &> nohup_Cdatasus.out & # running in the backgroung

Owner

  • Name: Daniel Tiezzi
  • Login: dtiezzi
  • Kind: user
  • Location: Ribeirão Preto - Brazil
  • Company: University of São Paulo

MD, PhD, Data Scientist

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Daniel"
  given-names: "Tiezzi"
  orcid: "https://orcid.org/0000-0000-0000-0000"
title: "DATASUS download API"
version: 1.0
doi: 10.5281/zenodo.6824780
date-released: 2022-01-06
url: "https://github.com/dtiezzi/DATASUS"

GitHub Events

Total
Last Year