Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic update of MassBalance and LengthChange data for EKK portal #7

Open
yweidmann opened this issue Dec 10, 2018 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@yweidmann
Copy link
Contributor

The length-change and mass-balance data of the 7 representative glaciers shown on the website of the Cryospheric Commission (CC) (e.g. https://naturwissenschaften.ch/topics/snow-glaciers-permafrost/glaciers/length_variation ) have to be updated automatically during inserting new data into the GLAMOS main tables.

The data used by the CC are stored in the table cryospheric_commission.data2d. A detailed description of the tables can be found here.

The INSERT of the new records into cryospheric_commission.data2d could be solved by adding trigger functions to the tables length_change.length_change_data and mass_balance.mass_balance.

@yweidmann yweidmann added the enhancement New feature or request label Dec 10, 2018
yweidmann added a commit that referenced this issue Dec 14, 2018
Instead of storing the values for cumulative length changes, the values are getting calculated in the view ekk_lengthchange_cumulative and later as union with data2d.
The INSERT script of the cumulative length change data got deleted (not used anymore).
addresses issue #7 .
@yweidmann
Copy link
Contributor Author

Establishing of an INSERT-Trigger on table length_change.length_change_data.
The trigger will check and insert new length-change data into the table cryospheric_commission.data2d.

Requirements:

  • Check if data already in table data2d. INSERT if not existing, UPDATE if existing but different, nothing if identical.
  • Perhaps additional table to store the required glaciers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant