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

Fix for error in pre-process (Antarctic model) #1

Open
jessmt opened this issue Mar 10, 2017 · 3 comments
Open

Fix for error in pre-process (Antarctic model) #1

jessmt opened this issue Mar 10, 2017 · 3 comments

Comments

@jessmt
Copy link

jessmt commented Mar 10, 2017

#bps <- load_bps(dir, fgs, init)
bps <- c("Ice_Diatoms","Ice_Mixotrophs","Ice_Zoobiota",
         "Macrobenthos","Benthic_Filter_feeders","Ice_Bacteria")
@jessmt
Copy link
Author

jessmt commented Mar 10, 2017

Additional error is at line

  biomass_age   <- bio_sp %>% filter(agecl > 2) %>% agg_data(groups = c("species", "agecl", "time"), fun = sum)
 Error in filter(., agecl > 2) : object 'agecl' not found 

@jporobicg
Copy link
Owner

Hi Jess,
I modified the code, So you can add the extra FGs as a Vector in the arguments of the pre.Atlantis.tools() function.
Something like this:

results <- pre.Atlantis.tools(dir         = "/home/demiurgo/Documents/2016/Oficina/ANTARCTIC-ATLANTIS-files/",
                              nc_gen      =  "output/output.nc",
                              nc_prod     =  "output/outputPROD.nc",
                              dietcheck   =  "output/outputDietCheck.txt",
                              yoy         =  "output/outputYOY.txt",
                              ssb         =  "output/outputSSB.txt",
                              version_flag =  2,
                              prm_run     =  "SO28_run.prm",
                              prm_biol    =  "SO28_biol.prm",
                              fgs         =  "AntarcticGroupsnew.csv",
                              bgm         =  "Antarctica_28.bgm",
                              init        =  "input.nc",
                              extraFG     =  c("Ice_Diatoms","Ice_Mixotrophs","Ice_Zoobiota","Ice_Bacteria")
                              )

Cheers,
Javier

@jessmt
Copy link
Author

jessmt commented Mar 10, 2017

Oh excellent! That looks great. I will try it once I see a new commit of Output_Atlantis_tool.R. Thanks!

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

2 participants