diff --git a/applications/NXconvert/nxconvert.cpp b/applications/NXconvert/nxconvert.cpp index 204283d8..aa5a5f0c 100644 --- a/applications/NXconvert/nxconvert.cpp +++ b/applications/NXconvert/nxconvert.cpp @@ -63,7 +63,7 @@ int main(int argc, char *argv[]) false); ValueArg defValueArg("D", "definition", "Output definition file used for validating NeXus files. Requires a definition name.", - false, EMPTY, "defintion"); + false, EMPTY, "definition"); vector allowedXml; allowedXml.push_back("keepws"); allowedXml.push_back("table"); @@ -154,7 +154,7 @@ int main(int argc, char *argv[]) } // tell the user that everything went ok - std::cout << "Convertion successful." << std::endl; + std::cout << "Conversion successful." << std::endl; return 0; } diff --git a/applications/NXdir/nxdir.1 b/applications/NXdir/nxdir.1 index ba2e8717..dd556f83 100644 --- a/applications/NXdir/nxdir.1 +++ b/applications/NXdir/nxdir.1 @@ -23,7 +23,7 @@ nxdir \- inspect a NeXus file non interactively .RI [ options ] .SH DESCRIPTION .B nxdir -allows to retrieve the structure and/or data of a NeXus file. +allows retrieval of the structure and/or data of a NeXus file. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, diff --git a/applications/NXtranslate/docs/NXtranslate.pdf b/applications/NXtranslate/docs/NXtranslate.pdf new file mode 100644 index 00000000..9239db59 Binary files /dev/null and b/applications/NXtranslate/docs/NXtranslate.pdf differ diff --git a/applications/NXtranslate/docs/translation.docbook b/applications/NXtranslate/docs/translation.docbook index a8483861..a0f6ac81 100644 --- a/applications/NXtranslate/docs/translation.docbook +++ b/applications/NXtranslate/docs/translation.docbook @@ -546,7 +546,7 @@ columns. The &mime-type for the XML retriever is text/xml. The XML retriever is built on top of libxml2's document object model (DOM) parser. Because of this the -entire file for information to be retrived from is loaded into memory +entire file for information to be retrieved from is loaded into memory as a character arrays. The DOM API was chosen to allow for jumping around the source file without needed to parse its contents multiple times. The location string will be formatted according to the diff --git a/applications/NXtranslate/esrf_edf/edf_retriever.h b/applications/NXtranslate/esrf_edf/edf_retriever.h index 7eaae045..8b7e25a6 100644 --- a/applications/NXtranslate/esrf_edf/edf_retriever.h +++ b/applications/NXtranslate/esrf_edf/edf_retriever.h @@ -4,8 +4,8 @@ // // Project: Fable data to NeXus translation // -// Description: definition of a edf_retriever class. The retriever allows to -// read data from EDF file and store in Nexus file format. +// Description: definition of a edf_retriever class. The retriever allows +// reading data from EDF file and store in Nexus file format. // It is a plugin of NXtranslate program. // // Author(s): Jaroslaw Butanowicz diff --git a/applications/NXtranslate/sns_histogram/SNS_retriever.cpp b/applications/NXtranslate/sns_histogram/SNS_retriever.cpp index 8fad73f9..60721fe4 100644 --- a/applications/NXtranslate/sns_histogram/SNS_retriever.cpp +++ b/applications/NXtranslate/sns_histogram/SNS_retriever.cpp @@ -48,7 +48,7 @@ void SnsHistogramRetriever::getData(const string &location, tree &tr) vector decla_def; //declaration and definition parts vector LocGlobArray; //local and global array (declaration part) - vector Ope; //Operators of the defintion part + vector Ope; //Operators of the definition part int OperatorNumber; string DefinitionPart; //use to determine the operators vector GrpPriority; //Vector of priority of each group @@ -71,7 +71,7 @@ void SnsHistogramRetriever::getData(const string &location, tree &tr) DeclaDef_separator(new_location, decla_def); //Separate Declaration part from Definition part -> decla_def - //check if the defintion part has a valid format + //check if the definition part has a valid format if (decla_def[1].size() > 0 && decla_def[1].size()<7) throw runtime_error("Definition part is not valid"); @@ -86,7 +86,7 @@ void SnsHistogramRetriever::getData(const string &location, tree &tr) //Work on definition part DefinitionPart = decla_def[1]; - //Parse defintion part, separate Tag from Def + //Parse definition part, separate Tag from Def TagDef_separator(decla_def[1], Tag, Def, definition_version_with_groups); //check if we have at least one tag @@ -171,7 +171,7 @@ string SnsHistogramRetriever::toString() const * \para GrpPara (OUTPUT) is the list of operators (loop or list of * identifiers * \param record (OUTPUT) is a structure Grp_parameters that contains - * all the information of the different defintion part + * all the information of the different definition part */ void store_para_of_definition(vector Def, int HowManyDef, @@ -212,8 +212,8 @@ void store_para_of_definition(vector Def, * of the loop definition; the initial value, the final value and the increment * * \param def (INPUT) the definition part to parse - * \param i (INPUT) the index of the defintion part to parse - * \param GrpPara (OUTPUT) the Grp_parameters structre of the defintion part + * \param i (INPUT) the index of the definition part to parse + * \param GrpPara (OUTPUT) the Grp_parameters structre of the definition part */ void InitLastIncre (string & def, int i, @@ -345,7 +345,7 @@ void parse_declaration_array(vector & LocGlobArray, * \param GlobalArray (INPUT) is the list of parameters of the global * declaration part * \param GrpPara (INPUT) is a list of structures of all the parameters of the - * defintion part + * definition part */ void calculate_array (vector & GrpPriority, vector & InverseDef, @@ -524,8 +524,8 @@ int FindMaxPriority (vector & GrpPriority) * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -592,8 +592,8 @@ void MakeArray_pixelID (binary_type * MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -658,8 +658,8 @@ void MakeArray_pixelX (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -724,8 +724,8 @@ void MakeArray_pixelY (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) diff --git a/applications/NXtranslate/sns_histogram/SNS_retriever.hpp b/applications/NXtranslate/sns_histogram/SNS_retriever.hpp index 3a35a2fa..f0f099f6 100644 --- a/applications/NXtranslate/sns_histogram/SNS_retriever.hpp +++ b/applications/NXtranslate/sns_histogram/SNS_retriever.hpp @@ -53,7 +53,7 @@ struct Grp_parameters //parameters of the different definitions * \para GrpPara (OUTPUT) is the list of operators (loop or list of * identifiers * \param record (OUTPUT) is a structure Grp_parameters that contains - * all the information of the different defintion part + * all the information of the different definition part */ void store_para_of_definition(vector Def, int OperatorNumber, @@ -65,8 +65,8 @@ void store_para_of_definition(vector Def, * of the loop definition; the initial value, the final value and the increment * * \param def (INPUT) the definition part to parse - * \param i (INPUT) the index of the defintion part to parse - * \param GrpPara (OUTPUT) the Grp_parameters structre of the defintion part + * \param i (INPUT) the index of the definition part to parse + * \param GrpPara (OUTPUT) the Grp_parameters structre of the definition part */ void InitLastIncre (string & def, int i, @@ -123,7 +123,7 @@ int FindMaxPriority (vector& GrpPriority); * \param GlobalArray (INPUT) is the list of parameters of the global * declaration part * \param GrpPara (INPUT) is a list of structures of all the parameters of the - * defintion part + * definition part */ void calculate_array (vector & GrpPriority, vector & InverseDef, @@ -142,8 +142,8 @@ void calculate_array (vector & GrpPriority, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -164,8 +164,8 @@ void MakeArray_pixelID (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -186,8 +186,8 @@ void MakeArray_pixelX (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -208,8 +208,8 @@ void MakeArray_pixelY (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) diff --git a/applications/NXtranslate/sns_histogram/retriever.cpp b/applications/NXtranslate/sns_histogram/retriever.cpp index 90d6168c..a3106931 100644 --- a/applications/NXtranslate/sns_histogram/retriever.cpp +++ b/applications/NXtranslate/sns_histogram/retriever.cpp @@ -48,7 +48,7 @@ void SnsHistogramRetriever::getData(const string &location, tree &tr) vector decla_def; //declaration and definition parts vector LocGlobArray; //local and global array (declaration part) - vector Ope; //Operators of the defintion part + vector Ope; //Operators of the definition part int OperatorNumber; string DefinitionPart; //use to determine the operators vector GrpPriority; //Vector of priority of each group @@ -71,7 +71,7 @@ void SnsHistogramRetriever::getData(const string &location, tree &tr) DeclaDef_separator(new_location, decla_def); //Separate Declaration part from Definition part -> decla_def - //check if the defintion part has a valid format + //check if the definition part has a valid format if (decla_def[1].size() > 0 && decla_def[1].size()<7) throw runtime_error("Definition part is not valid"); @@ -86,7 +86,7 @@ void SnsHistogramRetriever::getData(const string &location, tree &tr) //Work on definition part DefinitionPart = decla_def[1]; - //Parse defintion part, separate Tag from Def + //Parse definition part, separate Tag from Def TagDef_separator(decla_def[1], Tag, Def, definition_version_with_groups); //check if we have at least one tag @@ -171,7 +171,7 @@ string SnsHistogramRetriever::toString() const * \para GrpPara (OUTPUT) is the list of operators (loop or list of * identifiers * \param record (OUTPUT) is a structure Grp_parameters that contains - * all the information of the different defintion part + * all the information of the different definition part */ void store_para_of_definition(vector Def, int HowManyDef, @@ -212,8 +212,8 @@ void store_para_of_definition(vector Def, * of the loop definition; the initial value, the final value and the increment * * \param def (INPUT) the definition part to parse - * \param i (INPUT) the index of the defintion part to parse - * \param GrpPara (OUTPUT) the Grp_parameters structre of the defintion part + * \param i (INPUT) the index of the definition part to parse + * \param GrpPara (OUTPUT) the Grp_parameters structre of the definition part */ void InitLastIncre (string & def, int i, @@ -345,7 +345,7 @@ void parse_declaration_array(vector & LocGlobArray, * \param GlobalArray (INPUT) is the list of parameters of the global * declaration part * \param GrpPara (INPUT) is a list of structures of all the parameters of the - * defintion part + * definition part */ void calculate_array (vector & GrpPriority, vector & InverseDef, @@ -524,8 +524,8 @@ int FindMaxPriority (vector & GrpPriority) * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -592,8 +592,8 @@ void MakeArray_pixelID (binary_type * MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -658,8 +658,8 @@ void MakeArray_pixelX (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -724,8 +724,8 @@ void MakeArray_pixelY (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) diff --git a/applications/NXtranslate/sns_histogram/retriever.hpp b/applications/NXtranslate/sns_histogram/retriever.hpp index f52eec92..9d2f7596 100644 --- a/applications/NXtranslate/sns_histogram/retriever.hpp +++ b/applications/NXtranslate/sns_histogram/retriever.hpp @@ -35,7 +35,7 @@ struct Grp_parameters //parameters of the different definitions * \para GrpPara (OUTPUT) is the list of operators (loop or list of * identifiers * \param record (OUTPUT) is a structure Grp_parameters that contains - * all the information of the different defintion part + * all the information of the different definition part */ void store_para_of_definition(vector Def, int OperatorNumber, @@ -47,8 +47,8 @@ void store_para_of_definition(vector Def, * of the loop definition; the initial value, the final value and the increment * * \param def (INPUT) the definition part to parse - * \param i (INPUT) the index of the defintion part to parse - * \param GrpPara (OUTPUT) the Grp_parameters structre of the defintion part + * \param i (INPUT) the index of the definition part to parse + * \param GrpPara (OUTPUT) the Grp_parameters structre of the definition part */ void InitLastIncre (string & def, int i, @@ -105,7 +105,7 @@ int FindMaxPriority (vector& GrpPriority); * \param GlobalArray (INPUT) is the list of parameters of the global * declaration part * \param GrpPara (INPUT) is a list of structures of all the parameters of the - * defintion part + * definition part */ void calculate_array (vector & GrpPriority, vector & InverseDef, @@ -124,8 +124,8 @@ void calculate_array (vector & GrpPriority, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -146,8 +146,8 @@ void MakeArray_pixelID (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -168,8 +168,8 @@ void MakeArray_pixelX (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) @@ -190,8 +190,8 @@ void MakeArray_pixelY (binary_type* MyGrpArray, * \param MyGrpArray (INPUT) * \param BinaryArray (INPUT) is the array that comes from the binary file * \param grp_number (INPUT) is the group index - * \param InverseDef (INPUT) allows to check if we want or not the inverse - * of the defintion + * \param InverseDef (INPUT) allows checking if we want or not the inverse + * of the definition * \param def (INPUT) is the list of definition * \param LocalArray (INPUT) ???not used??? * \param GlobalArray (INPUT) diff --git a/applications/NXtranslate/spec/SPEClib.cpp b/applications/NXtranslate/spec/SPEClib.cpp index 1f97f263..6e82201f 100644 --- a/applications/NXtranslate/spec/SPEClib.cpp +++ b/applications/NXtranslate/spec/SPEClib.cpp @@ -477,7 +477,7 @@ bool get_values(ifstream &in, int number, double results[], int scan_number){ //label position must be greater then zero // if(number == 0){ - cout<<"Uncorrect number of label\n"; + cout<<"Incorrect number of label\n"; exit(1); } // @@ -981,7 +981,7 @@ double get_motor_value(ifstream &in, int noMotor, int noValue, int scan){ // int MAX = m_label_counter(in, noMotor); if(noValue>MAX || noValue<1){ - cout<<"Uncorrect number of value\n"; + cout<<"Incorrect number of value\n"; exit(1); } // @@ -1263,7 +1263,7 @@ void get_motor_name(ifstream &in, char *motor_name, int motor_group, int motor_p exit(1); } if(motor_position>motors_number || motor_position<1){ - cout<<" Uncorrect number of label\n"; + cout<<" Incorrect number of label\n"; exit(1); } // diff --git a/applications/NXtranslate/spec/spec_retriever.h b/applications/NXtranslate/spec/spec_retriever.h index 95ee11ec..9663952d 100644 --- a/applications/NXtranslate/spec/spec_retriever.h +++ b/applications/NXtranslate/spec/spec_retriever.h @@ -4,8 +4,8 @@ // // Project: Fable data to NeXus translation // -// Description: definition of a spec_retriever class. The retriever allows to -// read data from SPEC file and store in Nexus file format. +// Description: definition of a spec_retriever class. The retriever allows +// reading data from SPEC file and store in Nexus file format. // It uses SPEClib for reading SPEC files. It is a plugin of NXtranslate // program. // diff --git a/applications/NXtranslate/text_xml/xml_retriever_dom.cpp b/applications/NXtranslate/text_xml/xml_retriever_dom.cpp index dcc56f42..dad5403a 100644 --- a/applications/NXtranslate/text_xml/xml_retriever_dom.cpp +++ b/applications/NXtranslate/text_xml/xml_retriever_dom.cpp @@ -163,8 +163,8 @@ static void my_error(void *user_data, const char* msg, ...){ va_start(args,msg); // get the position of the error - int line=getLineNumber(context); - int col =getColumnNumber(context); + int line=xmlSAX2GetLineNumber(context); + int col =xmlSAX2GetColumnNumber(context); // print out the result char str[70]; @@ -186,8 +186,8 @@ static void my_fatalError(void *user_data, const char* msg, ...){ va_start(args,msg); // get the position of the error - int line=getLineNumber(context); - int col =getColumnNumber(context); + int line=xmlSAX2GetLineNumber(context); + int col =xmlSAX2GetColumnNumber(context); // print out the result char str[70]; diff --git a/applications/NXtranslate/xml_parser.cpp b/applications/NXtranslate/xml_parser.cpp index 70500a1d..7743874e 100644 --- a/applications/NXtranslate/xml_parser.cpp +++ b/applications/NXtranslate/xml_parser.cpp @@ -296,7 +296,7 @@ static void my_startElement(void *user_data, const xmlChar *name, // confirm that maximum node depth is not exceded if(((UserData *)user_data)->mime_types.size()>MAX_NODE_DEPTH) - throw runtime_error("Exceded maximum node depth"); + throw runtime_error("Exceeded maximum node depth"); // create a new retriever if necessary RetrieverPtr retriever(NULL); @@ -463,8 +463,8 @@ static void my_error(void *user_data, const char* msg, ...){ va_start(args,msg); // get the position of the error - int line=getLineNumber(context); - int col =getColumnNumber(context); + int line=xmlSAX2GetLineNumber(context); + int col =xmlSAX2GetColumnNumber(context); // print out the result char str[70]; @@ -486,8 +486,8 @@ static void my_fatalError(void *user_data, const char* msg, ...){ va_start(args,msg); // get the position of the error - int line=getLineNumber(context); - int col =getColumnNumber(context); + int line=xmlSAX2GetLineNumber(context); + int col =xmlSAX2GetColumnNumber(context); // print out the result char str[70]; diff --git a/applications/nxingest/nxingest.txt b/applications/nxingest/nxingest.txt index 344c664c..33dbb644 100644 --- a/applications/nxingest/nxingest.txt +++ b/applications/nxingest/nxingest.txt @@ -23,11 +23,11 @@ DESCRIPTION See http://nile.dl.ac.uk/trac/isis/browser/Software/icat_xsd/icatXSD.xsd NB: This work is ongoing; the schema hasn't been released yet. - This tool use the NeXus api so any of the supported format (HDF4, HDF5 - and XML) can be read. + This tool use the NeXus api so any of the supported format (HDF4, HDF5 + and XML) can be read. - nxingest can retrive metadata from the neXus file, from the mapping file - (fix parameter). it can also retrive the actual time. + nxingest can retrieve metadata from the neXus file, from the mapping file + (fix parameter). it can also retrieve the actual time. If the metadata is a date or time, nxingest may modify it to extract only part of the data (e.g. the year) or reformat it to have consistant dates @@ -322,4 +322,4 @@ COPYRIGHT You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. \ No newline at end of file + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/bindings/cpp/NeXusFile.cpp b/bindings/cpp/NeXusFile.cpp index dfffbe4f..c4b9768a 100644 --- a/bindings/cpp/NeXusFile.cpp +++ b/bindings/cpp/NeXusFile.cpp @@ -505,7 +505,7 @@ void File::writeCompData(const string & name, const vector & value, void File::compress(NXcompression comp) { stringstream msg; - msg << "compress(" << comp << ") is depricated - use makeCompData()"; + msg << "compress(" << comp << ") is deprecated - use makeCompData()"; throw Exception(msg.str()); } diff --git a/bindings/swig/asciidblib.scm b/bindings/swig/asciidblib.scm index 02d51905..11b28694 100644 --- a/bindings/swig/asciidblib.scm +++ b/bindings/swig/asciidblib.scm @@ -12,8 +12,8 @@ (define currentRow '()) ;------------------------------------------------------------------------ -; functifyFields creates functions for each field which allows to -; retrieve the field value by a (fieldName) syntax. This is useful for +; functifyFields creates functions for each field which allows +; retrieval of the field value by a (fieldName) syntax. This is useful for ; operator doing computations. The row to be accessed must be put into ; currentRow however before this can work. (define functifyFields (lambda (header) diff --git a/doc/api/NeXusIntern.html b/doc/api/NeXusIntern.html index 63d4115e..2462bb94 100644 --- a/doc/api/NeXusIntern.html +++ b/doc/api/NeXusIntern.html @@ -127,13 +127,13 @@

