Giter Site home page Giter Site logo

Comments (4)

gutzbenj avatar gutzbenj commented on May 31, 2024

As already suggested, I'd like to implement a reshape of the data according to [1]. This would simplify filtering as well as aggregating (especially also over time ranges like days, weeks etc). In order for it to work in the client version I guess only minimal changes have to be applied.

[1] https://vita.had.co.nz/papers/tidy-data.pdf

from wetterdienst.

gutzbenj avatar gutzbenj commented on May 31, 2024

With #118 we will now be able to extend the DWDStationRequest with further parameters, as the resulting columns will always be the same and we can simply extend the DataFrame with other parameters. In opposition to the result you were suggesting I'd rather prefer something like:

{
    "meta" : {
        "station_id": 2667,
        "datetime": 2020060115,
    },
    "data" : {
        "air_temperature": {
            "air_temperature_200": {
                "value": 27.0,
                "quality": 1
            },
        },
        "more_precip": {
            "relative_humidity_200": {
                "value": 26.0,
                "quality": 1
            },
            "precipitation_fallen": {
                "value": 0,
                "quality": 1
            },
            "precipitation_form": {
                "value": null,
                "quality": 1
            },
            "precipitation_height": {
                "value": 0.0,
                "quality": 1
            },
        },
        "pressure": {
            "pressure_msl": {
                "value": 1019.0,
                "quality": 1
            },
            "pressure_station": {
                "value": 1007.6,
                "quality": 1
            }
        }
    }
}

Ofcourse this is not as tiny and compact as you suggested, but this is more clear concerning the included parameters and the qualities of every value which otherwise would have to be interpreted by the user for cases where there are two qualities.

from wetterdienst.

gutzbenj avatar gutzbenj commented on May 31, 2024

I realized we may as well include additional station information to create an almost complete set.

from wetterdienst.

gutzbenj avatar gutzbenj commented on May 31, 2024

#121 added the option to request multiple parameters. The data will still be combined per station.

from wetterdienst.

Related Issues (20)

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.