Skip to content

Mohamad-fcz/MRMS

Repository files navigation

  

GitHub release (latest by date)    GitHub    GitHub top language

This Python Jupyter Notebook is designed to help automate the download process of MRMS rainfall data using the Selenium package. With this package, you can easily download all the MRMS rainfall data at once, making it much easier to work with.

Storm heat

Features

  • 100% Jupyter Notebook
  • Compatible with IDEs such as Pycharm
  • Jupyter widgets base for more convenience to use
  • Light weight

Installation

This project makes use of Jupyter Notebooks for increased convenience. In order for you to be able to interact with the widgets contained within the notebook, you will first need to install Jupyer Notebook along with its dependencies in the form of Ipywidgets. Here are provided three different methods to create the environment that you may choose the one is more convenient for you.

  1. The easiest way to create the python environment is using the "yml" file we provided in the repository and you just need to import this file in your directory and run below conda command.
  conda env create -f environment.yml
  1. Installing Jupyter Lab or installing the Jupyter meta(both are the same) package through conda is the more convenient alternative for achieving this objective. Both of these options make it simple for you to access everything in an effective Jupyter environment that you might require for this project or other projects.

Check that you have the most recent version of Anaconda downloaded and installed on your system. (https://github.com/Mohamad-fcz/MRMS)

  • Downdload Anaconda Using Anaconda Prompt:
  • installing the most recent version of Jpyter along with all of its dependencies.
  conda install -c conda-forge jupyter

or

  1. installing the most recent version of Jupyter notebook and activating Ipywidgets manually in case you are short on space or for any reason do not intend to install full Jupyter meta package from above method.
  conda install -c conda-forge notebook
  conda install -c conda-forge nb_conda_kernels
  conda install -c conda-forge jupyter_contrib_nbextensions
  conda install -c conda-forge ipywidgets

Afterwards, proceed to install the remaining packages that are necessary for web scraping.

  • Install the latest version of below packages in the environment using conda
  conda install -c conda-forge selenium
  conda install -c conda-forge webdriver-manager
  conda install -c conda-forge tqdm
 

How to use

Be certain to run the import cell as well as the functions.

With Jupyter widgets, you have a straightforward graphical user interface for setting parameters start/end date and the rainfall duration.

After you have finished making configurations, you can begin the automation process by clicking the "start download" button. Keep in mind that the process might take a while to be completed and preferably the system should not be in use meanwhile.

Author

  • portfolio

🔗 Contacting us

portfolio linkedin twitter

FAQ

In the event that you run into any issues while utilizing the program, you are more than welcome to post a problem in the issues section of GitHub.