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_json(-18.92803, -40.09281)
{
'success': True,
'status_code': 200,
'message': 'Sucesso.',
'data': {
'listaSerie': [0.6923, ..., 0.6638],
'listaDatas': ['2000-02-18', ..., '2022-06-26']
}
}
>>> serie.get(-18.92803, -40.09281, label='Café')
'pandas.core.frame.DataFrame'
>>> 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file satveg_api-2.0.1.tar.gz.
File metadata
- Download URL: satveg_api-2.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca31e695e6d9412f622ce4a1c65988790d28692e27c56518afc1e7c35cf6124
|
|
| MD5 |
097d3b04b44cce26d97881f57c7a5d88
|
|
| BLAKE2b-256 |
9d0fd8803334f874a5372377ca99d9df82616f49510824fa77ec5e45f597d206
|
File details
Details for the file satveg_api-2.0.1-py3-none-any.whl.
File metadata
- Download URL: satveg_api-2.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60b0a48365fb304b7ee93b91795bce26a94661fb43f366214782a5d7de151e15
|
|
| MD5 |
fed12849567bae65a01f1c801f450347
|
|
| BLAKE2b-256 |
ed4da3632f0b7c2132514f25ac4a2308a78bd88a4ca3cd70b471dec6308fd142
|