Changeset 1231
- Timestamp:
- 14/04/09 18:59:42 (3 years ago)
- Location:
- branches/4.2
- Files:
-
- 3 edited
-
NEWS (modified) (1 diff)
-
applications/NXtranslate/binary/BinaryRetriever.cpp (modified) (2 diffs)
-
nexus_spec.in (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/NEWS
r982 r1231 1 Version 4.2.0 2 ============= 3 4 For the latest information see 5 6 http://www.nexusformat.org/Nexus_42_Release_Notes 7 8 ==System Requirements== 9 '''MXML XML Parsing Library''' 10 11 Version 2.2.2 or higher of mxml is required. Earlier versions have a bug and the XML API will not work. This package can be downloded in [http://www.easysw.com/~mike/mxml/software.php both source and binary rpm form] and is also available as part of [http://fedoraproject.org/wiki/Extras/UsingExtras Fedora Extras]. IMPORTANT NOTE: Debian also provides the mxml package, but it based on 2.0 and will not work properly. 12 13 '''Python Interface''' 14 You will need both the numpy and ctypes modules to be available. These are provided in both the Fedora and EPEL repositories. 15 16 ==Building Notes== 17 ===NAG F90/F95 Compiler=== 18 The NAG compiler needs the '''-mismatch''' flag to be specified or else it will not compile NXmodule.f90 This is achieve by running configure with the '''FCFLAGS''' environment variable set to contain the flag e.g. 19 <pre> 20 env FCFLAGS="-mismatch" ./configure --with-f90=f95 21 </pre> 22 ===HDF4 on Intel Macs=== 23 There is a problem with the include file, hdfi.h (normally in /usr/local/include). See http://coastwatch.noaa.gov/helparc/software/msg00069.html for details of the modifications necessary to fix it. 24 25 ==New Features== 26 ===C++ Interface=== 27 See the [http://download.nexusformat.org/doxygen/html/classNeXus_1_1File.html doxygen documentation] and 28 [http://svn.nexusformat.org/code/branches/4.2/test/napi_test_cpp.cxx NeXus API test program] 29 30 ===C++ Stream Like interface=== 31 The idea is to provide an IOSteam like interface and allow you to type 32 <pre> 33 // create an entry and a data item 34 File nf(fname, NXACC_CREATE); 35 nf << Group("entry1", "NXentry") << Data("dat1", w, "int_attr", 3); 36 nf.close(); 37 38 File nf1(fname, NXACC_RDWR); 39 // add a double_attr to an existing setup 40 nf1 >> Group("entry1", "NXentry") >> Data("dat1") << Attr("double_attr", 6.0); 41 nf1.close(); 42 43 // read back data items 44 File nf2(fname, NXACC_READ); 45 nf2 >> Group("entry1", "NXentry") >> Data("dat1", w1, "int_attr", i, "double_attr", d); 46 // alternative way to read d1 47 nf2 >> Data("dat1") >> Attr("double_attr", d1); 48 </pre> 49 See also the [http://svn.nexusformat.org/code/branches/4.2/test/napi_test_cpp.cxx NeXus API test program] 50 51 ===IDL Interface=== 52 There is a new interface to RSI's Interactive Data Language, IDL for NeXus. This 53 interface has to be considered beta. Nevertheless it is working most of the time. 54 Known issues include: 55 * Compressed reading and writing do not work for HDF-4 files, probably because of a library version conflict on libz. 56 * There is an issue using NXgetslab on 64 bit operating systems; expect a fix for this pretty soon. 57 58 ===Python Interface=== 59 There is now, thanks to David Kienzle, a supported interface for the python scripting language. Arrays are stored in numpy arrays and thus allow for efficient data manipulations. 60 61 ==Changed Features== 62 63 ==Known Issues== 64 See the comments on the IDL interface. 65 66 ==Miscellaneous bug fixes== 67 The following items are bugs reported in previous releases and resolved in 68 the 4.2 release. 69 70 ==Upcoming Features== 71 1 72 Version 4.1.0 2 73 ============= -
branches/4.2/applications/NXtranslate/binary/BinaryRetriever.cpp
r1107 r1231 26 26 static const string myBYTE("BYTE"); 27 27 28 static const int DEFAULT_TYPE=NX_UINT32;28 static const int NX_DEFAULT_TYPE=NX_UINT32; 29 29 30 30 /** … … 96 96 static int getDataType(const string &str_type){ 97 97 if(str_type.empty()){ 98 return DEFAULT_TYPE;98 return NX_DEFAULT_TYPE; 99 99 }else if(str_type==myINT8){ 100 100 return NX_INT8; -
branches/4.2/nexus_spec.in
r1059 r1231 24 24 # Prefix allows our package to be relocatable i.e. installable in 25 25 # other than just the /usr/local directory 26 Prefix: /usr/local 26 #Prefix: /usr 27 27 # BuildRoot is the root for software installation 28 28 # this value will not usually be used, but something must … … 37 37 access routines, documentation, examples and a basic NeXus file browser. 38 38 39 #%package devel 40 #Summary: Libraries and utilities for using NeXus format data files 41 #Group: Development/Libraries 42 # 43 #%description devel 44 #NeXus is an international standard for exchanging data files 45 #among Neutron, Muon and X-ray science facilities. The underlying 46 #data is stored using the HDF format from NCSA. This package provides 47 39 48 %prep 40 49 %setup -q … … 45 54 ./configure --prefix="$RPM_INSTALL_PREFIX" $NEXUS_CONFIG_OPTIONS 46 55 else 47 ./configure --prefix= /usr/local$NEXUS_CONFIG_OPTIONS56 ./configure --prefix=%{_prefix} --libdir=%{_libdir} $NEXUS_CONFIG_OPTIONS 48 57 fi 49 58 make … … 58 67 %doc README NEWS ChangeLog AUTHORS COPYING INSTALL 59 68 # %docdir /usr/local/doc 60 /usr/local/lib 61 /usr/local/bin 62 /usr/local/include 63 /usr/local/share 69 %{_libdir}/* 70 %{_bindir}/* 71 %{_datadir}/* 72 %{_includedir}/* 73 #%files devel 74 #%{_libdir}/*.a 75 #%{_libdir}/*.so* 64 76 65 77 %clean … … 70 82 INSTALL_PREFIX=$RPM_INSTALL_PREFIX 71 83 else 72 INSTALL_PREFIX= /usr/local84 INSTALL_PREFIX=%{_prefix} 73 85 fi 74 86 ( cd $INSTALL_PREFIX/bin; for i in nxbuild; do \
Note: See TracChangeset
for help on using the changeset viewer.
