Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Neal Caren <neal.caren@unc.edu> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: RE: Weathr package on SSC |
Date | Fri, 4 Feb 2011 15:40:38 -0500 |
It's not automated, but Weather Underground has a Weather History site (http://www.wunderground.com/history/) that includes the recent past, including temperature and precipitation. The format is pretty accessible for scraping weather information into a data set once you have the html page. Getting to the correct page on Weather Underground in an automated fashion is a little tricky and involves a redirect, so you would want to call a program like cURL (curl.haxx.se) or Wget (www.gnu.org/software/wget/) instead of employing Stata's copy. Neal On Fri, Feb 4, 2011 at 1:42 PM, Buzz Burhans <buzzb3@earthlink.net> wrote: > This is interesting. Neal, do you know of any way to do a similar automated > retrieval of the weather data for the previous 24 hours instead of the > forecast, i.e. temperature min, max and mean and perhaps the precipitation > amount? > > Buzz > > > Buzz Burhans, Ph.D. > > Dairy-Tech Group > So. Albany, VT / Twin Falls ID > > Cell: 208-320-0829 > ID Fax: 208-735-1289 > VT Fax: 802-755-6842 > > Email: buzzb3@earthlink.net > From: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Neal Caren > Sent: Friday, February 04, 2011 8:44 AM > To: statalist@hsphsun2.harvard.edu > Subject: st: Weathr package on SSC > > Dear Statalist Members, > > Thanks to Kit Baum, a new Stata package -weathr- is now available for > download from SSC: > > . ssc install weathr > or > . findit weathr > > Weathr (note the missing second "e") retrieves the current weather > conditions and the forecast for the next 36 hours from Yahoo! Weather > for one or more US zip codes. It requires a connection to the > internet. For example: > > . weathr 27599 > > Chapel Hill, NC at 10:15 am EST > Light Rain, 34 F. Forecast: Fri-Rain. High: 38 Low: 35. Sat-AM > Showers. High: 53 Low: 28. > > > > > Thanks, > Neal > > -- > Neal Caren > Assistant Professor > Department of Sociology > University of North Carolina at Chapel Hill > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > ________________________________________ > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1204 / Virus Database: 1435/3421 - Release Date: 02/03/11 > > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > -- Neal Caren Assistant Professor, Department of Sociology Book Review Editor, Social Forces * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/