dates = datetime(2008,1,1):calmonths(1):datetime(2009,6,1);
for k = 1:length(dates)
    fname = [datestr(dates(k),'yyyymmdd') 'pal_csv.zip'];
    url = ['http://mis.nyiso.com/public/csv/pal/' fname];
    destination = ['testdata/' datestr(dates(k),'yyyymmdd') 'pal_csv.zip'] ;
    websave(destination,url);
    
end

%% uzip the zip files
!unzip 'testdata/*.zip' -d testdata

%% read them in 
