Datasets:
Update dataset card
Browse files12345678910111213141516171819202122232425262728293031---tags:- hirise- mars- numpy---# HiPredict datasetResearch NumPy patches and data records for HiPredict's HiRISE RED4 reconstruction.Code: https://github.com/ardan-S/HiPredictModel: https://huggingface.co/ardan-S/HiPredictThe corpus contains 586,450 arrays in 51 uncompressed tar shards.The arrays retain their original bytes. CSV row order and all non-Path valuesare preserved; paths resolve relative to each downloaded CSV after extraction.The released model uses the recorded global normalization statistics suppliedwith its checkpoint and the public code.## Download and extract```bashhf download ardan-S/HiPredict --repo-type dataset --local-dir HiPredict-datafind HiPredict-data/shards -name '*.tar' -exec tar -xf {} -C HiPredict-data \;```This restores `npy_files/OBSERVATION_ID/...` for training/validation/test and`npy_files_evals/OBSERVATION_ID/...` for the separate evaluation corpus.The two directories remain separate, including when patch filenames coincide.CSV records: `data_record_alls.csv`, `data_record_evals.csv`.Patch sets contain BG12, IR10, RED4, and RED3/RED5 context arrays.`dataset_manifest.json` lists the shard checksums and record provenance.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122---license: cc-by-4.0pretty_name: HiPredict datasetconfigs:- config_name: previewdefault: truedata_files:- split: previewpath: preview/*size_categories:- 100K<n<1Mtags:- hirise- mars- planetary-science- image-reconstruction- numpy---# HiPredict dataset**Paper:** preprint coming soon · **Code:** [ardan-S/HiPredict](https://github.com/ardan-S/HiPredict) · **Model:** [ardan-S/HiPredict](https://huggingface.co/ardan-S/HiPredict)The patches and records used to train and evaluate HiPredict. HiPredictreconstructs the RED4 band of the HiRISE camera on the Mars ReconnaissanceOrbiter. The RED4 detector has partially failed, and many observations have nousable RED4 band as a result.## Contents| Record and arrays | Patch sets | Observations | Arrays | Observation dates || --- | ---: | ---: | ---: | --- || `data_record_alls.csv`, `npy_files/` | 116,790 | 19,465 | 583,950 | 2008-12-21 to 2021-08-08 || `data_record_evals.csv`, `npy_files_evals/` | 500 | 500 | 2,500 | 2007-09-30 to 2023-05-27 |The arrays are stored in 51 uncompressed tar shards (`shards/0000/part-*.tar`,about 216 GB in total). `dataset_manifest.json` lists each shard's SHA-256checksum and the provenance of the two records.Each patch set holds five float32 arrays from one observation:- BG12, IR10 and RED4: 256 × 256 patches of the same ground;- RED3 and RED5: 1024 × 32 × 4 context arrays from the detector edges next to RED4.Values are in the calibrated units of the processed ISIS cubes.## PreviewThe dataset viewer shows `preview/`: false-colour composites of 100 patch sets,spread evenly over the record's dates, with IR10, RED4 and BG12 as red, greenand blue, each contrast-stretched independently. They are for browsing only;the data are the float32 arrays in the shards.## RecordsEach record has one row per array. The columns are:- `Observation`, `Set`, `Patch` and `CCD`: which observation, patch set and detector the array belongs to;- `Path`: the array's location, relative to the CSV file;- `Height`, `Width` and `Channels`: the array's shape;- `Patch_x` and `Patch_y`: where the patch sits in the processed cube;- `Date`, `Binning` and `TDI`: observation settings;- observation metadata from the HiRISE EDR index, including instrument temperatures, viewing and illumination geometry, orbit number, and solar longitude and distance;- `Pix_min`, `Pix_max`, `Obs_center` and `Obs_scale`: pixel range and observation-level centre and scale.## SplitsThere are no split files. The code splits `data_record_alls.csv` by date: patchsets are sorted by observation date, and the earliest 70% are used for training,the next 10% for validation and the last 20% for testing. On this record thatgives 81,753, 11,679 and 23,358 sets, with boundaries on 2018-02-10 and2018-11-19. The released model was trained when the record held 51 fewer patchsets, so its training split had 81,717 sets.`data_record_evals.csv` is the evaluation set for the per-category metricsdefined in the code's `hipredict/configs/evals.yaml`. 314 of its 500observations also appear in `data_record_alls.csv` with identical patches, 240of them in the training split.## ProcessingObservations were selected from the HiRISE archive in the NASA Planetary DataSystem. Each one has all five detectors used here (RED3, RED4, RED5, IR10 andBG12), binning 1 or 2 and TDI 64 or 128, with matching binning across the REDdetectors and across the colour detectors. They were processed with HiPROC0.11.0 and ISIS 9.0.0 using the pipeline in the code repository. Patch positionswere sampled to spread the patch sets over location, orbit, solar longitude andbinning/TDI.## Download and useTo use the dataset with the HiPredict code, download it into the repository's`files/` folder and unpack the shards there:```bashuv run hf download ardan-S/HiPredict --repo-type dataset --local-dir files \--exclude README.md --exclude .gitattributesfor shard in files/shards/*/*.tar; do tar -xf "$shard" -C files; done```Unpacking needs as much space again as the download. See the code's[workflows guide](https://github.com/ardan-S/HiPredict/blob/main/docs/workflows.md#the-hipredict-dataset)for storing the dataset on another disk and for training and evaluating with it.The records can also be used directly:```pythonimport numpy as npimport pandas as pdrecord = pd.read_csv("files/data_record_alls.csv")row = record.iloc[0]array = np.load(f"files/{row.Path}")```## Licence and creditThe dataset is released under the Creative Commons Attribution 4.0 licence.HiRISE data: NASA/JPL/University of Arizona.## CitationA citation will be added here when the preprint is released.
README.md+108-17