The below code demonstrates how I'm currently screen scraping data from NDBC using a station and attribute input file
, perl's lwp package
for retrieving http content and netCDF templates
which I substitute the data screen scraped into via macro substitution and generate the new netCDF file.
Adding other variables is a matter of adding the pattern to search for on the screen match and providing the variable definition and macros on the netCDF template.
- 11 Apr 2005