Commit Graph

  • 2ec52b7ee7 Add openBIS sync pipeline; fix nappFileList/nappGenerateSpectra/nappPlot bugs; add importData.m ground script main bartels-rausch 2026-08-31 14:31:39 +02:00
  • 0629ece97c Moved docu to new training repro bartels-rausch 2026-08-21 17:10:01 +02:00
  • 4d6500ba85 some housekeeping to tidy up bartels-rausch 2026-08-21 10:28:44 +02:00
  • 5b9c7608d7 Data import now works with 2016 data, too. Data tracking added to md file. bartels-rausch 2026-08-21 10:18:39 +02:00
  • 9c7a6f4705 bug fixes bartels-rausch 2026-07-13 15:30:02 +02:00
  • 378d176739 Added import and plot for flow data that is now logged for the MFC bartels-rausch 2026-07-10 10:08:07 +02:00
  • 3ad96b3890 ISS 2.0 ready bartels-rausch 2026-07-03 21:54:47 +02:00
  • 9d6d271461 Updated comment to nappBackground to make more clear that pos 2 is always cutoff in linear fit bartels-rausch 2026-06-01 13:13:43 +02:00
  • caec12ce3d NEW: Option to give upper and lower limit for linear background and Shirley offset bartels-rausch 2026-06-01 12:03:28 +02:00
  • 2f942c554c Several domains within a spectrum can now be excluded in background fitting bartels-rausch 2026-05-11 11:45:46 +02:00
  • 55f972f6ae bug fixes bartels-rausch 2026-05-11 08:55:02 +02:00
  • d12594598e Changed selection rule. Now works not only with numbers, but with any text. Character that the name starts with are used to find matches now. bartels-rausch 2026-05-09 11:37:36 +02:00
  • 43ac9c00bb small bug fixes. CopyShift now works with any filename, not just numbers as before bartels-rausch 2026-05-09 07:31:44 +02:00
  • d72e8b4ddc Added a model where Shirley and PV eta are shared for peaks with shared width and relative position. This is usefull for adv. Carbon. bartels-rausch 2026-05-08 20:43:17 +02:00
  • 2a22d2dbea bug fixes bartels-rausch 2026-05-04 19:03:39 +02:00
  • 5767a2e26d Added to use max intensity from reference spectra as default. using the peak fit area is now an option. bartels-rausch 2026-04-10 08:58:19 +02:00
  • e5226802a3 Add project dependency tracking system with yEd and PNG export bartels-rausch 2026-04-02 10:56:28 +02:00
  • 873377ce80 Added some helpers and moved the older verions to a specific folder bartels-rausch 2026-03-25 12:16:28 +01:00
  • f15eadac6d Remove obsolete FileList.mat and nappScale.m. nappScale is replaced by nappNorm.m which does however not yet include the NEXAFS processing. WIP bartels-rausch 2026-03-25 12:14:27 +01:00
  • 091cf00e77 Refactor energy calibration pipeline, introduce modern arguments blocks, and add universal logging bartels-rausch 2026-03-25 12:07:49 +01:00
  • b4cb748cfa updated information on how to copy without loosing file dates bartels-rausch 2026-03-22 22:15:59 +01:00
  • 2377e3b1f2 Refactor Shirley background to fix kinetic energy scaling and solver convergence bartels-rausch 2026-03-22 22:07:55 +01:00
  • 92b5fad252 added instructions on how to clone a git repository leeman_n 2026-03-13 10:45:34 +01:00
  • fffa2fb334 Added info how to copy files without changing the timestamps bartels-rausch 2026-03-12 14:12:57 +01:00
  • a26847b332 Good to know I'm smarter than google gemini. That code did not run. fixed it. Also fixed a time issue. Start aquisition is now taken from the logged time in the data file or if that is not present the OS creation date. the end aquisition time is the last modification time of the os for that file. bartels-rausch 2026-03-12 13:35:27 +01:00
  • 938eea27e8 feat: add unified functionSignatures.json for MATLAB auto-complete bartels-rausch 2026-03-12 10:50:30 +01:00
  • d7bc516442 Bug fix. The excitation energy for our offline XPS is wrong in the xy files. Set it to 1253.6 eV during import bartels-rausch 2026-03-12 10:26:31 +01:00
  • 00d34110db MAJOR UPDATE: Add support for Specs .xy files from offline XPS (Soleil/Luca) bartels-rausch 2026-03-12 10:08:47 +01:00
  • a4ba161146 When using linear fit, the plot somehow reversed the excluded points. This is fixed now, those data labeled excluded are indeed excluded from the fit. Second, the input is now the same for kinetic and binding energy. 2 salars define the range to be excluded (the central peak), adding additional energies add excluded regions at the edge of the spectra. bartels-rausch 2026-03-05 13:04:49 +01:00
  • 0e07d2972b Finally, several spectra can be fitted with same constraints again...function now loops through any number of spectra bartels-rausch 2026-03-05 11:11:37 +01:00
  • 3a7ae3dcbd Added possibility to exlclude peak, plus a range at end of the spectrum. Updated the documentation. Bug fixes. bartels-rausch 2026-03-05 07:32:53 +01:00
  • d521db8cb8 Now uses helper function to merge data tables with different columns bartels-rausch 2026-03-04 17:04:02 +01:00
  • 5402439ac9 Adds data origin (that is which spectra are combined) and mean of sample settings bartels-rausch 2026-03-04 17:02:45 +01:00
  • ad7ac0e6ee Bug fix: Now handles also ibw files, not only h5. bartels-rausch 2026-03-03 11:32:47 +01:00
  • 5fa8c7fa68 But fixes bartels-rausch 2026-03-02 17:40:06 +01:00
  • 06927702c7 updated the documentation bartels-rausch 2026-03-02 14:28:26 +01:00
  • 07e414c3ef Now, the function can also deal with columns that have different numbers of entires (such as from peak fitting results) bartels-rausch 2026-03-02 14:27:28 +01:00
  • 23e49b4330 Addes a model for gas and condensed 2p spectra (2 doublets). Small improvements and bug fixes bartels-rausch 2026-03-02 14:26:05 +01:00
  • 67e75cde2e Added video to file list bartels-rausch 2026-03-02 14:24:50 +01:00
  • 6b3c96ff27 nappFileList now supports image formats of new camera. createBEamtimeFolder is a little helper to create empty folders in the beamtime folder. Folder PShell added for h5 data that are not NEXAFS but XPS aquired with PShell. bartels-rausch 2026-02-26 13:08:16 +01:00
  • 66a11d47f4 first Jeti plotting function bartels-rausch 2026-01-23 09:38:15 +01:00
  • 484c84e5f0 Major refactor - generic model architecture with full Shirley background support bartels-rausch 2026-01-23 08:02:53 +01:00
  • 7d37326785 import and plot function for Jeti spectrometer data and for the pressure logging at ISS. bartels-rausch 2025-12-17 23:59:20 +01:00
  • bf1eb85f88 added export figure description bartels-rausch 2025-12-07 16:09:14 +01:00
  • 484648b648 Added a function to export figure data into ascii txt files (and to plot ascii text files to check if export worked) bartels-rausch 2025-12-07 16:05:59 +01:00
  • 5dcb0a9119 Added list of helper functions in utils subfolder bartels-rausch 2025-12-07 12:59:34 +01:00
  • 74dbdda5e8 Added a list of all functions and added information on a function to join data tables with differences in column number and type. bartels-rausch 2025-12-07 12:41:19 +01:00
  • 38a62bf560 Updated the HowDoI: Added how to merge tables with different columns into one. bartels-rausch 2025-12-07 11:41:12 +01:00
  • bbfab45787 Added Example Matlab script with most common during beamtime processing bartels-rausch 2025-12-05 15:35:30 +01:00
  • 53dd8c6080 Added links to matlab documentation bartels-rausch 2025-12-05 10:42:44 +01:00
  • 1b89885447 Added documentation to readme file. Re-arranged folder content slightly bartels-rausch 2025-12-05 10:28:16 +01:00
  • 7677ad8668 Residuals are now plotted. And added the option to change weight for a section of data in fitting routine bartels-rausch 2025-12-01 12:04:35 +01:00
  • aac4e834c3 added Auger-Meitner plots and interactive NEXAFS bartels-rausch 2025-11-24 19:08:38 +01:00
  • 5a65fa13c4 initial commit bartels-rausch 2025-11-21 20:03:47 +01:00
  • efff7c29f5 Updated to new PShell file structure and added abiltiy to read several spectra in each h5 file bartels-rausch 2025-11-21 19:51:44 +01:00
  • 723714c85d Added some helper tools bartels-rausch 2025-11-21 11:02:23 +01:00
  • 74292eebd3 Small changes bartels-rausch 2025-07-07 08:53:30 +02:00
  • 4f21681cf6 Color scheme now a shared function. Small changes bartels-rausch 2025-07-06 12:40:23 +02:00
  • e48baa9d41 Specs data are now divided by number of scans (bug fix) bartels-rausch 2025-03-04 16:18:51 +01:00
  • 2e5f3eaf1c Started to include Speces lab XPS data. nappFileList, nappPlot, and peakFit should work bartels-rausch 2025-03-04 15:24:55 +01:00
  • fa1323b96d Added peak area ratio as fitting constrain. Additional small bug fixes (not sure what I did) bartels-rausch 2025-02-27 08:59:53 +01:00
  • 7633f3a741 First version import-export to h5 file bartels-rausch 2024-05-23 07:16:38 +02:00
  • 683e0198e6 Added feature to merge 2 tables, not only to add a row to a table bartels-rausch 2024-05-23 07:08:40 +02:00
  • 20577d00be Don't remember what I changed bartels-rausch 2024-05-23 07:07:44 +02:00
  • 0c5c4f6ed9 Added linear background fit. bartels-rausch 2024-05-23 07:07:13 +02:00
  • 43889de25b Import is now backward compatible with files dating 2018 bartels-rausch 2024-04-23 12:50:06 +02:00
  • 3f0d9be72a Add a function to merge two tables that might have different columns. Both sets of columns are preserved bartels-rausch 2024-02-29 16:15:00 +01:00
  • f61e1113b0 Added more options to exclude data in background fit and made the call to nappFitGAussXps more consitent bartels-rausch 2024-02-20 15:17:04 +01:00
  • 81d49ccbbd Added exponential fit and divide for binding energy scale. Needs testing. bartels-rausch 2024-01-27 15:32:27 +01:00
  • a61f4b7141 Bug fix in using the input parser of the NappFitGaussXPS.m function. This impacts the functions calls in all scripts and functions git push bartels-rausch 2024-01-26 09:06:53 +01:00
  • 7729717da5 small bug fixes and bartels-rausch 2023-11-28 14:36:44 +01:00
  • 8b55810fc6 Added exponential fit. Added divide by background to normalise intensity. bartels-rausch 2023-11-16 07:17:37 +01:00
  • 4ad9ccbd35 Added Gauss Fit to determine peak positions. Uses nappFitGaussXps.m bartels-rausch 2023-11-16 07:16:11 +01:00
  • 3a0a97fe88 Added model with 5 features: acid-base, gas-phase, acid-base. Both acid-base (feature 1,2,4,5) have one fixed and one relative BE. Position and width of gas-phase feature is unconstrained. bartels-rausch 2023-11-16 07:14:25 +01:00
  • 1aa130982f Added Gauss Peak Fitting to XPS shift determination. First implementation for positionWidth contrained fit. Not yet documented. Not yet fully tested. WIP bartels-rausch 2023-11-09 07:37:10 +01:00
  • b23894e06c initial files bartels-rausch 2023-10-31 11:16:30 +01:00
  • 62181940c5 Small debugging bartels-rausch 2023-10-31 11:12:17 +01:00
  • 0337ecc260 Merge branch 'main' of https://gitlab.psi.ch/5505/functionsMatlab bartels-rausch 2023-10-31 10:06:36 +01:00
  • 419fd691ee Move from SWITCH to GITLAB. Copy files with local changes to this project from Switch folder. GITLAB is now most recent and updated. bartels-rausch 2023-10-31 10:04:02 +01:00
  • bbcabaa4bc Add new directory for lopap procedures bartels-rausch 2023-10-31 10:00:02 +01:00
  • 895585a206 Updated to admit changes performed on save_table_as_hdf5.m florez_j 2023-10-06 15:40:36 +02:00
  • 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. florez_j 2023-10-06 15:21:26 +02:00
  • 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. florez_j 2023-08-18 14:24:47 +02:00
  • 596a35f7f1 Modified read_hdf5_as_table.m to read String entries as chars. florez_j 2023-08-18 11:47:20 +02:00
  • 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. florez_j 2023-08-15 13:25:15 +02:00
  • 384e5e62d5 Made some modifications to preserve original ordering of the table's columns/vars. florez_j 2023-08-15 13:18:40 +02:00
  • 5c3679da42 Removed h52table.m and table2h5. These have been replaced by read_hdf5_as_table.m and save_table_as_hdf5.m. florez_j 2023-08-15 08:48:07 +02:00
  • 74b117f8c6 Renamed h52table.m and table2h5.m as read_hdf5_as_table.m and save_table_as_hdf5.m. These reflect the scripts' functionality. florez_j 2023-08-15 08:46:17 +02:00
  • 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. florez_j 2023-08-14 14:50:49 +02:00
  • 5cd83455f6 Deleted Add-Ons Folder. Add-ons and helper functions are now in utils folder. This folder only holds those functions that are still used. bartels-rausch 2023-08-10 09:54:32 +02:00
  • ae2c3e9fc6 Deleted nappIce. Required functions now in beamtime. florez_j 2023-08-10 09:45:01 +02:00
  • f5385a98c0 Revert "Deleted unnecessary files." florez_j 2023-08-10 09:19:49 +02:00
  • 057fb9ae97 Revert "Removed more unnecessary files." florez_j 2023-08-10 09:15:18 +02:00
  • 1b8674441e Removed more unnecessary files. florez_j 2023-08-09 16:38:24 +02:00
  • 56d0141468 Removed more unnecessary files. florez_j 2023-08-09 16:37:29 +02:00
  • c38397ef98 Removed more unnecessary files. florez_j 2023-08-09 16:35:58 +02:00
  • 13fdc97f3b Removed more unnecessary files. florez_j 2023-08-09 16:34:08 +02:00
  • a27e9e459a Deleted unnecessary files. florez_j 2023-08-09 16:32:21 +02:00
  • d64e4d5916 Restructured folder structure and deleted irrelevant scripts. florez_j 2023-08-09 16:22:46 +02:00
  • 1c141cf1c0 Added inital code base. florez_j 2023-08-09 15:02:10 +02:00