ConvertToHDF5

MOHID GIS general discussion forum
ssli@tju.edu.cn
MOHID User
Posts: 41
Joined: Thu Jan 01, 1970 00:00

ConvertToHDF5

Postby ssli@tju.edu.cn » Wed Apr 09, 2008 03:35

Hi!

I have a file about the wave period and height.I need a wave.hdf file.And I want to convert the HDF5file by the ConvertToHDF5.exe.Could you please show me the inputfile format to convert a HDF5 file.

Thanks a lot.

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Mon Apr 14, 2008 09:31

Hi,

In which format is your file? The ConvertToHDF5 tool is only capable of converting files from some models or databases.
If you have your own specific format you have to program the conversion yourself.
Best regards,
Luis

ssli@tju.edu.cn
MOHID User
Posts: 41
Joined: Thu Jan 01, 1970 00:00

Postby ssli@tju.edu.cn » Fri Apr 25, 2008 07:32

Hi Luis,

Thanks so much for your reply.My format is just an ASCII file.Could you give me the models and I could chang my format to suit to the conditions.And may I add the wave height,period and direction data to the wave module file according the grid order directly?Is that doable?

Thanks.

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Mon May 26, 2008 14:42

Hi,

I'm not sure if I understood, but I guess in the end you want a source code sample to write a hdf5 file with the wave model results, is it?
Let me know. Also should I send it to this e-mail address?
Cheers,
Luis

liegefkw@gmail.com
MOHID Beginner
Posts: 4
Joined: Thu Jan 01, 1970 00:00

Re: ConvertToHDF5

Postby liegefkw@gmail.com » Wed Jan 18, 2012 23:48

Hi Luis,
I am in the same situation. I need to convert an ASCII file from REF-DIF model to HDF5.
Could you send me an example of file setup to input in ConvertToHDF5.exe?
Thanks a lot
Liége

luis_at_mohid.com
MOHID Developer
Posts: 553
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Técnico - Technical University of Lisbon
Contact:

Re: ConvertToHDF5

Postby luis_at_mohid.com » Tue Jan 31, 2012 13:44

Hi Liége,

To convert from REF-DIF to hdf5 you cannot use the ConvertToHDF5 program because it is not prepared to convert REF-DIF outputs.
I recommend that you take a look at ConvertToHDF5 source code at http://mohid.codeplex.com/ and see if you can adapt some of the code to read, convert and write the REFDIF outputs in hdf5 compliant with MOHID rules.

Best regards,
Luis

liegefkw@gmail.com
MOHID Beginner
Posts: 4
Joined: Thu Jan 01, 1970 00:00

Re: ConvertToHDF5

Postby liegefkw@gmail.com » Sun Feb 05, 2012 14:41

Hi Luis,
thank you for you answer.
I will see the code and try to adapt it.
Liége


Return to “MOHID GIS (discontinued)”

Who is online

Users browsing this forum: No registered users and 1 guest