/nearest-station

The project aim to identify the nearest meteorological station of each municipality of Brazil.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Nearest Station

The project aim to identify the nearest meteorological station of each municipality of Brazil. It can be used to choose the best data source in researches that depends on brazilian weather data.

Data

To achive this goal, we built a list of all meteorological station from the query form available on the CPTEC/INPE website.

Moreover, we have used two sources of geojsons to visualize data and as input to distance algorithms:

  • Brazil geojson was taken from here.
  • States and municipalities geojsons was generated using the br-atlas tool.

Setup the dev environment

The first step is install nodejs.

After that, install node modules, download csv and start the app:

$ npm install
$ npm run get-data
$ npm start

Running the container

Assuming the web server is configured to forward requests to the port 8001:

$ docker build .
$ docker run -d -p8001:8000 <id of container>