Tip 1 for download WRF files to WestGrid computers at UBC.

WRF Model download info for UBC ATSC 507 NWP.
Created by Jesse Mason.  Jan 2013.

The unix commands we use are: 

Check your unix/linux manual for details.




1) Open up a terminal window in a mac or via something like PuTTY on a windows machine

2) ssh into your westgrid account on the computer named orcinus using your user name given to you when you received the account.  Namely,type:
ssh -Y username@orcinus.westgrid.ca
(the –Y option allows you to open gui windows such as EMACS for editing)

3) If this is your first log in it will ask you to accept Type:
yes


4) Supply your password that was given to when you created the west grid account. This will log you into your home directory (which has the same name as your username)

5) How you create your directories is up to you, but if we all have the same names it will be easier to follow along and de-bug

6) In your home directory create a directory called WRF.  To do this, type:
mkdir WRF

Caution: upper and lower case is significant in unix.  This will be the directory that holds the WRF model and its associated pre- and post-processors.
 
7) Change into this directory, by typing
cd WRF

8) Make a directory inside your WRF directly called packages. Namely, type:
mkdir packages


9) Outside of your terminal window, use a web browser (e.g., Chrome, Safari, FireFox, or etc.), and paste in the URL below. You can also get to this link from the WRF ARW tutorial.
http://www.mmm.ucar.edu/wrf/users/download/get_source.html

10) At the bottom of this web page are the links for New or Returning User. Click the appropriate link, and enter your full email address as your login. This will allow you to be able to download WRF software.
Note, for this course, we will download and install the software to allow us to initialize using real weather forecasts (using WPS), running WRF, and then also displaying the output. Details on doing this are given next.

11) After you are logged in to WRF, click the "click here" link to get to the actual download page.

12) We will use the newest version of WRF, which as of Jan 2013 is version 3.4.1. We will NOT open that link in the web browser. Instead, just copy the link address by right clicking the link "WRF model tar file (Version 3.4.1)"

13) Go back to your terminal window and confirm that you are still in the WRF directory. You can do this by typing pwd, or by looking at the prompt on your terminal window. If you are in the wrong directory, then change directories back into the WRF directory.

14) To download WRF from the address you copied, type:
wget (paste the link address here)

and hit enter, to download the wrf model into your WRF directory. 
 
15) The file will begin to download.  It might take a while for it to download.
 
16) Repeat this process for the same version of WPS, which is the pre-processor that allows you to initialize from real weather data.
Namely, go back to your web browser, and scroll further down the page until you find the section called
WRF Preprocessing System V3.4.1 (WPS, Released August 16, 2012)”.

Right click on WPS code tar file to copy the link address. Go back into your terminal window, and type
wget (paste your WPS web address here)

Again, it might take a while to download.
 
 17) When this is done, change to the "packages" directory by typing:
cd packages

18) From the same web page above, find the links (in fine print), labeled as JasPer . (It is located about halfway down the page under an older version (v3.3) of WPS.)
RIGHT click on this link to copy the link addresses for jasper-1.701.0 .
Then, back in your terminal window, type
wget (paste your link address here)
to download that file.


19) Repeat step 18 for the links  PNG  and zlib.  Namely, one at a time, copy the links for libpng-1.2.12 , zlib-1.2.3 and use wget to download them into your "packages" directory. 


20) On your web browser, go to the link below to get a netcdf library
http://www.unidata.ucar.edu/downloads/netcdf/netcdf-3_6_3/index.jsp
 
21) Right click to copy the link address for the top file:  netcdf-3.6.3.tar.gz 
Back in your terminal program, still in the "packages" directory, use wget to download that file.

Done...for now.