Skip to content

PollyNET/traj_file_scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trajectory files Scanner for Picasso (only for internal usage)

License: CC-BY-NC-SA

The repo helps to scan the trajectory figures to a local SQLite3 database. In addtion, it can help create the done_filelist.txt for trajectory figures, which is essential for appending the trajectory figures into the PollyNET database.

Download

git clone https://github.com/ZPYin/traj_file_scanner.git

or click here for direct download.

Usage

setup a new virtual environment

conda create -n traj_scanner
activate traj_scanner   # windows
source activate traj_scanner   # linux

install the dependencies

cd traj_file_scanner
conda install python=3.6
pip install -r requirements.txt

configurations

👉 Remember you need to rename all the configuration files with removing the suffix of .sample!!!

setup done_filelist You need to configure the TRAJECTORY_ROOT POLLYAPP_CONFIG_FILE and DONE_FILELIST, according to your own demands.

scan into SQLite3 DB You need to configure the TRAJECTORY_ROOT and db_path.

Run the code

cd src
python trajectory_scanner.py

Note

The command line interface is not setup for the script. Therefore, you may need to comment and uncommet the code in the main function to control the functionality.

SQLite3 Database

Database overview

structure

database_overview

table

Tabel

Database Columns

ID

  • auto-increment from 1
  • INT

imgpath

  • fullpath of the figure
  • TEXT

category

  • product type
value type
1 geonames-abs-regions-ens-below2.0
2 geonames-abs-regions-ens-below5.0
3 geonames-abs-regions-ens-below8.0
4 geonames-abs-regions-ens-belowmd
5 land-use-occ-ens-below2.0
6 land-use-occ-ens-below5.0
7 land-use-occ-ens-below8.0
8 land-use-occ-ens-belowmd
9 trajectories_map
10 trajectories_prof

pollynet_station

  • PollyNET station name
  • TEXT

gdas1_station

  • gdas1 station name
  • TEXT

Note: this name is unique and it can be projected to multiple PollyNET station name. The lookup table can be found in name_lookup_table.

ending_height

  • ending height of the trajectories.
  • REAL

start_time

  • start time of the figure
  • TEXT

stop_time

  • stop time of the figure
  • TEXT

upload_time

  • upload time of the figure
  • TEXT

insert_time

  • insert time of the entry
  • TEXT

Contact

About

scan the backward trajectory files to the database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages