Skip to content

Instantly share code, notes, and snippets.

@kwerle
Created June 20, 2016 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwerle/d3a9275655b34008d848231e7e0f9c40 to your computer and use it in GitHub Desktop.
Save kwerle/d3a9275655b34008d848231e7e0f9c40 to your computer and use it in GitHub Desktop.
ClimateDataIntervals: (self.w_ban_cell_hourlys.select_all.map do |hourly|
hash = {
Year: hourly.Year,
Month: hourly.Month,
Day: hourly.Day,
Hour: hourly.Hour,
GlobalHorizRad_WhPerMeterSquared: hourly.GlobalHorizRad,
DirectNormalRad_WhPerMeterSquared: hourly.DirectNormalRad,
DiffuseHorizRad_WhPerMeterSquared: hourly.DiffuseHorizRad,
DryBulbTemperature_C: (hourly.DryBulbTemperature / 10.0).to_f,
WindSpeed_mps: (hourly.WindSpeed / 10.0).to_f,
ObservationDateTimeUTC: hourly.ObservationDateTimeUtc,
}
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment