Copy from wangdx25/africa_cod_rainfall
Browse files- .gitattributes +1 -0
- README.md +108 -0
- africa_cod_rainfall.tsfile +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
africa_cod_rainfall.tsfile filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- tabular-classification
|
| 5 |
+
- tabular-regression
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- tsfile
|
| 10 |
+
- timeseries
|
| 11 |
+
- time-series
|
| 12 |
+
- africa
|
| 13 |
+
- electric-sheep-africa
|
| 14 |
+
- open-data
|
| 15 |
+
- metadata-backed
|
| 16 |
+
- climate-environment
|
| 17 |
+
- parquet
|
| 18 |
+
- tabular
|
| 19 |
+
- text
|
| 20 |
+
- humanitarian
|
| 21 |
+
- hdx
|
| 22 |
+
- climate-weather
|
| 23 |
+
- environment
|
| 24 |
+
- cod
|
| 25 |
+
- climate
|
| 26 |
+
- weather
|
| 27 |
+
- rainfall
|
| 28 |
+
- format:tsfile
|
| 29 |
+
pretty_name: 'Democratic Republic of the Congo: Rainfall Indicators at Subnational Level | Africa (original) (TsFile)'
|
| 30 |
+
size_categories:
|
| 31 |
+
- 100K<n<1M
|
| 32 |
+
configs:
|
| 33 |
+
- config_name: default
|
| 34 |
+
data_files:
|
| 35 |
+
- split: train
|
| 36 |
+
path: africa_cod_rainfall.tsfile
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
# Democratic Republic of the Congo: Rainfall Indicators at Subnational Level | Africa (original) (TsFile)
|
| 40 |
+
|
| 41 |
+
Apache TsFile version of [`electricsheepafrica/africa-cod-rainfall-subnational`](https://huggingface.co/datasets/electricsheepafrica/africa-cod-rainfall-subnational).
|
| 42 |
+
|
| 43 |
+
## Overview
|
| 44 |
+
|
| 45 |
+
This dataset is part of the Electric Sheep Africa catalog on Hugging Face. It is indexed for African data discovery with standardized metadata, loading guidance, provenance notes, and analyst-oriented context.
|
| 46 |
+
|
| 47 |
+
- **Tables:** 1 TsFile table(s), 402,610 rows in total.
|
| 48 |
+
- `africa_cod_rainfall`: 402,610 rows, 1981-01-01 00:00:00 鈫?2026-04-01 00:00:00.246000 (UTC)
|
| 49 |
+
|
| 50 |
+
## Schema (TsFile structure)
|
| 51 |
+
|
| 52 |
+
### `africa_cod_rainfall.tsfile`
|
| 53 |
+
|
| 54 |
+
- **Time** (INT64, milliseconds) 鈥?the source `date` column.
|
| 55 |
+
- **TAG**: none 鈥?the table is stored as a single device.
|
| 56 |
+
- **FIELD** (16): `adm_level` (int64), `adm_id` (int64), `pcode` (string), `n_pixels` (double), `rfh` (double), `rfh_avg` (double), `r1h` (double), `r1h_avg` (double), `r3h` (double), `r3h_avg` (double), `rfq` (double), `r1q` (double), `r3q` (double), `version` (string), `esa_source` (string), `esa_processed` (string)
|
| 57 |
+
|
| 58 |
+
## Conversion notes
|
| 59 |
+
|
| 60 |
+
- One TsFile per source table (1 tables). Tables whose source carries several entities per file are stored as one device per entity.
|
| 61 |
+
- Time = the table's own clock column as INT64 milliseconds. The clock columns used here are `date`.
|
| 62 |
+
- No column is dropped. Rows that share a timestamp inside one device are ordered by a 1 ms step in stable source order, so calendar columns keep their exact day.
|
| 63 |
+
|
| 64 |
+
## Usage
|
| 65 |
+
|
| 66 |
+
> **Read this dataset with the Java SDK.** It is written with the `zstd` compressor. The Apache TsFile Java SDK reads every compressor, but the Python SDK (`pip install tsfile`) implements only `UNCOMPRESSED`, `SNAPPY`, `GZIP` and `LZ4`; opening this file with it yields no rows.
|
| 67 |
+
|
| 68 |
+
Read a converted file with the Apache TsFile Java SDK (`org.apache.tsfile:tsfile`):
|
| 69 |
+
|
| 70 |
+
```java
|
| 71 |
+
import org.apache.tsfile.file.metadata.IDeviceID;
|
| 72 |
+
import org.apache.tsfile.read.TsFileReader;
|
| 73 |
+
import org.apache.tsfile.read.TsFileSequenceReader;
|
| 74 |
+
import org.apache.tsfile.read.common.Path;
|
| 75 |
+
import org.apache.tsfile.read.expression.QueryExpression;
|
| 76 |
+
import org.apache.tsfile.read.query.dataset.QueryDataSet;
|
| 77 |
+
import org.apache.tsfile.write.schema.MeasurementSchema;
|
| 78 |
+
|
| 79 |
+
import java.util.ArrayList;
|
| 80 |
+
import java.util.List;
|
| 81 |
+
|
| 82 |
+
String path = "africa_cod_rainfall.tsfile";
|
| 83 |
+
try (TsFileSequenceReader sequenceReader = new TsFileSequenceReader(path);
|
| 84 |
+
TsFileReader reader = new TsFileReader(sequenceReader)) {
|
| 85 |
+
// Devices are enumerated as IDeviceID objects. Tables with TAG columns
|
| 86 |
+
// have multi-segment device ids that cannot be rebuilt from their string
|
| 87 |
+
// form, so always use getAllDevices() rather than getAllDeviceIds().
|
| 88 |
+
for (IDeviceID device : sequenceReader.getAllDevices()) {
|
| 89 |
+
List<Path> paths = new ArrayList<>();
|
| 90 |
+
for (MeasurementSchema schema : reader.getMeasurement(device)) {
|
| 91 |
+
String name = schema.getMeasurementName();
|
| 92 |
+
if (name != null && !name.isEmpty() && !name.equalsIgnoreCase("Time")) {
|
| 93 |
+
paths.add(new Path(device, name, true));
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
QueryDataSet dataSet = reader.query(QueryExpression.create(paths, null));
|
| 97 |
+
while (dataSet.hasNext()) {
|
| 98 |
+
System.out.println(dataSet.next());
|
| 99 |
+
}
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
## Source & license
|
| 105 |
+
|
| 106 |
+
- Original dataset: [`electricsheepafrica/africa-cod-rainfall-subnational`](https://huggingface.co/datasets/electricsheepafrica/africa-cod-rainfall-subnational)
|
| 107 |
+
- Source card title: Democratic Republic of the Congo: Rainfall Indicators at Subnational Level | Africa (original)
|
| 108 |
+
- License: cc-by-4.0 (as declared by the original dataset).
|
africa_cod_rainfall.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8ed7ede707e69a9b9db6e393d4556c71b1cfe169a0483749cff22b277a54d1e
|
| 3 |
+
size 28680652
|