You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In revision 2914c6c8a7f9, we drop table meta_climo_attrs because it is not in use and, when used, will likely be replaced by differently defined table(s). In this issue, we record information and discussions that will help when climatological attributes table(s) are recreated.
through obs_raw_id can link back to all of the station and variable meta data associated with the climatology, so that kills vars_id, station_id, month and normal period as all of that can be backed out from the obs_raw entry. Adjusted needs to stay (ideally the three stations that were used to adjust would be stored in additional columns, but we'll ignore that now). Two nyears entries are needed because a user should be able to differentiate between climatologies based on data that's within the climate normal period and those based on data outside that range. Adjusted meets that need, but doesn't tell us how long the records are that feed into the climo. With that information wmo_code can also be dropped.
I can envision a programmatic use case for it. E.g. a filter on the PCDS portal where you can select stations based on their quality. "Give me only the A rated stations". "Give me stations that are >= C rating", etc. There's currently no process available that actually updates (or calculates) those ratings, so it's an unimplemented feature at this point.
The redesigned table above may be better implemented as 2 tables:
a table, call it climo_attrs, with columns adjusted, nyears_total, nyears_within_norm and an id column
an association table containing columns climo_attrs_id and obs_raw_id, call it obs_raw_climo_attrs
This functions very much like the existing flags tables, and eliminates data duplication if many observations share the same climatological attributes. (If they don't, then this 2-table design has no utility.)
The text was updated successfully, but these errors were encountered:
In revision
2914c6c8a7f9
, we drop tablemeta_climo_attrs
because it is not in use and, when used, will likely be replaced by differently defined table(s). In this issue, we record information and discussions that will help when climatological attributes table(s) are recreated.The original table is created in the upgrade for revision
522eed334c85
. It is also preserved in the downgrade for revision2914c6c8a7f9
.The corresponding definition in the ORM (now removed along with the table) is:
Discussions with @faronium included the following information:
@jameshiebert also commented:
@rod-glover also remarks
The text was updated successfully, but these errors were encountered: