Giter Club home page Giter Club logo

draw_cmls_on_folium_map's Introduction

draw_cmls_on_folium_map

First, Draw_cml_map is a folium.Map object, and therefore all regular folium features can be added to.

Description

Visualize CML locations and raw-data on a map. The script reads a csv metadata file and creates and html file of all the links on a 2D map. Generally, the metadata file must include the following column names: link id, rx site latitude, tx site latitude, rx site longitude, tx site longitude. The names carrier and hop_id are optional and will be assigned with unknown carrier and not provided if they do not exist, respectively. Availability of rawdata timeseries can also be visualized in the popups.

In the Class Draw_cml_map you can can also:

  • Determine domain boundaries
  • Color specific links in different colors
  • Drop specific links
  • Add grid-lines
  • Create distortion to the locations of the base stations to avoid geographic overlaps

All aforementions options are well documented in the description of the Class.

Raw-data RSL popups

If raw data files are given, the CMLs drawn on the map will be ones for which raw data is available, and the popup of each link will consist of the timeseries available for it. Note that the variable interval is set to 15 (minutes) by default. Change it according to the resolution you possess.

If raw-data is not provided, the metadata will be drawn on the map.

Get the data from Omnisol system (recommended)

If you choose to visualize data downloaded from the Omnisol system follow these steps. After the filtering of the desired raw-data is done, download both the metadata and the raw-data (optional) by clicking on the blue icons on the top right as shown here:

Screen Shot 2022-03-20 at 15 36 21

Another way of obtaining the metadata of your links is by checking all the boxes of the filtered data --> right click --> export --> export to csv. Metadata files can also be directly downloaded from the database. Specifically for the E-band frequancy links of SMBIT, it is even recommended since the metadata on the Omnisol system does not include all the links due to bugs in the system (the SMBIT rawdata file from the database can be fed to the Class "as-is" without changing the column names in the csv file).

Directory

Place both the metadata file and the raw-data folder in the same directory.

Run

Play around by running the file run_example.py, after changing the following lines to your own needs:

name_map = 'my_map'

dir_out = '/directory/of/out/'

dir_data = '/directory/of/metadata/'

md_filename_1 = 'metadata_file_name_1.csv'

md_filename_2 = 'metadata_file_name_2.csv'

raw_data_folder_name = 'rawdata'

Output

An .html file will be generated and when opening it youshould be able to see something like this:

Screen Shot 2022-03-20 at 15 36 21

When only metadata is loaded, clicking on a link should start a pop-up containing the link id, hop id and carrier. Clicking on a gridline should show its value. When raw-data is also incorporated, clicking on a link should show you the timeseries of the raw-data you have downloaded, e.g.:

Screen Shot 2022-03-20 at 16 07 35

draw_cmls_on_folium_map's People

Contributors

adameshel avatar sagitiminsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.