units with hdf5

BRISSET, Nicolas nicolas.brisset at airbus.com
Mon Sep 23 06:01:16 BST 2019


Hi Manuel,

After quickly checking the code at https://github.com/Kst-plot/kst/blob/master/src/datasources/hdf5/hdf5.cpp I would say that meta data attached to the vectors in HDF5 are not read in, that is why you don't see them.
If you look at the method starting at line 222 of https://github.com/Kst-plot/kst/blob/master/src/datasources/netcdf/netcdfsource.cpp you should be able to understand the difference.

As I'm not the author of the HDF5 datasource, and the code is not trivial, I may be wrong but that's quite probable. Note that since netCDF moved to HDF5 as backend a few months ago, if the netCDF library is properly compiled it may be able to open the HDF5 files. That's what I had hoped anyway, but never really got around to going the complete way. And now there's also a HDF5 source of its own, which is probably cleaner.

Best regards,

Nicolas 

-----Message d'origine-----
De : Manuel Ilg [mailto:manuel.ilg at aisec.fraunhofer.de] 
Envoyé : mardi 17 septembre 2019 11:51
À : BRISSET, Nicolas <nicolas.brisset at airbus.com>
Objet : Re: units with hdf5

Hi Nicolas,

i added a screenshot and the hdf5 file i'm using to the mail.

Greetings,
Manuel

On 17.09.19 11:31, BRISSET, Nicolas wrote:
> Hi Manuel,
>
> Units should be picked up automatically, based on the attribute name... What is the name of the attribute containing the units in your case?
>
> Nicolas
>
> -----Message d'origine-----
> De : Kst [mailto:kst-bounces at kde.org] De la part de Manuel Ilg Envoyé 
> : mardi 17 septembre 2019 11:27 À : kst at kde.org Objet : units with 
> hdf5
>
> Hi,
>
> is it possible to automatically add the units, which are given as attributes in a hdf5 datasets, to the plot?
> Just like shown for netcdf in the video tutorial #7:
> https://youtu.be/mgP24MryyKw?t=237
>
> Greetings,
>
> Manuel
>
> The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
> If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
> All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.


More information about the Kst mailing list