-
Notifications
You must be signed in to change notification settings - Fork 16
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
combine_extrapolation_info doesn't create strata_per_region with user-defined grid #71
Comments
Thanks for asking here where our discussion is searchable! Please note first that the intended syntax is: # Combine grids
Extrapolation_List <- combine_extrapolation_info( EBS_Extrapolation_List, NBS_Extrapolation_List, create_strata_per_region=TRUE)` i.e., passing both extrapolation-grid objects via the |
Thanks @James-Thorson-NOAA , that worked for producing the subarea calculations in SS3! However, now plot_results does not produce the predicted density map plots, returning this error:
|
what is outputted when you do I'm trying to figure out if the problem arises from the code I provided above, or from efforts to add the combined-stratum index. |
lapply(Extrapolation_List, dim) is listed twice, did you mean a different function for one of those? The output is: lapply(Extrapolation_List, dim) $Data_Extrap $zone $flip_around_dateline $projargs $Area_km2_x |
sorry I meant |
Gotcha, output for lapply(Extrapolation_List, length): lapply(Extrapolation_List, length) $Data_Extrap $zone $flip_around_dateline $projargs $Area_km2_x |
well, nothing obviously screwy there, so I guess its just some weird interaction affecting the plots (which I don't maintain with as high of scrutiny). I guess maybe email me the custom RDS files you're combining, and I can try running those through my existing script for pollock EBS+NBS..? |
Attempting to use combine_extrapolation_info() to combine 2 user defined grids for the EBS/NBS.
`# EBS Grid prep
EBSgrid <- read.csv(here::here("data","EBSThorsonGrid.csv"))
EBS_input <- cbind(Lat=EBSgrid$Lat,Lon=EBSgrid$Lon,Area_km2=EBSgrid$Shape_Area/1000000)
EBS_Extrapolation_List = make_extrapolation_info( Region=Region, input_grid=EBS_input, strata.limits=strata.limits,
create_strata_per_region=FALSE, max_cells = max_cells )
This results in combining the areas, but does not separate the region subtotals in the Table_for_SS3 output.
The text was updated successfully, but these errors were encountered: