No project description provided
Project description
satveg-api
satveg-api é uma biblioteca Python que requisita aos servidores da Embrapa a série NDVI ou EVI de uma localidade (latitude, longitude). Tem capacidade de fazer múltiplas requisições dado um arquivo .csv
, retornando um Pandas.DataFrame.
Utilização
>>> import satveg_api
>>> serie = satveg_api.Series('SEU_TOKEN_DA_API_SATVEG')
>>> serie.get(-18.92803,-40.09281)
{
'success': True,
'status_code': 200,
'message': 'Sucesso.',
'data': {
'listaSerie': [0.6923, ..., 0.6638],
'listaDatas': ['2000-02-18', ..., '2022-06-26']
}
}
>>> df = serie.from_csv('input.csv')
'pandas.core.frame.DataFrame'
>>> satveg_api.to_learn(df)
'pandas.core.frame.DataFrame'
Exemplo de input.csv
:
label | latitude | longitude |
---|---|---|
Café | -18.92803 | -40.09281 |
Instalando a biblioteca satveg-api
satveg-api está disponível no PyPI:
$ python -m pip install satveg-api
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
satveg_api-1.0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for satveg_api-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7150a4ee92aeeadd20ac2512424d887044b73b400f0fe514dd0ae5965eee5883 |
|
MD5 | afccb7b33032178afe6cfdfa9f4d0929 |
|
BLAKE2b-256 | 4184d757ef933a311d6b9caf9ab2dd2c983a6839ea27949e7132bc51a7f1c564 |