NeXus Programmers Reference

 	void NXIReportError(void *pData, char *errorText);
A NeXus-API user now can replace the default error reporting function through an own implementation with the -function NXMSetError. NXMSetError also allows to pass in a pointer to a user defined data structure which is +function NXMSetError. NXMSetError also allows one to pass in a pointer to a user defined data structure which is passed as pData to the error reporting function.

NeXus File Drivers

NeXus HDF File Drivers

The NeXus file drivers for the HDF file formats HDF-4 and HDF-5 share common features. I recall that NeXus uses a hierarchy in order to organize information storage. But both HDF-API's are not tree based -but use an interface which allows to open and close groups and datasets. This is sensible as HDF is designed +but use an interface which allows one to open and close groups and datasets. This is sensible as HDF is designed to support very large data sets which may not necessarily fit into a computers memory in one go. But this also implies that the current position in the hierarchy of a given NeXus file has to be maintained by the NeXus-API. Such information is maintained in a stack which is pushed an popped while moving through the hierarchy. This diff --git a/doc/api/NeXusIntern.radi b/doc/api/NeXusIntern.radi index d9d90240..0f8cb830 100755 --- a/doc/api/NeXusIntern.radi +++ b/doc/api/NeXusIntern.radi @@ -137,7 +137,7 @@ the signature: void NXIReportError(void *pData, char *errorText); }}} A NeXus-API user now can replace the default error reporting function through an own implementation with the -function NXMSetError. NXMSetError also allows to pass in a pointer to a user defined data structure which is +function NXMSetError. NXMSetError also allows one to pass in a pointer to a user defined data structure which is passed as pData to the error reporting function. = NeXus File Drivers = @@ -145,7 +145,7 @@ passed as pData to the error reporting function. == NeXus HDF File Drivers == The NeXus file drivers for the HDF file formats HDF-4 and HDF-5 share common features. I recall that NeXus uses a hierarchy in order to organize information storage. But both HDF-API's are not tree based -but use an interface which allows to open and close groups and datasets. This is sensible as HDF is designed +but use an interface which allows one to open and close groups and datasets. This is sensible as HDF is designed to support very large data sets which may not necessarily fit into a computers memory in one go. But this also implies that the current position in the hierarchy of a given NeXus file has to be maintained by the NeXus-API. Such information is maintained in a stack which is pushed an popped while moving through the hierarchy. This diff --git a/doc/api/NeXusIntern.tex b/doc/api/NeXusIntern.tex index 827b5765..a1daca0a 100644 --- a/doc/api/NeXusIntern.tex +++ b/doc/api/NeXusIntern.tex @@ -149,7 +149,7 @@ \section{The Top Level NeXus API } void NXIReportError(void *pData, char *errorText); \end{verbatim} A NeXus-API user now can replace the default error reporting function through an own implementation with the -function NXMSetError. NXMSetError also allows to pass in a pointer to a user defined data structure which is +function NXMSetError. NXMSetError also allows one to pass in a pointer to a user defined data structure which is passed as pData to the error reporting function. @@ -157,7 +157,7 @@ \section{NeXus File Drivers } \subsection{NeXus HDF File Drivers } The NeXus file drivers for the HDF file formats HDF-4 and HDF-5 share common features. I recall that NeXus uses a hierarchy in order to organize information storage. But both HDF-API's are not tree based -but use an interface which allows to open and close groups and datasets. This is sensible as HDF is designed +but use an interface which allows one to open and close groups and datasets. This is sensible as HDF is designed to support very large data sets which may not necessarily fit into a computers memory in one go. But this also implies that the current position in the hierarchy of a given NeXus file has to be maintained by the NeXus-API. Such information is maintained in a stack which is pushed an popped while moving through the hierarchy. This diff --git a/doc/api/napi.tex b/doc/api/napi.tex index 74d08343..7266ed0d 100644 --- a/doc/api/napi.tex +++ b/doc/api/napi.tex @@ -1167,7 +1167,7 @@ \subsubsection{NXgetnextentry} \end{flushleft} \subsubsection{NXgetnextattr} NXgetnextattr works very much like NXgetnextentry except, that it works on -SDS attributes and not on Vgroup entries. This function allows to scan the +SDS attributes and not on Vgroup entries. This function allows one to scan the names of attributes available. iLength will be filled with the length of the attributes data in byte. iType will be filled with the HDF type of the attribute. Be warned: this routine returns global attributes when no SDS is @@ -1407,7 +1407,7 @@ \subsubsection{NX error handling} because stdout is supported only in a very strange way. Think about operating system like MS-Windows, MAC-OS (going to die anyway) or other windowing systems. In order to cater for this there is an inofficial support -function which allows to set both a pointer to a datastructure and a new +function which allows one to set both a pointer to a datastructure and a new function for error reporting. This is called NXMSetError. \begin{flushleft} \small diff --git a/include/napi.h.in b/include/napi.h.in index 774a4468..76f5e206 100644 --- a/include/napi.h.in +++ b/include/napi.h.in @@ -878,7 +878,7 @@ extern NXstatus NXgetrawinfo64(NXhandle handle, int* rank, int64_t dimension[] /** \typedef void (*ErrFunc)(void *data, char *text) * All NeXus error reporting happens through this special function, the - * ErrFunc. The NeXus-API allows to replace this error reporting function + * ErrFunc. The NeXus-API allows this error reporting function to be replaced * through a user defined implementation. The default error function prints to stderr. User * defined ones may pop up dialog boxes or whatever. * \param data A pointer to some user defined data structure diff --git a/src/napi5.c b/src/napi5.c index 4eddc125..f7d43b31 100644 --- a/src/napi5.c +++ b/src/napi5.c @@ -440,8 +440,10 @@ NXstatus NX5open(CONSTCHAR * filename, NXaccess am, NXhandle * pHandle) H5Gclose(root_id); H5Fclose(pNew->iFID); free(pNew); + free(time_buffer); return NX_ERROR; } + free(time_buffer); } /*finally we set the NXroot NX_class attribute*/ @@ -1535,7 +1537,7 @@ static int countObjectsInGroup(hid_t loc_id) status = H5Gget_info(loc_id, &numobj); if (status < 0) { NXReportError - ("Internal error, failed to retrive no of objects"); + ("Internal error, failed to retrieve no of objects"); return 0; } diff --git a/test/testsuite.at b/test/testsuite.at index 1de55ff6..d14f6a60 100644 --- a/test/testsuite.at +++ b/test/testsuite.at @@ -2222,55 +2222,55 @@ AT_BANNER([[Testing the NeXus File Converter.]]) AT_SETUP([Checking nxconvert HDF5 -> HDF5 ]) AT_CHECK([$HAVE_HDF5 && nxconvert --hdf 5 NXtest.h5 a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.h5 to HDF5 NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert HDF5 -> HDF4 ]) AT_CHECK([skip_test && $HAVE_HDF5 && $HAVE_HDF4 && nxconvert --hdf 4 NXtest.h5 a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.h5 to HDF4 NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert HDF5 -> XML ]) AT_CHECK([$HAVE_HDF5 && $HAVE_XML && nxconvert -x NXtest.h5 a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.h5 to XML NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert HDF4 -> HDF5 ]) AT_CHECK([$HAVE_HDF4 && $HAVE_HDF5 && nxconvert --hdf 5 NXtest.hdf a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.hdf to HDF5 NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert HDF4 -> HDF4 ]) AT_CHECK([skip_test && $HAVE_HDF4 && nxconvert --hdf 4 NXtest.hdf a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.hdf to HDF4 NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert HDF4 -> XML ]) AT_CHECK([$HAVE_HDF4 && $HAVE_XML && nxconvert -x NXtest.hdf a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.hdf to XML NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert XML -> HDF5 ]) AT_CHECK([$HAVE_XML && $HAVE_HDF5 && nxconvert --hdf 5 NXtest.xml a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.xml to HDF5 NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert XML -> HDF4 ]) AT_CHECK([skip_test && $HAVE_XML && $HAVE_HDF4 && nxconvert --hdf 4 NXtest.xml a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.xml to HDF4 NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP AT_SETUP([Checking nxconvert XML -> XML ]) AT_CHECK([$HAVE_XML && nxconvert -x NXtest.xml a.a | sed -e 's/\r$//' ],[], [[Converting NXtest.xml to XML NeXus file a.a -Convertion successful. +Conversion successful. ]]) AT_CLEANUP