-
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
Can oisst be projected to the same grid and formatted the same as the bccm data? #60
Comments
Looks like conversion from NAD83 to WGS84 which will be possible (they are almost idenical anyway) Look here: https://r-spatial.github.io/sf/reference/st_transform.html The CRS for WGS84 is 4326 which is what's in this function I wrote for plotting the hake overview map, you can use ggplot to plot these sf objects: sf also has functions to transform POINT to and from POLYGON data sets |
Thanks Philina, I hadn't realised these were different. I can probably figure out a function for this, based on some of the conversions from Travis that I've been adapting for the new HOTSSea Salish Sea model. I'm away next week and might not have time this week, but will try. |
@ecophilina For clarity, you mean you are looking for the same data format (long vs wide, with time as columns) rather than matching the same spatial resolution/pixel extents? |
I have functions written that extract averages for certain spatial areas from the bccm data and I would like to be able to use the same functions with oisst data. I'm assuming some kind of interpolation step would be required to get the resolutions from the point data to match the polygon grid that bccm uses? So no, I think I do want the same spatial resolution/pixel extents as the BCCM data that is stored with the package. Ultimately, I need to be able to project all variables to identical grids---usually as averages (though min, max, sd are also potentially useful) for polygon cells (which often later get defined by their centroid coordinates). |
Can't you use what's in the OISST vignette? https://htmlpreview.github.io/?https://github.com/pbs-assess/pacea/blob/main/vignettes/oisst.html Sounds like what you want is already in there with functions. |
For today, I can probably modify something from there. But it means writing a whole new function, because I need the output to match the output for the ones I wrote for the bccm data. |
If the data types match (iosst is poly instead of pts) it might be enough to resolve @ecophilina's issue? Not necessarily a common grid needed. |
I've done this in a new vignette |
I had actually pushed the .Rmd, just on the |
|
It would be useful if there was a version of the oisst monthly data (or a conversion function to create one) that matched the format of the bccm variables. Despite overlapping in time and space, it's not obvious at the moment how one could get them into matching formats.
Currently oisst_month is:
while the bccm_surface_temperature() object is:
The text was updated successfully, but these errors were encountered: