LLSDA Documentation

Lightning Location System Data Analyzer v1.4.1

Overview

LLSDA (Lightning Location System Data Analyzer) is an open-source, cross-platform .NET class library for analyzing lightning location system data. It provides core functionality for spatiotemporal statistics and visualization of lightning distribution.

Key Features

Cross-Platform

.NET Framework 4.8 + .NET Standard 2.0 β€” Windows/Linux/macOS.

File Parsing

Multiple lightning data formats: ADTD (China LLS), GLD360, WWLLN.

Time Distribution

Year/month/hour distribution analysis and charting.

Spatial Statistics

Lightning flash density calculation with square grid / concentric circles.

Point Analysis

Lat/lng-based point query analysis and custom region analysis.

Rose Diagram

Lightning rose diagram and intensity probability charts.

GIS Support

Shapefile overlay with MeteoInfo GIS integration.

Application Screenshot

Main Application Window

Installation

NuGet Package Manager:

Install-Package LightningLocationSystemDataAnalyzer-LLDSA

.NET CLI:

dotnet add package LightningLocationSystemDataAnalyzer-LLDSA

PackageReference (add to .csproj):

<PackageReference Include="LightningLocationSystemDataAnalyzer-LLDSA" Version="1.4.1" />
NuGet Gallery View on GitHub

Quick Start

The core class for reading Chinese LLS data files is ADTDFileProcessor, which converts text-format lightning records into strongly-typed objects.

using LLDSA;
using LLDSA.Entities.FileOperator.LLSFileProcessor.ADTD;
using System.Collections.Generic;
using System.IO;
using System.Text;

// 1. Point to a lightning data file (ADTD format)
string dataFilePath = @"data\2008_07_09.txt";

var processor = new ADTDFileProcessor();
processor.SourceLlsFilePathName = dataFilePath;
processor.Province = "";
processor.Encode = Encoding.UTF8;

// 2. Parse all records into strongly-typed objects
List<BaseStrikeChina> strikes = processor.ReturnStrikesChinaByProcess().ToList();
Console.WriteLine($"Parsed {strikes.Count} lightning strike records.");

// 3. Each record contains:
foreach (var strike in strikes.Take(3))
{{
    Console.WriteLine($"Time: {{strike.DateAndTime}}, " +
        $"Lat: {{strike.Latitude}}, Lon: {{strike.Longitude}}, " +
        $"Intensity: {{strike.Intensity}} A");
}}

Supported File Formats

FormatProcessor ClassNamespace
ADTD (China LLS)ADTDFileProcessorLLDSA.Entities.FileOperator.LLSFileProcessor.ADTD
GLD360 (Global)GLD360FileProcessorLLDSA.Entities.FileOperator.LLSFileProcessor.GLD360
WWLLN (Global)WWLLNFileProcessorLLDSA.Entities.FileOperator.LLSFileProcessor.WWLLN

Architecture & Design

Object-Oriented Design

OOP Design

Architecture Diagram

Architecture

Source Code Structure

Source Code

Academic Publications

This project is supported by multiple academic papers. The following abstracts provide a technical overview of the research behind LLSDA.

Paper 1 β€” Ground Lightning Flash Density Calculation and Software Implementation

Abstract 1

πŸ“„ View Full Paper (PDF)

Paper 2 β€” Design and Implementation of Lightning Analysis Software

Abstract 2

πŸ“„ View Full Paper (PDF)

Paper 3 β€” TechRxiv Preprint (DOI)

TechRxiv Abstract

πŸ“„ View on TechRxiv (DOI: 10.36227/techrxiv.23615019.v1)

Citation (BibTeX)

Use the following BibTeX entry to cite this project in your publications:

@misc{fan2023llsda,
  author = {Rong Fan and JingXiao Li and MingYuan Liu},
  title = {{LLSDA}: Design and Implementation of Lightning Location Data Analysis and Visualization},
  year = {2023},
  doi = {10.36227/techrxiv.23615019.v1},
  publisher = {TechRxiv}
}

About the Author