* Update...The National Oceanic and Atmospheric Administration (NOAA) has forecast data available on a Microsoft Public Blob...; * Download a specific date and forecast from the Windows DOS CMD line (or Linux); * Windows azcopy example... * azcopy cp "https://noaahrrr.blob.core.windows.net/hrrr/hrrr.20210601/conus/hrrr.t12z.wrfsfcf00.grib2" "C:\YOURFOLDER\conus.grib2"; * or Windows curl... * curl https://noaahrrr.blob.core.windows.net/hrrr/hrrr.20210601/conus/hrrr.t12z.wrfsfcf00.grib2 --output "C:\YOURFOLDER\conus.grib2"; * But this is a "grib2" file, so you also need to install the wgrib2.exe application from NOAA to parse it... * Get a copy of wgrib2.exe (Linux version also available) from NOAA to parse the binary weather file; * Use the NOAA link below to install wgrib2.exe in DOS; * NOAA link to wgrib2.exe install...https://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/Windows10/v3.0.2/; * You can parse-out your local data and overlay on a city map. Here's how...; * wgrib2 C:\YOURFOLDER\conus.grib2 -set_grib_type j -small_grib -98.2:-97.35 29.95:30.78 C:\YOURFOLDER\austin.grib2; * Convert the filtered grib2 file to .csv... * wgrib2 "C:\YOURFOLDER\austin.grib2" -csv "C:\YOURFOLDER\austin.csv"; * Now import the file into SAS...; data WORK.austin; infile 'C:\YOURFOLDER\austin.csv' dsd truncover ; length COL1 $30. COL2 $30. COL3 $30. COL4 $30. COL5 $30. COL6 $30. COL7 $30.; input COL1 -- COL7 ; run; * Assign an ID to each coordinate; data have (KEEP = ID lat long Weather Value); set WORK.austin; format ID 10. lat long best20.; ID = _N_; lat = COL6; long = COL5; Weather = COL3; Value = COL7; run; * Convert weather coodinates to Texas planer XY coordinates; proc gproject latlon project=proj4 to="ESRI:102739" data=have out=want; id ID; run; * Now you have the lat, long, X and Y projection, and weather forecast parameters for a grid of locations over your city - pretty cool, huh?
... View more