Changeset 1231


Ignore:
Timestamp:
14/04/09 18:59:42 (3 years ago)
Author:
Freddie Akeroyd
Message:

Merge in r1226:r1229 from trunk. Refs #115.

Location:
branches/4.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/NEWS

    r982 r1231  
     1Version 4.2.0 
     2============= 
     3 
     4For the latest information see  
     5 
     6    http://www.nexusformat.org/Nexus_42_Release_Notes 
     7 
     8==System Requirements== 
     9'''MXML XML Parsing Library''' 
     10 
     11Version 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''' 
     14You 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=== 
     18The 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> 
     20env FCFLAGS="-mismatch" ./configure --with-f90=f95 
     21</pre> 
     22===HDF4 on Intel Macs=== 
     23There 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=== 
     27See 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=== 
     31The 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> 
     49See also the [http://svn.nexusformat.org/code/branches/4.2/test/napi_test_cpp.cxx NeXus API test program] 
     50 
     51===IDL Interface=== 
     52There is a new interface to RSI's Interactive Data Language, IDL for NeXus. This  
     53interface has to be considered beta. Nevertheless it is working most of the time.  
     54Known 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=== 
     59There 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== 
     64See the comments on the IDL interface. 
     65 
     66==Miscellaneous bug fixes== 
     67The following items are bugs reported in previous releases and resolved in 
     68the 4.2 release. 
     69 
     70==Upcoming Features== 
     71 
    172Version 4.1.0 
    273============= 
  • branches/4.2/applications/NXtranslate/binary/BinaryRetriever.cpp

    r1107 r1231  
    2626static const string myBYTE("BYTE"); 
    2727 
    28 static const int DEFAULT_TYPE=NX_UINT32; 
     28static const int NX_DEFAULT_TYPE=NX_UINT32; 
    2929 
    3030/** 
     
    9696static int getDataType(const string &str_type){ 
    9797  if(str_type.empty()){ 
    98     return DEFAULT_TYPE; 
     98    return NX_DEFAULT_TYPE; 
    9999  }else if(str_type==myINT8){ 
    100100    return NX_INT8; 
  • branches/4.2/nexus_spec.in

    r1059 r1231  
    2424# Prefix allows our package to be relocatable i.e. installable in  
    2525# other than just the /usr/local directory 
    26 Prefix: /usr/local 
     26#Prefix: /usr 
    2727# BuildRoot is the root for software installation 
    2828# this value will not usually be used, but something must 
     
    3737access routines, documentation, examples and a basic NeXus file browser. 
    3838 
     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 
    3948%prep 
    4049%setup -q 
     
    4554    ./configure --prefix="$RPM_INSTALL_PREFIX" $NEXUS_CONFIG_OPTIONS 
    4655else 
    47     ./configure --prefix=/usr/local $NEXUS_CONFIG_OPTIONS 
     56    ./configure --prefix=%{_prefix} --libdir=%{_libdir} $NEXUS_CONFIG_OPTIONS 
    4857fi 
    4958make 
     
    5867%doc README NEWS ChangeLog AUTHORS COPYING INSTALL 
    5968# %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* 
    6476 
    6577%clean 
     
    7082    INSTALL_PREFIX=$RPM_INSTALL_PREFIX 
    7183else 
    72     INSTALL_PREFIX=/usr/local 
     84    INSTALL_PREFIX=%{_prefix} 
    7385fi 
    7486( cd $INSTALL_PREFIX/bin; for i in nxbuild; do \ 
Note: See TracChangeset for help on using the changeset viewer.