Skip to content

Plotting Service

Aishwarya Vijay Sinhasane edited this page Apr 6, 2022 · 3 revisions

Working

A plotting service will be used to create the plot of weather data extracted. Here we have used metpy to plot the nexrad data and matplotlib to plot the merra data.

Plotting Merra data -

  • Plot service will receive URL to download the merra data.
  • This service will convert this extracted data into CSV format.
  • Then the converted data will be passed to the plotting function which will generate plot as per user input.

Tech

  • Python Flask
  • AWS SDK for python boto3
  • REST API
  • MongoDB
  • NetCDF4
  • Pandas
  • Matplotlib

How to Run

  • Go to the plot-service folder
  • Install Pipenv
  • For MAC
    • brew install pipenv
    • pipenv --python 3.8.9 (i.e This is used to create virtual environment of python v3.8.9)
    • pipenv shell (i.e Activates virtual environment)
    • pip install -r requirements.txt

Service Port

Port - 5002