Updating station information in Oracle #7
Replies: 5 comments 6 replies
-
An idea we talked about on 10/4 is including an extra field to this table called something like "STRS_DESIGN" filled with maybe the year the stations were created. So for the historical stations, that field would be filled with 1982 (whenever the stations were created). The records for the new stations are then appended (or row binded) to this table and values for that field would be 2023 (and so on when further modifying strata boundaries). When querying stations, you can then use that field to subset for the old design or the 2023 design. You could then have a separate table with columns YEAR AND STRS_DESIGN to denote which years use which STRS design when estimating biomass. Adding an additional field like this maintains the "long" format of the table which is good practice. The stratum names for the new-design stations could also be preceded with "2023_stratumID" to further denote the change in design. |
Beta Was this translation helpful? Give feedback.
-
(from discussion on 10/7/22): Grid cell ID will remain the same; in most cases we will be combining stations. Maybe make second station table with Zack stratification (but don't call it that) and pull out of old table. Centers will be the same, the coordinates will be the same bc the grid cells aren't changing. But need to make a key in new stratification table that gets you back to this table if you need it. Use one column as key for new stratification table. Then you ca convert back and forth. |
Beta Was this translation helpful? Give feedback.
-
We need to discuss and decide which is the better approach: 1) extend the existing GOAGRID* table with some versioning information as Zack suggested or 2) create an entirely new table for the new stratification. |
Beta Was this translation helpful? Give feedback.
-
...and another thing... |
Beta Was this translation helpful? Give feedback.
-
one other thing that just struck me - untrawlable stations. |
Beta Was this translation helpful? Give feedback.
-
@Lewis-Barnett-NOAA @MargaretSiple-NOAA @Ned-Laman-NOAA
Prompt: within the AIGOAStationAllocation package, new stations are created based on the new stratification. How do we integrate that into Oracle in a way that still preserves the historical stations while distinguishing them from the new stations.
Terminology (feel free to add to/edit):
GOA.GOA_STRATA where SURVEY = ‘GOA’; GOA.GOAGRID, GOA.GOAGRID_GIS which holds the TRAWLABLE field modified each year after the survey
A preview of goa.grid_gis as of 10/5/2022 is:
<style> </style>Beta Was this translation helpful? Give feedback.
All reactions