GithubHelp home page GithubHelp logo

smartmet-timezones's Introduction

SmartMet Server timezone files

The SmartMet server requires two separate time zone files: date_time_zonespec.csv needed by the Boost.Date_Time library and timezone.shz, a packed 1 km resolution version of timezone.shp to resolve the timezone for any coordinate.

Boost.Date_Time timezone database

The Boost.Date_Time timezone database does not support past timezones and hence needs to be regularly updated. To ease the maintenance of the database the smartmet-timezones package includes a Makefile and a Perl script which creates the database automatically from the system timezone database in /usr/share/zoneinfo.

The database is supported for as long as the SmartMet Server still uses Boost.Date_Time. However, we expect to switch to using https://github.com/HowardHinnant/date/ or the possible standardized version of it in the future.

Packed global timezone information

The shapefile included in the package is a merge of two different timezone shapes:

The SmartMet server does not use the shapefile directly. Instead, the shapepack program in https://github.com/fmidev/smartmet-shapetools is used to render the shapefile in roughly 1 kilometer accuracy. The raster image is then run length encoded one raster line at a time to provide fast access to the timezone for any coordinate.

The packed shape can be read and used with the WorldTimeZones class in https://github.com/fmidev/smartmet-library-macgyver. The class is used in the SmartMet Server by https://github.com/fmidev/smartmet-engine-geonames.

Image of world timezones rendered by QGis

smartmet-timezones's People

Contributors

mheiskan avatar apavenis avatar hpernu avatar mrauhala avatar tervo avatar

Stargazers

smargareto avatar

Watchers

James Cloos avatar Santeri Oksman avatar  avatar Ville Karppinen avatar Marko Pietarinen avatar  avatar  avatar Pertti K avatar Markku Koskela avatar Mikko Strahlendorff avatar Laila Daniel avatar Anssi Reponen avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.