Created
March 20, 2025 13:54
-
-
Save marcellobenigno/5030f9418ba4c958605aed2dc708dec6 to your computer and use it in GitHub Desktop.
Baixar dados do CAR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# instalar via PIP: | |
# pip install git+https://github.com/urbanogilson/SICAR | |
from SICAR import Sicar, State, Polygon | |
import pprint | |
# Create Sicar instance | |
car = Sicar() | |
# Get release data dates | |
state_dates = car.get_release_dates() | |
pprint.pprint(state_dates) | |
# {<State.AC: 'AC'>: '04/08/2024', | |
# <State.AL: 'AL'>: '04/08/2024', | |
# <State.AM: 'AM'>: '04/08/2024', | |
# <State.AP: 'AP'>: '03/08/2024', | |
# <State.BA: 'BA'>: '03/08/2024', | |
# <State.CE: 'CE'>: '06/08/2024', | |
# <State.DF: 'DF'>: '06/08/2024', | |
# <State.ES: 'ES'>: '04/08/2024', | |
# <State.GO: 'GO'>: '04/08/2024', | |
# <State.MA: 'MA'>: '04/08/2024', | |
# <State.MG: 'MG'>: '04/08/2024', | |
# <State.MS: 'MS'>: '06/08/2024', | |
# <State.MT: 'MT'>: '05/08/2024', | |
# <State.PA: 'PA'>: '03/08/2024', | |
# <State.PB: 'PB'>: '04/08/2024', | |
# <State.PE: 'PE'>: '03/08/2024', | |
# <State.PI: 'PI'>: '02/08/2024', | |
# <State.PR: 'PR'>: '03/08/2024', | |
# <State.RJ: 'RJ'>: '02/08/2024', | |
# <State.RN: 'RN'>: '03/08/2024', | |
# <State.RO: 'RO'>: '05/08/2024', | |
# <State.RR: 'RR'>: '06/08/2024', | |
# <State.RS: 'RS'>: '05/08/2024', | |
# <State.SC: 'SC'>: '05/08/2024', | |
# <State.SE: 'SE'>: '05/08/2024', | |
# <State.SP: 'SP'>: '05/08/2024', | |
# <State.TO: 'TO'>: '05/08/2024'} | |
# Download APPS polygon for the PA state | |
car.download_state(State.CE, Polygon.AREA_PROPERTY) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment