Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

space-physics/ionosphereAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Build Status Coverage Status Build status

Ionosphere AI

Machine learning and computer vision techniques for auroral video, passive FM radar, incoherent scatter radar and other geoscience data using collective behavior detection. The programs are OS/platform-agnostic.

Examples

Incoherent Scatter Radar

Using raw ISR data:

python Detect.py ~/data/2013-05-01/isr -e .dt3.h5

Process all .AVI in a directory

python Detect.py ~/mydir -e avi

This will find all the .avi files in directory ~/mydir and play them back with analysis.

Process a specific file

python Detect.py ~/mydir/myvideo.avi

DMC sCMOS video

python Detect.py ~/data/DMC2015-11/2015-11-15 -e .fits -p dmc.ini

Hard disk outputs

  • PNG figure plot of the number of auroral detections per video frame sampled
  • HDF5 file of the data in the PNG plot (so that you can use another program to extract the GB of interesting data from TB file

This program reads any video format available to OpenCV cv2.VideoCapture() and imageio.imread() -- essentially anything FFmpeg can read, such as most AVI, MPG, MOV, OGV, etc. depending on how your particular OpenCV was compiled. The program also reads our multi-terabyte .DMCdata video files in a proprietary binary format from the HiST project.

It is usually straightforward to adapt the program to ingest NetCDF, HDF5 and many other formats.

Install

python -m pip install -e .

If you don't have OpenCV:

python -m pip install -e .[opencv]