Obtain NAM Winds for ADCIRC
Special thanks to Shoshi Reich for providing the scripts to convert from grb to fort.22 format.
The North American Mesoscale (NAM) Forecast System is a regional weather model used to predict weather conditions across North America. It provides detailed forecasts for various weather parameters, including wind speed and direction, at different horizontal resolutions. The NAM model is particularly useful for short-range weather predictions, typically covering a period from 12 to 72 hours12.
This is a short tutorial on the best way to obtain NAM data and convert it into a format ADCIRC can ingest.
Instructions
Obtaining the data
Determine what kind of product you need, future (NAM Forecasts) or historical (NAM reanalysis) wind data
Option 1: Downloading via batch. This is probably the easiest path for most people.
Under ‘Data Access Links’ select ‘AIRS’. You should see the following portal:
Select the sampling frequency under 'Select UTC Cycle (Hour). There is 6,12, and 18 hourly options. Also select the start and end time.
The data is given in a time interval. Select ‘Yes’ under ‘Submit Batch’ if you want all the data for the entire time interval, otherwise you can select specific timestamps in the next screen.
Enter your email address and ‘Proceed with Order’. You should receive an email that looks like:
The ‘Web Download’ link will take you to an archive with your files. You can use these links as a target for wget on TACC systems to download the tar files directly to TACC. Alternatively, you can use the ‘FTP (File Transfer Protocol) Download’ link if you want to get fancy.
Converting data to ADCIRC format
Convert GRB files to NetCDF:
Decompress the tar files. You will get a kajillion grb2 files.
Ensure the
netcdf,nco, andncl_ncargmodules are loaded.Convert the files with the command:
ncl_convert2nc *.grb
Process NetCDF files:
You should now have a bunch of
nam_*.ncfiles.Use the script to:
Select the wind and pressure fields from all the NetCDF files.
Combine all the files into one NetCDF file called
10m_uvp_all.nc.
Create ADCIRC input files:
Use the
10m_uvp_all.ncfile to create thefort.221andfort.223input files for ADCIRC:Use for
fort.221.Use for
fort.223.
Ensure to change the start date in the variable
tbeg(on line 69).