Skip to content

Instantly share code, notes, and snippets.

@KMoon01
KMoon01 / simple_event_query.py
Created June 14, 2017 18:36
Query from an EMS event database
from emspy import Connection
from emspy.query import FltQuery
# fill up your credential
efoqa_usr = ''
efoqa_pwd = ''
http_proxy = ''
https_proxy = ''
print "Connecting to EMS API..."
@KMoon01
KMoon01 / multproc_tsquery.py
Created May 10, 2017 21:04
This is an example of multi-threaded time-series query via EMS API. This is particularly useful for querying large number of flights
import os, time
import threading
from multiprocessing.dummy import Pool as ThreadPool
import numpy as np
from my_pwd import *
from emspy import Connection
from emspy.query import FltQuery, TSeriesQuery