Concatenating multiple grb files
Posted: Mon Nov 08, 2010 8:32 pm
You can get archived forecast data from:
http://nomads.ncdc.noaa.gov
Generally you'll get multiple files for each model run or forecast hour for a particular model run. These files can be concatenated and make displaying data much easier. For example, I had the following files:
nam_218_20101026_0000_000.grb nam_218_20101026_0000_024.grb nam_218_20101026_0000_048.grb nam_218_20101026_0000_072.grb
nam_218_20101026_0000_003.grb nam_218_20101026_0000_027.grb nam_218_20101026_0000_051.grb nam_218_20101026_0000_075.grb
nam_218_20101026_0000_006.grb nam_218_20101026_0000_030.grb nam_218_20101026_0000_054.grb nam_218_20101026_0000_078.grb
nam_218_20101026_0000_009.grb nam_218_20101026_0000_033.grb nam_218_20101026_0000_057.grb nam_218_20101026_0000_081.grb
nam_218_20101026_0000_012.grb nam_218_20101026_0000_036.grb nam_218_20101026_0000_060.grb nam_218_20101026_0000_084.grb
nam_218_20101026_0000_015.grb nam_218_20101026_0000_039.grb nam_218_20101026_0000_063.grb
nam_218_20101026_0000_018.grb nam_218_20101026_0000_042.grb nam_218_20101026_0000_066.grb
nam_218_20101026_0000_021.grb nam_218_20101026_0000_045.grb nam_218_20101026_0000_069.grb
Running the following command created on grb file that had all the forecast hours contained with in one file:
cat nam*.grb > NAM-26-Oct-2010-00Z.grb
http://nomads.ncdc.noaa.gov
Generally you'll get multiple files for each model run or forecast hour for a particular model run. These files can be concatenated and make displaying data much easier. For example, I had the following files:
nam_218_20101026_0000_000.grb nam_218_20101026_0000_024.grb nam_218_20101026_0000_048.grb nam_218_20101026_0000_072.grb
nam_218_20101026_0000_003.grb nam_218_20101026_0000_027.grb nam_218_20101026_0000_051.grb nam_218_20101026_0000_075.grb
nam_218_20101026_0000_006.grb nam_218_20101026_0000_030.grb nam_218_20101026_0000_054.grb nam_218_20101026_0000_078.grb
nam_218_20101026_0000_009.grb nam_218_20101026_0000_033.grb nam_218_20101026_0000_057.grb nam_218_20101026_0000_081.grb
nam_218_20101026_0000_012.grb nam_218_20101026_0000_036.grb nam_218_20101026_0000_060.grb nam_218_20101026_0000_084.grb
nam_218_20101026_0000_015.grb nam_218_20101026_0000_039.grb nam_218_20101026_0000_063.grb
nam_218_20101026_0000_018.grb nam_218_20101026_0000_042.grb nam_218_20101026_0000_066.grb
nam_218_20101026_0000_021.grb nam_218_20101026_0000_045.grb nam_218_20101026_0000_069.grb
Running the following command created on grb file that had all the forecast hours contained with in one file:
cat nam*.grb > NAM-26-Oct-2010-00Z.grb