Objective: Generate a DEM for
the Pacific Northwest using elevations from Agrimet Climate Stations
Data: Obtained from Agrimet web site. Actual data in html tabular format here.
Getting Data into Excel (yes, Excel!):
Converting dms to km:
Copy the latitude column over to column H (or thereabouts) Break the latitude out into 3 columns: Select the H column In the Data menu, choose 'text to columns' Click the delimited button and hit 'next' Check the space box and hit 'finish' Calculate decimal degrees in column K (or thereabouts) Click in cell K2 Enter the formula: =(((J2/60)+I2)/60)+H2 Copy the formula through row 55 Repeat for the longitude Copy and paste special as value the dd columns to a new worksheet (columns A and B) Convert to your favorite projection ;) Find central meridian and parallel Click in cell A57 Type =AVERAGE(A2:A55) Copy this to B57 for the average parallel In cell C1 type Earth's radius (km): In cell C2 type 6378.166 Put x coords in Cassini projection in Column E In cell E1 type x Click in Cell E2 Type: =$C$2*((A2-$A$57)*PI()/180) Copy this through cell E57 Put y coords in Cassini projection in Column F In cell F1 type y Click in cell F2 Type: =$C$2*((B3-$B$57)*PI()/180) Copy this through cell F57
Save the Cassini coordinates and
elevations in a nice pristine new spreadsheet
Get the data from the spreadsheet
into Splus
Surface Analysis on the Agrimet Data
The remainder of agri.ssc demonstrates
how to generate images, trend surfaces, variograms, and kriging models
for the elevation.
Back to Main G274 TA Page