Giter Club home page Giter Club logo

atdatabase's People

Contributors

jspijker avatar

Watchers

 avatar  avatar  avatar  avatar

atdatabase's Issues

What should happen if data is not available?

If data is requested but the API call results in a empty data set then what should we do? Know this situation is just ignored and NULL is returned, see:

v2 <- NULL

However, the cache table is not updated and the sensor/range can be requested again and again (which takes time). What if the requested data is simply not available? And what if an empty data set is returned due to a hiccup of the API (and, in theory, can be retrieved later)?

tips&tops vignette ATdatabase

@jspijker , Nice and clear vignette. Here some suggestions

  • Add an extra column to each table (in the explanation) to mention the format. You can read it now in the text, to be extra clear place it in the table, too.

  • We discussed about the name of the station table, to rename it to location table. At some points in the text the name ' station table' is still used. (In the text in paragraph: Downloading and storing sensor info)

  • For the lat, lon and the end, start time, are that separated columns in the database table, or are those lists-like?

  • How to get the meta data from your download stored? The download_data function only takes the measurements. The same question for the location table.

  • Minor detail there are some typos

aggregation level measurements

In the explanation of the tables, there is said that for the measurements table, only 1 aggregation level per station/parameter is allowed. Why is that?

For the station table, I assume that the " timestamp" in this table is in seconds, too?

Add a download id and timestamp

To keep the caching size manageable, a last in, first out policy can be applied. After a certain time span data will be removed from the cache. But how to track when data was downloaded. Maybe attach a UUID and timestamp to each download?

insert_location_info results in duplicate locations

Every time this function is used, new locations are stored. Even in these locations already exist. Create a check if a new location already exists, based on coordinates, and only add new location (with timestamp) if coordinates differ (i.e. the station has moved). If the coordinates are the same, only update the timestamp.

How is the timezone in timestamp set?

I see the timestamps saved as integer in seconds,

What about the information of the timezone?

Is assumed the timezone is UTC?

So you can use lubridate::as_datetime(timestamp) to transform the timestamp to a date?

Add sample data

Current sample set is relatively large and not added into repo. Create new, smaller set. Set is needed to build vignette.

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.