Convert .netcdf to hdf5

General Announcements (New Downloads, etc)
tifo27@hotmail.com
MOHID Beginner
Posts: 5
Joined: Thu Jan 01, 1970 00:00

Convert .netcdf to hdf5

Postby tifo27@hotmail.com » Tue Apr 14, 2009 16:30

Hello,
I am a beginner in MOHID but the thing I'm trying to do is to convert a .nc file to a .hdf5 file to run it with Mohid Post Processor.
I downloaded the convertToHDF5.zip from MOHID website but I don't manage to obtain my file converted in .hdf5
The only thing I managed to do, is to convert my .nc file into .hdf.

So I need some help, please

Thank you very much, Regards.

acanas.maretec@taguspark.pt
MOHID Advanced user
Posts: 103
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Técnico - Technical University of Lisbon

Re: Convert .netcdf to hdf5

Postby acanas.maretec@taguspark.pt » Wed Apr 15, 2009 17:44

Hi,

ConvertToHDF5 is able to convert files in .nc to .hdf5 for specific .nc formats.
In the wiki website (http://www.mohid.com/wiki/index.php?title=ConvertToHDF5) there is a description of the .nc formats the tool can convert.

Do the .nc format of your file is contemplated in the formats referred in the wiki?

Best regards,

Angela

tifo27@hotmail.com
MOHID Beginner
Posts: 5
Joined: Thu Jan 01, 1970 00:00

Re: Convert .netcdf to hdf5

Postby tifo27@hotmail.com » Mon Apr 27, 2009 10:47

Hello and thank you for your answer,
(I was on vacation that's why I didn't answer before today)

I looked at the wiki website to see how convertToHDF5 works.
Concerning my .nc file I don't know its format (we gave me it without any information) but I will try to have more informations about it.
But in the case I find nothing or if it's not in a referred format, is there something I can do?? (Maybe creating my own code derived from the existing)
Thanks for your help

Best regards,

Florian

acanas.maretec@taguspark.pt
MOHID Advanced user
Posts: 103
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Técnico - Technical University of Lisbon

Postby acanas.maretec@taguspark.pt » Wed May 06, 2009 12:43

Hi Florian,

You can make a code for converting your file to HDF5 format supported by MOHID.
You can check the format in any MOHID Water simulation result file or in the wiki (http://www.mohid.com/wiki/index.php?title=HDF_file).

Best regards,

Angela

tifo27@hotmail.com
MOHID Beginner
Posts: 5
Joined: Thu Jan 01, 1970 00:00

Postby tifo27@hotmail.com » Wed May 06, 2009 15:26

Hi Angela,

Thank you for the link as I haven't seen this page in the mohid wiki.

So I will try to make a code to have something like convertToHDF5 but for my netCDF format.
It will be difficult but I will try.

Best regards,

Florian

utong80@gmail.com
MOHID Beginner
Posts: 17
Joined: Thu Jan 01, 1970 00:00

Re: Convert .netcdf to hdf5

Postby utong80@gmail.com » Wed Nov 30, 2011 02:58

Hi MOHIDers,

I am trying to convert wind data file from ECMWF in a NetCDF format to HDF5 to be used as wind forcing for hydrodynamic simulation.
I follow the instruction from MOHID wiki for converting .nc data in ERA40 format to HDF5 and the the ConvertToHDF5Action.dat look like this:
---------------------------------------------------------------------------------------------------
<begin_file>
ACTION : CONVERT ERA40 FORMAT

FILENAME : \Wind\output.nc
OUTPUTFILENAME : \Wind\wetwind.hdf5

CONVERT_TO_ASCII : 1
CONVERT_TO_HDF5 : 1
GRIDTO180 : 0

XX_VARIABLE : longitude
YY_VARIABLE : latitude
TIME_VARIABLE : time

<end_file>
--------------------------------------------------------------------------

However I got this error message : ReadOption - ConvertToHDF5 - ERR09

Could someone help me find the right direction..
Many thanks in advance.

Regards,
utong


Return to “MOHID General”

Who is online

Users browsing this forum: No registered users and 1 guest