[Nexus] Re: NeXus Digest, Vol 8, Issue 4

Timothy Kelley tkelley at caltech.edu
Fri Mar 26 18:33:04 GMT 2004


Hi Hartmut,

I do not know why the writers of the nexus API chose to do this, but they
did: if you look around line 1390 (give or take) of napi5.c you'll see that
the temporary dimensions array, which already has been assigned via
get_..._dims, is overwritten:

if (data_id == H5T_STRING){
    for ( i=0; i < iRank; i++)
   {
        myDim[i] = H5Tget_size( ...)
    }
}

This doesn't happen in napi4.c. If you comment out these lines, perhaps
you'll get the array dimensions.

Good luck,
Tim Kelley
tkelley at caltech.edu

----- Original Message ----- 
From: <nexus-request at anl.gov>
To: <nexus at anl.gov>
Sent: Thursday, March 25, 2004 10:00 AM
Subject: NeXus Digest, Vol 8, Issue 4


> Send NeXus mailing list submissions to
> nexus at anl.gov
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.neutron.anl.gov/mailman/listinfo/nexus
> or, via email, send a message with subject or body 'help' to
> nexus-request at anl.gov
>
> You can reach the person managing the list at
> nexus-owner at anl.gov
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of NeXus digest..."
>
>
> Today's Topics:
>
>    1. NXgetinfo for NX_CHAR datasets (Hartmut Gilde)
>
>
> ----------------------------------------------------------------------
>
> Date: Wed, 24 Mar 2004 17:36:52 +0100
> From: Hartmut Gilde <Hartmut.Gilde at frm2.tum.de>
> To: nexus at anl.gov
> Subject: [Nexus] NXgetinfo for NX_CHAR datasets
> Message-ID: <200403241736.52173.hartmut.gilde at frm2.tum.de>
> Content-Type: text/plain;
>   charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Precedence: list
> Message: 1
>
> Hi all,
>
> when i create a dataset of type NX_CHAR using NXmakedata
> a following call to NXgetinfo obviously doesn't return the proper
dimensions.
> instead, it always delivers the size of the current data type in any
dimension
> array element.
>
> It works fine for any other data type however.
> What is the purpose of this behaviour and how can the actual dimensions
for
> NX_CHAR datasets be retrieved ???
>
> Thanks in advance,
> Hartmut Gilde
>
>
>
> ------------------------------
>
> _______________________________________________
> NeXus mailing list
> NeXus at anl.gov
> http://www.neutron.anl.gov/mailman/listinfo/nexus
>
>
> End of NeXus Digest, Vol 8, Issue 4
> ***********************************
>






More information about the NeXus mailing list