Last active
September 10, 2015 14:26
-
-
Save chbatey/bd36ef3ffc71031513e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
name text, // Name of reporting station | |
country_code text, // 2 letter ISO Country ID | |
state_code text, // 2 letter state code for US stations | |
call_sign text, // International station call sign | |
lat double, // Latitude in decimal degrees | |
long double, // Longitude in decimal degrees | |
elevation double, // Elevation in meters | |
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