close all
clear all

stn = {'QHW','KLGU','QLN','KVEL','KSLC',};

for i = 1:length(stn)

disp(stn(i))
    
urlwrite(char(strcat('http://api.mesowest.net/v2/stations/', ...
   'timeseries?stid=',stn(i),'&start=201101010000&end=201101120000', ...
   '&vars=air_temp,wind_speed,wind_direction', ...
   '&token=1234567890&output=csv')),char(strcat('jan2011_',stn(i),'.csv')));

end