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

pull all catch from catch.nc file #6

Open
andybeet opened this issue Apr 1, 2024 · 0 comments
Open

pull all catch from catch.nc file #6

andybeet opened this issue Apr 1, 2024 · 0 comments

Comments

@andybeet
Copy link
Member

andybeet commented Apr 1, 2024

atlantistools::load_nc does not read in all of the species catch. Probably because species names are formatted differently..

eg.

library(ncdf4)
x.nc = nc_open(here::here('Atlantis_Runs','master_2_2_0','neus_outputCATCH.nc'))
varname = names(x.nc$var)
vn1 <- grep('SCA',varname,value = T)
vn2 <- grep('Smooth',varname,value = T)
nc_close(x.nc)

Results in

[1] "SCA_Catch_FC1"   "SCA_Discard_FC1"

and

 [1] "Smooth_Dogfish1_Catch"    "Smooth_Dogfish2_Catch"    "Smooth_Dogfish3_Catch"    "Smooth_Dogfish4_Catch"   
 [5] "Smooth_Dogfish5_Catch"    "Smooth_Dogfish6_Catch"    "Smooth_Dogfish7_Catch"    "Smooth_Dogfish8_Catch"   
 [9] "Smooth_Dogfish1_Discards" "Smooth_Dogfish2_Discards" "Smooth_Dogfish3_Discards" "Smooth_Dogfish4_Discards"
[13] "Smooth_Dogfish5_Discards" "Smooth_Dogfish6_Discards" "Smooth_Dogfish7_Discards" "Smooth_Dogfish8_Discards"
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

1 participant