Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created July 3, 2015 07:51
Show Gist options
  • Save chbatey/f24608e26085fe4f08fe to your computer and use it in GitHub Desktop.
Save chbatey/f24608e26085fe4f08fe to your computer and use it in GitHub Desktop.
KillrWeather Raw data
CREATE TABLE raw_weather_data (
wsid text, // Composite of Air Force Datsav3 station number and NCDC WBAN number
year int, // Year collected
month int, // Month collected
day int, // Day collected
hour int, // Hour collected
temperature double, // Air temperature (degrees Celsius)
dewpoint double, // Dew point temperature (degrees Celsius)
pressure double, // Sea level pressure (hectopascals)
wind_direction int, // Wind direction in degrees. 0-359
wind_speed double, // Wind speed (meters per second)
sky_condition int, // Total cloud cover (coded, see format documentation)
sky_condition_text text, // Non-coded sky conditions
one_hour_precip double, // One-hour accumulated liquid precipitation (millimeters)
six_hour_precip double, // Six-hour accumulated liquid precipitation (millimeters)
PRIMARY KEY ((wsid), year, month, day, hour)
) WITH CLUSTERING ORDER BY (year DESC, month DESC, day DESC, hour DESC);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment