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

stratum mislabled in AI gird shapefile #30

Closed
EmilyMarkowitz-NOAA opened this issue Mar 2, 2023 · 23 comments
Closed

stratum mislabled in AI gird shapefile #30

EmilyMarkowitz-NOAA opened this issue Mar 2, 2023 · 23 comments

Comments

@EmilyMarkowitz-NOAA
Copy link
Contributor

Issue

A few stratum seem to be mislabeled in the AI gird shapefile currently included in akgfmaps. I had encountered this issue last year when I was putting together the survey progression/temperature maps and Mark Z was able to provide me with a new shapefile where these were corrected.

Suggestion

Replace this shapefile with this shapefile.

Notes

Differences between the shapefile in akgfmaps and survey-live-temperature-map
As a short hand, "r_" is grid data provided from survey-live-temperature-map and "a" is grid data provided from akgfmaps
image

When I plot bounding boxes around the corresponding INFPC regions (ID'ed by stratum via goa.goa_strata), you can see that the stratum are in the issue (this is how I noticed the error in the shapefile).

Using the AI Grid shapefile from akgfmaps:
image

Using the shapefiles in survey-live-temperature-map's shapefile
image

@sean-rohan-NOAA
Copy link
Collaborator

Ok. Is this the official shapefile for the GOA/AI group that is used to produce stock assessment products? Or is this a realignment that Mark did that hasn't been adopted by the group as the official stratum boundary file?

@EmilyMarkowitz-NOAA
Copy link
Contributor Author

I think the latter. Good point, probably worth checking with @Ned-Laman-NOAA.

@sean-rohan-NOAA
Copy link
Collaborator

@Ned-Laman-NOAA Is the shapefile Emily shared the official shapefile for the AI?

@EmilyMarkowitz-NOAA
Copy link
Contributor Author

I'll add that I double checked that everything else (columns, observations, data dimensions, etc) were otherwise exactly the same between the shapefiles. I took a moment to recalculate the areas and perimeters of each grid from scratch (a great sanity-check suggestion form @sean-rohan-NOAA) and they are the same between the files. I feel confident that, between these two shapefiles, the only difference is in the specification of those few stratum.

@sean-rohan-NOAA
Copy link
Collaborator

@Ned-Laman-NOAA @EmilyMarkowitz-NOAA Was there a final decision on this? Noticed it's been a month and a half since this issue was opened.

@EmilyMarkowitz-NOAA
Copy link
Contributor Author

No updates from me, as I am just the anticipated user. @Ned-Laman-NOAA were you able to talk with people on your end?

@Ned-Laman-NOAA
Copy link

Remind me (again) of the origin of the shapefile with the obviously funky strata? E.g., is it U:\alaska\constructs\zones\strata\aigrid? U:\alaska\constructs\zones\strata\ai_strata? Or does it originate from one of the Oracle tables on the AI schema?

@sean-rohan-NOAA
Copy link
Collaborator

sean-rohan-NOAA commented Apr 18, 2023 via email

@Ned-Laman-NOAA
Copy link

In that recommendation, I cited both ai_strata & aigrid as the authorities for this information. I'm now realizing that those two shapefiles aren't even in synch. The ai_strata shapefile does not include Bowers Ridge as the aigrid shapefile does. I believe that some of the stratum discrepancies are on Bowers Ridge but we haven't sampled out there on an Aleutian survey for decades. Let's first agree on whether or not to include Bowers Ridge in your navmaps package to start narrowing down where we need to address these issues.

@sean-rohan-NOAA
Copy link
Collaborator

sean-rohan-NOAA commented Apr 18, 2023 via email

@Ned-Laman-NOAA
Copy link

There is a copy of the aigrid shapefile with Bowers Ridge clipped out here (G:\AI-GOA\shapefiles\aigrid_clipped)

@sean-rohan-NOAA
Copy link
Collaborator

sean-rohan-NOAA commented Apr 19, 2023 via email

@Ned-Laman-NOAA
Copy link

The shapefile here (G:\AI-GOA\shapefiles\aigrid_clipped) is literally the shapefile from here (U:\alaska\constructs\zones\strata\aigrid) with Bowers Ridge clipped out.
The "aigird_clipped" shapefile referenced here should be considered the official Aleutian survey shapefile for akgfmaps.

@sean-rohan-NOAA
Copy link
Collaborator

Hi Ned,

It looks like the aigrid_clipped shapefile you reference has grid cells with strata 793 and 794 that are west of the boundaries for strata 793 and 794:

image

Therefore, I still think it would make sense to adopt Em's suggestion to change stratum designations for grid cells in the shapefile, as described earlier in this thread:

A few stratum seem to be mislabeled in the AI gird shapefile currently included in akgfmaps. I had encountered this issue last year when I was putting together the survey progression/temperature maps and Mark Z was able to provide me with a new shapefile where these were corrected.

@Ned-Laman-NOAA
Copy link

Sean,

It sounds like you're right and we should be using the corrected and clipped shapefile Emily references.

Here is where my hesitancy lies. Before we commit to making the change, we need to have written documentation detailing how the corrected stratum labels were assigned and applied. Then, there is a whole system of shapefiles, Oracle tables, and public-facing databases that will need to receive these changes to Aleutian stratum areas. Before that happens, there nees to be a coordinated communication campaign to inform data users about the changes. Clear documentation of how and why these changes are being made will form the basis for communication and rollout of the changes.

In short, I don't think we can simply swap shapefiles in akgfmaps and call it good without doing our diligence among all of our sources of data and data users. In fact, I think all of the other changes need to be in place and clearly communicated before your package distributes the new map.

Thoughts?

@EmilyMarkowitz-NOAA
Copy link
Contributor Author

EmilyMarkowitz-NOAA commented Oct 2, 2023

Would it be helpful to add a page documenting this change to an akgfmaps pkgdown page or to the gap_products quarto book? @sean-rohan-NOAA I could help create the former (small lift, though you might already have experience) and/or latter (create a page/section for you to edit) if there is interest. Here is what a pkgdown page for the gapindex package looks like.

@Ned-Laman-NOAA
Copy link

It is my sense that the akgfmaps package is rapidly becoming the face of our spatial information so I think it would be helpful to add this type of documentation alongside the package. I remain hesitant to try to work backwards from the package to our internal resources when trying to disseminate these changes because the rate of change will be much much slower for the latter.

@sean-rohan-NOAA
Copy link
Collaborator

sean-rohan-NOAA commented Oct 2, 2023 via email

@sean-rohan-NOAA
Copy link
Collaborator

sean-rohan-NOAA commented Oct 2, 2023 via email

@Ned-Laman-NOAA
Copy link

@sean - take a look at my attempt to stratum correct the aigrid shapefile here G:\AI-GOA\shapefiles\aigrid_stratum_corrected. I haven't had a chance to do the same from ai_strata but will get there if this attempt looks like an improvment.

@sean-rohan-NOAA
Copy link
Collaborator

sean-rohan-NOAA commented Oct 6, 2023 via email

@Ned-Laman-NOAA
Copy link

Field1 and Field2 can be omitted from the shapefile.
Field 2 is the T/UT designation which we update after each Aleutian survey and so would not normally be part of the standard shapefile delineating the survey area.

@sean-rohan-NOAA
Copy link
Collaborator

Alright, I removed Field1 and Field2 from the shapefile and pushed to the slope branch. Now just waiting for tests to finish.

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

No branches or pull requests

3 participants