Giter Club home page Giter Club logo

fdr-status-map's Introduction

FDR-Status-Map

Version 1.0

04/08/2016

This is a script to create tables to show FDR status and locations on the map

##Preliminary##

Online unit: The data record from FDRs are checked by the server operator from time to time. Each check covers the dates since a specific time, saying one month ago. Any FDR units, as long as it has sent any data to the database, will be defined as an online unit.

Offline unit: The FDR which is deployed but not qualified as the online unit is an offline unit. The deployed FDR has a status of 1 in the FDRdeploy file.

Returned unit: The FDR had been once deployed but returned afterwards. The returned FDR has a status of 1 in the FDRdeploy file.

To be deployed unit: The FDR either will be sent out or have just been sent out but waiting to be checked before adding to the database.

##Input##

The input files include two .csv files. Neither has the head. One is named "onlineunits+date.csv", which includes the ID, latitude and longitude of the online FDRs. Usually checked by the server operator. Database is checked since a specific date, saying one month ago. Any FDR units, as long as it has sent any data to the database, will be shown in this list. Be aware that the data from some units are too less that no coordinator is included. In that case, the related coordinator will be (0,0). They should be manually corrected according to their address in the deployment file.

The other is named "FDRdeploy.csv", which includes the ID, name, address (city, state, contoury), and deployment status of all FDRs. It is generated from the deployment achive file. The meaning of status:

0: returned unit

1: deployed unit

2: to be deployed unit (to be sent or sent but not added to the database yet)

##Output##

The program collect information from the two files, and generate four .csv files with head.

Onlinemap.csv: include the ID, name, latitude and longitude of all online units.

Offlinemap.csv: include the ID, name, address of all offline units.

Returnedmap.csv: include the ID, name, address of all returned units.

ToDeploymap.csv: include the ID, name, address of all to be deployed units.

All the output files can than be uploaded to Googlemap to generate the FDR status map.

fdr-status-map's People

Contributors

jasonzjc avatar

Watchers

James Cloos avatar  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.