Skip to content

Commit

Permalink
Refs #4367 SaveNexusProcessed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Dec 28, 2011
1 parent e97a152 commit c098c08
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions Code/Mantid/Framework/DataHandling/src/SaveNexusProcessed.cpp
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
/*WIKI*
The algorithm SaveNexusProcessed will write a Nexus data file from the named workspace.
This can later be loaded using [[LoadNexusProcessed]].
The file name can be an absolute or relative path and should have the extension
.nxs, .nx5 or .xml.
Warning - using XML format can be extremely slow for large data sets and generate very large files.
.nxs, .nx5 or .xml. Warning - using XML format can be extremely slow for large data sets and generate very large files.
Both the extensions nxs and nx5 will generate HDF5 files.
The optional parameters can be used to control which spectra are saved into the file (not yet implemented).
If spectrum_min and spectrum_max are given, then only that range to data will be loaded.
The optional parameters can be used to control which spectra are saved into the file.
If WorkspaceIndexMin and WorkspaceIndexMax are given, then only that range to data will be loaded.
A Mantid Nexus file may contain several workspace entries each labelled with an integer starting at 1.
If the file already contains n workspaces, the new one will be labelled n+1.
=== Time series data ===
===Time series data===
TimeSeriesProperty data within the workspace will be saved as NXlog sections in the Nexus file.
Only floating point logs are stored and loaded at present.
===Subalgorithms used===
None
=== EventWorkspaces ===
This algorithm will save [[EventWorkspace]]s with full event data, unless
you uncheck ''PreserveEvents'', in which case the histogram version of
the workspace is saved.
Optionally, you can check ''CompressNexus'', which will compress the event
data. '''Warning!''' This can be ''very'' slow, and only gives approx. 40% compression
because event data is typically denser than histogram data. ''CompressNexus'' is
off by default.
*WIKI*/


*WIKI*/
// SaveNexusProcessed
// @author Ronald Fowler, based on SaveNexus
//----------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------
#include "MantidAPI/EnabledWhenWorkspaceIsType.h"
#include "MantidAPI/FileProperty.h"
#include "MantidAPI/WorkspaceOpOverloads.h"
Expand Down Expand Up @@ -102,13 +104,13 @@ namespace DataHandling

declareProperty("WorkspaceIndexMin", 0, mustBePositive->clone(),
"Index number of first spectrum to write, only for single\n"
"period data. Not yet implemented");
"period data.");
declareProperty("WorkspaceIndexMax", Mantid::EMPTY_INT(), mustBePositive->clone(),
"Index of last spectrum to write, only for single period\n"
"data. Not yet implemented");
"data.");
declareProperty(new ArrayProperty<int>("WorkspaceIndexList"),
"List of spectrum numbers to read, only for single period\n"
"data. Not yet implemented");
"data.");
//declareProperty("EntryNumber", 0, mustBePositive);
declareProperty("Append",false,"Determines whether .nxs file needs to be\n"
"over written or appended");
Expand Down

0 comments on commit c098c08

Please sign in to comment.