Skip to content

CivityNL/Snuffelfiets-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snuffelfiets-examples

Because of the amount of Snuffelfiets data which has been collected by now, downloading the entire dataset in one go is no longer feasible. The CKAN data store API though allows you to download chunks of Snuffelfiets data. This code snippet provides an example how this could be achieved. All Snuffelfiets measurements contain a recording_timestamp column which can be used for this purpose. This particular example will download Snuffelfiets data per hour and calculates summary statistics per hour using a pandas data frame. But other processes, for instance to save the data to local files, can be implemented in a similar fashion. What a suitable interval is to download data for depends on the amount of sensors collecting data using a particular resource. If the interval is too big, time outs may occur.

The Snuffelfiets data are available in different versions: unprocessed data, unprocessed calibrated data and processed data. This approach will work for all of them. Not all versions are publicly available though. If a version is not publicly available, an API key is required to be able to access the data. If you have an API key, it can be found in CKAN. Log in and click on your username in the top right corner of the screen. You can then find your API key on the left of the screen. To select the proper version, the identifier of the resource must be provided. This identifier can be found in CKAN as well, for instance in the address bar. Not all variants are publicly available.

About

Examples of accessing Snuffelfiets data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages