Convert SWAN outputs in HDF5 files

Discussion around MOHID GUI (managing projects, simulations, etc)
loterodiaz@hotmail.com
MOHID Beginner
Posts: 2
Joined: Thu Jan 01, 1970 00:00

Convert SWAN outputs in HDF5 files

Postby loterodiaz@hotmail.com » Mon Nov 29, 2010 21:38

Hi
I have read several posts on the MOHID forum and the information available in the manuals of MOHID and wiki web site, but have not found a clear explanation of how to convert the SWAN model outputs in HDF5 files to be read by MOHID. So far I've done several runs of MOHID initializing it with an output of SWAN but in ASCII format, which gives a good result. Now I would like to make a run where the wave fields vary in time, but are required to be in HDF5 format. Then:

1. Could you please put an example of how the ConvertToHDF5Action.dat file have to be wrote to convert model outputs SWAN into HDF5 files?.

2. Can you convert outputs in .mat format from SWAN to HDF5?. How will be it done?

3. How must to be configured .mat outputs SWAN to be read by the program ConvertToHDF5.exe?.

4. If it does not possible using .mat outputs, what should be the format of the SWAN model output for the proper functioning of the program ConvertToHDF5.exe?.

Thanks in advanced

Sincerely,


Luis Otero

joao_ribeiro@sapo.pt
MOHID Beginner
Posts: 2
Joined: Thu Jan 01, 1970 00:00

Re: Convert SWAN outputs in HDF5 files

Postby joao_ribeiro@sapo.pt » Tue Dec 13, 2011 10:06

Hi Luis

About your questions:

1. Could you please put an example of how the ConvertToHDF5Action.dat file have to be wrote to convert model outputs SWAN into HDF5 files?.

<begin_file>
ACTION : CONVERT TO AND FROM SWAN
OUTPUTFILENAME : 20110404.000000.hdf5
INPUT_GRID_FILENAME : ../batim/mohid/BatimSO.dat
<<beginproperty>>
Gradient of radiation stresses X
Gradient of radiation stresses Y
Mean absolute wave period (TM01)
Mean Wave direction
Signicant wave height
Signicant wave height low frequency part
wind velocity X
wind velocity Y
<<endproperty>>
<<beginunits>>
Pa
Pa
s
º
m
m
m/s
m/s
<<endunits>>
<<begindate>>
2011 4 4 0 0 0
<<enddate>>
<<beginfield>>
20110404.000000.tbl
<<endfield>>

<<beginconvert>>
NAME : Mean Wave direction
CONVERSION : 1
<<endconvert>>


<end_file>



2. Can you convert outputs in .mat format from SWAN to HDF5?. How will be it done?

Yes, but you will have to use matlab to generate the hdf5 file in mohid format.

3. How must to be configured .mat outputs SWAN to be read by the program ConvertToHDF5.exe?.

At this point this isn't possible, only table outputs without heather.

4. If it does not possible using .mat outputs, what should be the format of the SWAN model output for the proper functioning of the program ConvertToHDF5.exe?.

For the convertion you will need to use the table format output.

Best regards
João Ribeiro


Return to “MOHID GUI (discontinued)”

Who is online

Users browsing this forum: No registered users and 1 guest