{"id":22814578,"url":"https://github.com/kit-data-manager/nexus2json_mapper","last_synced_at":"2025-03-30T22:17:04.576Z","repository":{"id":264600823,"uuid":"890938637","full_name":"kit-data-manager/Nexus2Json_Mapper","owner":"kit-data-manager","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-05T16:31:54.000Z","size":92,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T16:41:26.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kit-data-manager.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-19T12:56:00.000Z","updated_at":"2025-02-05T16:31:58.000Z","dependencies_parsed_at":"2025-02-05T16:33:03.300Z","dependency_job_id":"458ba131-62db-440d-a80c-2516adeeb594","html_url":"https://github.com/kit-data-manager/Nexus2Json_Mapper","commit_stats":null,"previous_names":["gabinoumbe/nexus_mapper","kit-data-manager/nexus2json_mapper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2FNexus2Json_Mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2FNexus2Json_Mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2FNexus2Json_Mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2FNexus2Json_Mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kit-data-manager","download_url":"https://codeload.github.com/kit-data-manager/Nexus2Json_Mapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385415,"owners_count":20768672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-12T13:09:20.858Z","updated_at":"2025-03-30T22:17:04.548Z","avatar_url":"https://github.com/kit-data-manager.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**APE-HE NeXus File to JSON Document Converter**\n\n**Description:**\n\nThis script is designed to automate the tasks of **extracting** metadata from NeXus (`.nxs`) files generated by the Advanced Photoelectric Effect - High Energy (APE-HE) experiment, and the **mapping** of extracted metadata to a predifined JSON schema to generate a structured JSON document. The NeXus file is parsed using the Python library `H5py`, which allows to efficiently navigate and manipulate HDF5-based files like NeXus.\n\nThe current script processes individual NeXus files and zipped NeXus files from APE-HE experiments, transforming the extracted metadata into a structured `JSON` format or zipped `JSON` files suitable for storage.\n\n**Inputs:**\n\n- Path to the Schema file (`.json`):\nA JSON schema that defines the desired structure of the output document.\n- Path to the NeXus file (`.nxs`) or zipped NeXus files (`.zip`):\nA NeXus file containing experimental metadata and data.\n- Name of the output file (`.json`) for a single NeXus file input or (`.zip`) for zipped NeXus files input:\nThe desired name of the output file where the metadata document will be saved.\n\n**Output:**\n\nA structured JSON file containing the extracted metadata aligned with the schema.\n\n**How to execute the script:**\n\n- For single NeXus file:\n  `python NexusMapping_cmdline.py \u003cpath_to_schema.json\u003e \u003cpath_to_NeXus_file.nxs\u003e \u003coutput_document.json\u003e`\n- For zipped NeXus files:\n  `python NexusMapping_cmdline.py \u003cpath_to_schema.json\u003e \u003cpath_to_zipped_NeXus_files.zip\u003e \u003coutput_document.zip\u003e`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit-data-manager%2Fnexus2json_mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkit-data-manager%2Fnexus2json_mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit-data-manager%2Fnexus2json_mapper/lists"}