Template for minimal metadata for a raw data file¶
Here is an example of minimal metadata for a raw data file. This has been revised to show what an input metacat-native file should look like.
Some fields are auto-genenerated and documented under additional informatiob below
See the Glossary of Metadata Keys for the definition of the keys.
Note that all keys must now be lower case.
Times need to be Float seconds.milliseconds past the epoch
You can add additional information to the metadata object. Any additional core.* attributes that are added require code changes to the Declaration Daemon. Any additional attributes added to other existing categories require notification so we can back-declare them to SAM. Any new categories require approval from admin. ProtoDUNE NP04 can’t generate core.application.* they are excused from doing that. Minerva is allowed to add core.group, core.lum_block_ranges, misc.file_partition, online.triggerconfig, online.triggertype, core.dqc_quality, dune.mx2x2_global_run_numbers
DUNE version¶
The commented out fields are added when the file is stored.
metacat file show -m vd-protodune:np02vd_raw_run045023_0363_df-s02-d1_dw_0_20260804T103024.hdf5 -j
{
"checksums": {
"adler32": "2766ca40"
},
"created_timestamp": 1785839610.539181,
"creator": "dunepro",
"fid": "jw0KQDrFQ1OakQH7",
"metadata": {
"core.data_stream": "physics",
"core.data_tier": "raw",
"core.end_time": 1785839447.0,
"core.event_count": 17,
"core.events": [
37117,
37123,
37129,
37135,
37141,
37147,
37153,
37159,
37165,
37171,
37177,
37183,
37189,
37195,
37201,
37207,
37213
],
"core.file_content_status": "good",
"core.file_format": "hdf5",
"core.file_type": "detector",
"core.first_event_number": 37117,
"core.last_event_number": 37213,
"core.run_type": "vd-protodune",
"core.runs": [
45023
],
"core.runs_subruns": [
4502300001
],
"core.start_time": 1785839424.0,
"dune.daq_test": false,
"retention.class": "physics",
"retention.status": "active"
},
"name": "np02vd_raw_run045023_0363_df-s02-d1_dw_0_20260804T103024.hdf5",
"namespace": "vd-protodune",
"retired": false,
"retired_by": null,
"retired_timestamp": null,
"size": 4067841380,
"updated_by": null,
"updated_timestamp": 1785839610.539153
}
Minerva version¶
{
"checksums": {
"adler32": "e854e667"
},
"created_timestamp": 1691170423.961402,
"metadata": {
"core.data_stream": "pdstl",
"core.data_tier": "binary-raw",
"core.end_time": 1690992518,
"core.event_count": 100,
"core.file_format": "binary",
"core.file_type": "importedDetector",
"core.first_event_number": 4592941,
"core.group": "minerva",
"core.last_event_number": 4593040,
"core.lum_block_ranges": [
[
4592941,
4593040
]
],
"core.run_type": "neardet-2x2-minerva",
"core.runs": [
40074
],
"core.runs_subruns": [
4007400001
],
"core.start_time": 1690992515,
"dune.daq_test": "True",
"misc.file_partition": 1,
"online.triggerconfig": "NOFILE",
"online.triggertype": "oneshot",
"retention.status": "active",
"retention.class": "commissioning"
},
"name": "TS1_00040074_0001_pdstl_v09_2308021608_RawData.dat",
"namespace": "neardet-2x2-minerva",
"size": 10543808
}
Additional information¶
This information is added later to track changes Values for all of these are added automatically at time of creation and they can not be added at file creation time or modified via a json file.
{"created_timestamp": 1539193107.681780, "creator": "dunepro", "retired": false, "retired_by": null, "retired_timestamp": null, "updated_by": null, "updated_timestamp": null }