-
Notifications
You must be signed in to change notification settings - Fork 0
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
Easily exported coastwide grid #48
Comments
I second this |
To add more specifics to this request, in addition to use as a prediction grid, I want to be able to filter the environmental variables in pacea to be just those areas with the depths occupied by a species in question. |
In PBSdata there is bctopo.rda which could be useful. As noted in #8. |
I cleaned out some old unused grids. So I think the
@travistai2 - this is what they should use yes? Then, for depth, I think the steps are:
|
Update: I looked into
|
|
marmap is convenient, but I believe we have a high resolution depth layer available through our spatial data hub that may be superior. |
From Cole Fields: |
@KLFlynn and I looked at the data in the above comment. 7Gb, but does not go far enough out to see, just off the coast of Haida Gwaii. |
Kelsey has been working on this and has the dpeth values mapped to the grid. She just wants to double check some things, and then I can incorporate it into the package. So there will be mean, min and max depth for each grid cell. |
Amazing! Great work! |
Okay, new data object I wrote a bit of a help file, but nothing extensive, and no vignette yet. So it's currently on branch
Also, look in https://github.com/pbs-assess/pacea/blob/dev-andy/data-raw/depth/depth.R for sample plotting code, though I put a quick one in Big thanks to @KLFlynn for doing the extraction and dealing with all the projection complications. The code in the above file can also be used to get depths for other areas also. This should be useful enough for now. We'll have to also:
@ecophilina - hope this is good enough for now. |
Just had a look through the object. Interesting that there are coastal values with positive depth values (indicating land). Some of those cells also have a range of only positive values (min to max depth are above sea level). Unsure of why that would be, even in the coastal areas. The BCCM data were used to create a polygon mask layer to then mask our grid ( Also, when converting depth values to positive, the max and min values should probably be switched - max depth = deeper (larger) values. Currently, the max_depth values represent shallower depths. |
Looks like it'll work for my immediate needs! Thanks! For now I will be excluding all grid cells with any positive values. |
Sounds good. Thanks Travis, yes good point about max and min, I hadn't really looked at the numbers. Will leave for now but we can easily switch before other people start using it. |
Now in the main branch (kind of by accident). Not had time for a vignette yet. |
|
Related:
|
It would be nice, if this package had an easily exported coastwide mapping and prediction grid.
Ideally, it could include mean bottom depth.
Unless depth is already included in this package in a way that makes it easy to add it to the grid/any set of coordinates.
The text was updated successfully, but these errors were encountered: