Refactor to one scheduler, separated csv/grib under one folder

This commit is contained in:
Guntis Smaukstelis
2025-02-14 14:46:31 +02:00
parent 3b8bb7d826
commit 15cfbd1801
27 changed files with 56 additions and 216 deletions
+46
View File
@@ -0,0 +1,46 @@
package parse.grib
case class Grib(
version: Int,
length: Long,
title: String,
grid: GribGrid,
meteo: MeteoParam,
time: GribTime,
conversion: MeteoConversion,
bitsPerDataPoint: Int,
sections: List[GribSection],
)
case class GribGrid(
template: Short,
cols: Int,
rows: Int,
lambert: List[Int],
)
case class MeteoParam(
discipline: Int, // 0=meteo, 1=hydro, 2=land surface, 3=space products
category: Int, // 0=temperature, 1=moisture, 6=cloud, 19=atmospheric
product: Int,
subType: String, // now or period
levelType: Int, // 102 - entire atmosphere, 103 - above ground, above sea level
levelValue: Int, // meters above ground/sea level
)
case class MeteoConversion(
reference: Float, // float
binaryScale: Int, // int
decimalScale: Int, // int
)
case class GribSection(
id: Int,
offset: Long,
size: Int,
)
case class GribTime(
referenceTime: String,
forecastTime: String,
)