h5dump XML output (-u) invalidates -m

It seems that when I use the h5dump -u to generate XML, it does not respect the -m option. To wit,

[dws@oxygen em]$ h5dump -m '%.14g' bathtubAntenna1s_YeeMagField_1.h5

...
      ATTRIBUTE "vsTime" {
         DATATYPE H5T_IEEE_F64LE
         DATASPACE SCALAR
         DATA {
         (0): 1.8970419951834e-08
         }
      }
...

[dws@oxygen em]$ h5dump -u -m '%.14g' bathtubAntenna1s_YeeMagField_1.h5|more
...
<Attribute Name="vsTime">
         <Dataspace>
            <ScalarDataspace />
         </Dataspace>
         <DataType>
            <AtomicType>
               <FloatType ByteOrder="LE" Size="8" SignBitLocation="63" ExponentB
its="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
            </AtomicType>
         </DataType>
         <Data>
            <DataFromFile>
            1.89704e-08
            </DataFromFile>
         </Data>
      </Attribute>
...

Is there a way to get XML output at full precision?

Thanks,
Dave

We just upgraded to hdf5 1.8.5, and I verified the problem still exists.

I will submit a bug report.

Dave

···

On Jul 1, 2010, at 11:22 AM, Dave Wade-Stein wrote:

It seems that when I use the h5dump -u to generate XML, it does not respect the -m option. To wit,

[dws@oxygen em]$ h5dump -m '%.14g' bathtubAntenna1s_YeeMagField_1.h5

...
     ATTRIBUTE "vsTime" {
        DATATYPE H5T_IEEE_F64LE
        DATASPACE SCALAR
        DATA {
        (0): 1.8970419951834e-08
        }
     }
...

[dws@oxygen em]$ h5dump -u -m '%.14g' bathtubAntenna1s_YeeMagField_1.h5|more
...
<Attribute Name="vsTime">
        <Dataspace>
           <ScalarDataspace />
        </Dataspace>
        <DataType>
           <AtomicType>
              <FloatType ByteOrder="LE" Size="8" SignBitLocation="63" ExponentB
its="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
           </AtomicType>
        </DataType>
        <Data>
           <DataFromFile>
           1.89704e-08
           </DataFromFile>
        </Data>
     </Attribute>
...

Is there a way to get XML output at full precision?

Thanks,
Dave
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Dave,

Thank you for reporting the problem.

I reproduced the same problem with hdf5 1.8.5. It is in our bug list.
We will take care of it accordingly.

Thanks
--pc

Dave Wade-Stein wrote:

···

We just upgraded to hdf5 1.8.5, and I verified the problem still exists.

I will submit a bug report.

Dave

On Jul 1, 2010, at 11:22 AM, Dave Wade-Stein wrote:

It seems that when I use the h5dump -u to generate XML, it does not respect the -m option. To wit,

[dws@oxygen em]$ h5dump -m '%.14g' bathtubAntenna1s_YeeMagField_1.h5

...
     ATTRIBUTE "vsTime" {
        DATATYPE H5T_IEEE_F64LE
        DATASPACE SCALAR
        DATA {
        (0): 1.8970419951834e-08
        }
     }
...

[dws@oxygen em]$ h5dump -u -m '%.14g' bathtubAntenna1s_YeeMagField_1.h5|more
...
<Attribute Name="vsTime">
        <Dataspace>
           <ScalarDataspace />
        </Dataspace>
        <DataType>
           <AtomicType>
              <FloatType ByteOrder="LE" Size="8" SignBitLocation="63" ExponentB
its="11" ExponentLocation="52" MantissaBits="52" MantissaLocation="0" />
           </AtomicType>
        </DataType>
        <Data>
           <DataFromFile>
           1.89704e-08
           </DataFromFile>
        </Data>
     </Attribute>
...

Is there a way to get XML output at full precision?

Thanks,
Dave
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
    
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org