{"push_id":596272185,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"9c5152d0b69fce8c5a1c99212ed2ce47525fd58c","before":"62421d9c6249bb63f73bf23a04fbacb08a693e8e","commits":[{"sha":"9c5152d0b69fce8c5a1c99212ed2ce47525fd58c","author":{"email":"d59f7d157dc6224675261a87452ac7a3719980cf@gmail.com","name":"Albert Decatur"},"message":"include saffir-simpson 0\n$ out=/tmp/hurdat2.csv; inhurdat=hurdat2-1851-2014-022315.txt; superheader=$(echo -e \"id\\tname\\tyear\\tmonth\\tday\\thour\\tminute\\tlat\\tlon\\tmax_sustained_wind_kts\\tsshws\"); echo \"$superheader\" > $out; subset=$( cat $inhurdat | grep -vE \"^[A-Z]\" | awk '{yr=substr($0,1,4);mon=substr($0,5,2);day=substr($0,7,2);hr=substr($0,11,2);min=substr($0,13,2);lat=substr($0,24,5);if(lat ~ /[N|E]$/)lat=lat*1; else if(lat ~ /[S|W]$/)lat=lat*-1;lon=substr($0,31,6);if(lon ~ /[N|E]$/)lon=lon*1; else if(lon ~ /[S|W]$/)lon=lon*-1;maxwind=substr($0,39,3);print yr,mon,day,hr,min,lat,lon,maxwind}' ); pre_headers=$( cat $inhurdat | sed 's:^[^A-Z].*::g' | grep -vE \"^$\"); headers=$( echo \"$pre_headers\" |parallel -k --gnu --colsep ',' 'yes {1}\" \"{2} | head -n {3}' ); paste --delimiters=\" \" <( echo \"$headers\" ) <( echo \"$subset\" ) | awk '{if($10 < 64)sshws=0; else if($10 >= 64 && $10 <= 82)sshws=1; else if($10 >= 83 && $10 <= 95)sshws=2;else if($10 >= 96 && $10 <= 112)sshws=3;else if($10 >= 113 && $10 <= 136)sshws=4;else if($10 >= 137)sshws=5;print $0,sshws}' | sed \"s:\\s\\+:\\t:g\" >> $out","distinct":true,"url":"https://api.github.com/repos/albert-decatur/modis-util/commits/9c5152d0b69fce8c5a1c99212ed2ce47525fd58c"}]}