A TypeScript library for radar-based rain measurement and analysis, used in radartorain.com services.
npm install raain-model
# or
yarn add raain-model
import {RainComputationMap, RainNode, RadarNode} from 'raain-model';
// Create a radar node
const radarNode = new RadarNode({
id: 'radar1',
latitude: 48.8566,
longitude: 2.3522,
name: 'Paris Radar',
team: null
});
// Create a rain node
const rainNode = new RainNode({
id: 'rain1',
name: 'Paris Rain',
team: null,
radars: [radarNode]
});
// Process rain data
const computation = new RainComputationMap({
id: 'comp1',
date: new Date(),
isReady: true,
map: [] // Your rain measurement data here
});
Visit documentation and swagger.
This project uses a Memory Bank for comprehensive documentation and context retention. The Memory Bank is located in the
.memory-bank
directory and contains the following files:
memory-bank-rules.md
: Rules to follow and to consider in all contextsprojectbrief.md
: Overview of the project, core requirements, and goalsproductContext.md
: Why the project exists, problems it solves, and how it workssystemPatterns.md
: System architecture, key technical decisions, and design patternstechContext.md
: Technologies used, development setup, and technical constraintsactiveContext.md
: Current work focus, recent changes, and next stepsprogress.md
: What works, what's left to build, and known issues=> !! These files should always be considered as a context and keep up-to-date !!
RainNode
: Core class for rain measurement nodesRadarNode
: Radar station representationRainComputationMap
: Advanced rain data processingCartesianTools
: Utilities for coordinate transformationsSpeedMatrix
: Matrix operations for rain data# Run all tests
npm test
# Run tests with coverage
npm run test:coverage
This project is licensed under the MIT License - see the LICENSE file for details.
See Changelog for version history and changes.