Jump to content
GMS, SMS, and WMS User Forum

import GRIB or netCDF file into SMS


pchadin
 Share

Recommended Posts

Hi,

I'm not familiar with either of these formats and I'm not sure the best way to get them into SMS. However, if you could let us know where you get this type of data and send us some sample files we could give you some ideas.

Does anybody know how to import the GRIB or netCDF file in to SMS?

I would like to import wind data from GRIB or netCDF file into SMS.

If we've to convert GRIB or netCDF to ASCII before, please let me know how to do it as well.

Thank you in advanc.

Link to comment
Share on other sites

Does anybody know how to import the GRIB or netCDF file in to SMS?

I would like to import wind data from GRIB or netCDF file into SMS.

If we've to convert GRIB or netCDF to ASCII before, please let me know how to do it as well.

Thank you in advanc.

I've converted wind files in netcdf to ASCII text format for ADCIRC forcing using Matlab (the free 'octave' which is very similar may also be capable of doing this). You can also convert using the 'ncdump' command that is packaged with netcdf.

For GRIB files you can use the 'wgrib' utility to convert to text. If you are lucky your data will be in the much more friendly GRIB v2, which you can use 'wgrib2' with.

Rusty I would recommend looking at incorporating functionality to read netcdf into SMS: this is a standard file format used by meteorological agencies around the world to store atmospheric data, which can be used to drive the models that SMS supports (e.g. ADCIRC).

Link to comment
Share on other sites

Thank you for all reply.

Now i'm use the IDV program to convert netCDF to excel file.

My next question is,

how to import the excel file or text file to ADCIRC while the wind data still be an interval data?

I'm try import but can't import as interval data.

it come in as scala data.

i've attached the wind data file(U direction) for your information.

sample1222.txt

Link to comment
Share on other sites

Thank you for all reply.

Now i'm use the IDV program to convert netCDF to excel file.

My next question is,

how to import the excel file or text file to ADCIRC while the wind data still be an interval data?

I'm try import but can't import as interval data.

it come in as scala data.

i've attached the wind data file(U direction) for your information.

more info

what i have done is

first, i'm try import wind U and V data as scatter set.

next, i interpolate them to Mesh.

next, i convert scatter to vector.

finally i have several vector. (number of vector equal to number of time step specified in my attached file)

what i need is one vector with time step within.

Link to comment
Share on other sites

As far as I know for ADCIRC you have to create your wind file in the appropriate format outside of SMS (e.g. by rearranging your data inside excel), and then you specify which format this is in the model control->wind tab. The specifications of the formats for input wind files is given in the ADCIRC user manual, and can be found at:

http://www.adcirc.org/documentv48/Input_file_descriptions.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...