28 Commits
Author SHA1 Message Date
bartels-rausch 2ec52b7ee7 Add openBIS sync pipeline; fix nappFileList/nappGenerateSpectra/nappPlot bugs; add importData.m ground script
beamtime/nappFileList.m
- Fix h5 LensMode: translate numeric codes to descriptive text (e.g. 1 ->
  T_HiPPHAXPES) to match what .ibw files already store, applied across all
  three h5read fallback branches, not just the oldest-format one

beamtime/nappGenerateSpectra.m
- Bug fixes

beamtime/nappPlot.m
- Bug fixes

import/importData.m (new)
- Ground script for one beamtime: import (nappFileList,
  nappGenerateSpectra), sample/spot and photon-energy assignment per row
  range, campaign metadata (CustomProperties) and column
  descriptions/units set inline, tidy-up, and export to .csv/.mat/.h5
  (via nappExportH5). Leaves FileList in the workspace for PublishReport.m
  and callOpenbisSync.m to run against afterward.

import/nappExportH5.m (new)
- Export FileList + campaign metadata + raw source files to a
  self-contained HDF5 archive
- Low-level HDF5 API (H5F/H5G/H5D/H5A/H5T/H5S/H5P) to fix
  H5FD_truncate/"too many open files" errors from the top-level
  h5create/h5write functions each reopening the file internally
- Explicit rowIndex attribute per row group, since HDF5 group listing
  order isn't guaranteed to match table row order

openBIS/ (new)
- nappSyncToOpenbis.py, callOpenbisSync.m, testpybis.m, README.md
- openBIS sync pipeline: create-or-update per row matched by $name,
  correct lowercase property codes, timestamp formatting, parent linking,
  raw file upload, plot/photo/video thumbnail embedding, config/engine
  split for maintainability -- see README.md for full details
2026-08-31 14:31:39 +02:00
bartels-rausch 4d6500ba85 some housekeeping to tidy up 2026-08-21 10:28:44 +02:00
bartels-rausch 3ad96b3890 ISS 2.0 ready 2026-07-03 21:54:47 +02:00
bartels-rausch 2a22d2dbea bug fixes 2026-05-04 19:03:39 +02:00
bartels-rausch 66a11d47f4 first Jeti plotting function 2026-01-23 09:38:15 +01:00
bartels-rausch 7d37326785 import and plot function for Jeti spectrometer data and for the pressure logging at ISS. 2025-12-17 23:59:20 +01:00
bartels-rausch 1b89885447 Added documentation to readme file. Re-arranged folder content slightly 2025-12-05 10:28:16 +01:00
bartels-rausch 5a65fa13c4 initial commit 2025-11-21 20:03:47 +01:00
bartels-rausch efff7c29f5 Updated to new PShell file structure and added abiltiy to read several spectra in each h5 file 2025-11-21 19:51:44 +01:00
bartels-rausch e48baa9d41 Specs data are now divided by number of scans (bug fix) 2025-03-04 16:18:51 +01:00
bartels-rausch 2e5f3eaf1c Started to include Speces lab XPS data. nappFileList, nappPlot, and peakFit should work 2025-03-04 15:24:55 +01:00
bartels-rausch fa1323b96d Added peak area ratio as fitting constrain. Additional small bug fixes (not sure what I did) 2025-02-27 08:59:53 +01:00
bartels-rausch 7633f3a741 First version import-export to h5 file 2024-05-23 07:16:38 +02:00
bartels-rausch 20577d00be Don't remember what I changed 2024-05-23 07:07:44 +02:00
bartels-rausch 43889de25b Import is now backward compatible with files dating 2018 2024-04-23 12:50:06 +02:00
bartels-rausch 62181940c5 Small debugging 2023-10-31 11:12:17 +01:00
florez_j 895585a206 Updated to admit changes performed on save_table_as_hdf5.m 2023-10-06 15:40:36 +02:00
florez_j bb09c5fe28 Added two features. 1) to facilitate python access, we now preprocess
input_table so that string variables are changed as cellstr and
multicolumn variables (e.g., scientaEkinRange_eV) are splitted into
independent variables. 2) we now support when there is no dataset columns (arrays) by creating a dummy dataset called DS_EMPTY. This is required to create a new h5 file for the first time using h5create.
2023-10-06 15:25:21 +02:00
florez_j ac7f34a30a Modified output_table to be created from cell array using cell2table() instead of array2table(). This extracts the contents of each cell, facilitating later column based filtering ops. 2023-08-18 14:24:47 +02:00
florez_j 596a35f7f1 Modified read_hdf5_as_table.m to read String entries as chars. 2023-08-18 11:47:20 +02:00
florez_j c23464c795 Modified code to write dataset and attributes' names with the indices of the original table's columns. The indices can then inferred by examining the names. 2023-08-15 13:25:15 +02:00
florez_j 384e5e62d5 Made some modifications to preserve original ordering of the table's columns/vars. 2023-08-15 13:18:40 +02:00
florez_j 5c3679da42 Removed h52table.m and table2h5. These have been replaced by read_hdf5_as_table.m and save_table_as_hdf5.m. 2023-08-15 08:48:07 +02:00
florez_j 74b117f8c6 Renamed h52table.m and table2h5.m as read_hdf5_as_table.m and save_table_as_hdf5.m. These reflect the scripts' functionality. 2023-08-15 08:46:17 +02:00
florez_j 4022e4920d Implemented functions h52table.m and table2h5.m. These should encode a Matlab table in a certain hdf5 format and reconstruct/unpack the resulting hdf5 file into the initial table. 2023-08-14 14:50:49 +02:00
florez_j f5385a98c0 Revert "Deleted unnecessary files."
This reverts commit a27e9e459a.
2023-08-10 09:19:49 +02:00
florez_j a27e9e459a Deleted unnecessary files. 2023-08-09 16:32:21 +02:00
florez_j d64e4d5916 Restructured folder structure and deleted irrelevant scripts. 2023-08-09 16:22:46 +02:00