Observed since 20 Oct, 21:24 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Package to work with data from brazilian agenci
The objective is create a package that help to usa data of Agencia Nacional de Águas (ANA), Instituto Nacional de Meteorologia (INEMET), Merge, Brazilian Daily Weather Gridded Data (BR-DWGD) and Instituto de Hidrología, Meteorología y Estudios Ambientales (IDEAM). All the data above is from Brazil, minus the IDEAM that is from Colombia.
Usage
pip install AgenciBr
In python:
Import Ana
from AgenciBr import Ana.Ana
data = Ana.Ana('path file')
""" Properties """
data.dataset # return the dataset
data.code #Return the
data.startdate #return the first date from dataset
data.enddate #return the end date from dataset
data.len #return the length from dataset
data.type_data #return the data informations (precipitation, temperature, t_maxmin, wind, ...)
data.type #return if data is original, format1, format2 ...
Import Inemet
from AgenciBr import Inemet
data = Inemet.Inemet('path file')
Import Merge
from AgenciBr import Merge
data = Merge.Merge('path file')
Import Alexandre
from AgenciBr import Alexandre
data = Alexandre.Alexandre('path file')
Import Ideam
from AgenciBr import Ideam
data = Ideam.Ideam('path file')
Suported functions
| Agenci | Precipitacion | vazão | Temperature(mean) | Temperature (minimun, maximum) |
|---|---|---|---|---|
| Ana | [x] | [ ] | [ ] | [ ] |
| Inemet | [x] | [x] | ||
| Merge | [ ] | [ ] | [ ] | [ ] |
| Alexandre | [ ] | [ ] | [ ] | [ ] |
| Ideam | [ ] | [ ] | [ ] | [ ] |
From internal function we construct function1, functon2
We work with distints data and dataframe models, bacause this, was create the function format1 in each agenci. This function have three param:
The principal objective of this function is
The outfile have format precipitation
time pr
1997-07-01 0.1
1997-07-02 0.3
....
...
...
2020-01-01 0.3
2020-01-02 0.0
The outfile have format temperature
time max min
0 1961-01-01 NaN NaN
1 1961-01-02 NaN NaN
2 1961-01-03 NaN NaN
3 1961-01-04 NaN NaN
4 1961-01-05 NaN NaN
... ... ... ...
22276 2021-12-28 28.7 21.6
22277 2021-12-29 29.3 21.6
22278 2021-12-30 26.9 21.8
22279 2021-12-31 32.3 21.6
22280 2022-01-01 27.6 23.8
[22281 rows x 3 columns]
We work with datasets, to padronize, we create the function format2 that exists only when you are working with dataset files.
| Indices | Ana | Inemet | Xavier | Merge | IDEAM |
|---|---|---|---|---|---|
| TXX | [X] | [X] | |||
| TNX | [X] | [X] | |||
| TX90P | [X] | [X] | |||
| TN90P | [X] | [X] | |||
| CDD | [X] | ||||
| CWD | [X] | ||||
| PRCPTOT | [X] | [X] | |||
| RX5DAY | [X] | [X] | |||
| TN10P | |||||
| FD | |||||
| SU | |||||
| ETR | |||||
| RNNMM | |||||
| R99P | |||||
| R95P | |||||
| R10MM | |||||
| R20MM | |||||
| R99PTOT |
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.8 | 16 Jul 2023 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:24 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:fdaa9310b4e9292901955dc4d28532d859771d8b957bae3755b3e8e2ae9af72a