Code Monkey home page Code Monkey logo

global-fishery-potential's People

Contributors

danovando avatar szuwalski avatar tclavelle avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

kmillage

global-fishery-potential's Issues

RunProjections

  • 94: check calculation of FvFmsy
  • 96: change c_num
  • 98: change c_den

SnowProjections

  • change names
  • 195: change c_num
  • 197: change d_den
  • 214: change MsyProfits
  • 230s: change status quo policies where needed

FindOpenAccess

Line 23: change to reflect new relationships between FvFmsy BvBmsy and 2

MatrixCMSY

  • line 18: replace ri with gi
  • line 26: change column names to g instead of r
  • line 44: replace scahefer growth function with PT

Write generic plotting code

Write code that takes your standardized data table and makes plots of catch, biomass, etc. by size groups and by region

Write SdevBin code

Use the new dataframe to calculate the standard deviations of the residuals for each bin in each year of each model

GFR_Wrapper

  • 486: change relationship among K and B/Bsy
  • 488: change relationship between g and MSY etc.
    *490: change names
  • 535: change biomass calculation

Adding proper error to timeseries plot

You're not plotting the timeseries of B/Bmsy right from AnalyzeFisheries. You're leaving out the CatchMSY fisheries and their associated errors. Doesn't affect anything else but it's a problem.

MatrixSnowCatchMSY

Changes in the actual body of MatrixSnowCatchMSY

  • replace all r with g
  • 220: change relationship between MSY, r, and K
  • 220: change relationship between MSY, r, and K
  • 223: same as above
  • 250: MSY derivation
  • 252: BvBmsy and K relationship
  • 256: check relationship between FvFmsy, MSY , catch, and BvBmsy
  • 267: more MSY problems
  • 268: Fmsy relationship
    *302 Check relationship between FvFmsy, MSY , catch, and BvBmsy

Incomparable methods

How do we deal with the fact that RAM allows B/Bmsy above 2, but CatchMSY doesn't? The NEIs are inherently different now since they are drawing from RAM, while the FAO's aren't.

Create code to match fishbase data

using the function FindFishBase, take the FullData dataframe, and the ideas in runLinkedPRM, and produce a new version of FullData with missing life history variables filled in where possible

Write trimming function

Write a function that takes some options and cleans up the database before it gets passed to regression (omit NA's in catch, interpolate catch, etc.)

Make Kobe plots

write a basic function to make kobe plots, you'll have to do them a lot

Historic RAM FvFmsy

There's a problem in RunProjections where historic RAM FvFmsy values are being overwritten. You need to fix that once you decide how to deal with the mixed values

Check whether ResultMatrix table is right

The ResultMatrixTable starting on line 812 of the wrapper have some hard coded columns in there. Can you check and make sure that these are referencing the right columns, and change these to an automated format?

Thanks

ResultMetricsSQCumFinalTable[c,1]<-CountriesToRun[c]

ResultMetricsBaselineTable[c,2:13]<-FinalYear[FinalYear$Policy=="CatchShare",13:24]

ResultMetricsSQFinalTable[c,2:4]<-FinalYear[FinalYear$Policy=="CatchShare",28:30]

ResultMetricsSQFinalTable[c,5:7]<-FinalYear[FinalYear$Policy=="CatchShare",25:27]

ResultMetricsSQFinalTable[c,8:10]<-FinalYear[FinalYear$Policy=="CatchShare",34:36]

ResultMetricsSQFinalTable[c,11:13]<-FinalYear[FinalYear$Policy=="CatchShare",31:33]

ResultMetricsSQCumFinalTable[c,2:14]<-Cumulatives[Cumulatives$Policy=="CatchShare",2:dim(Cumulatives)[2]]

Fix DatabaseBuild

Change the parts of DatabaseBuild that calculate reference points for RAM stocks based currently on Schaefer dynamics

Broken NEIs

OK, suddenly we aren't getting projections for any NEI stock. What's happening is that they are getting infinite values for BvBmsy in NearestNeighborNeis. I checked in the results of AnalyzeFisheries, and the only infinite values are in NEI or unidentified stocks. My only hunch, maybe it's trying to pull from NEIs for compstocks? If you try and take any function of an infinite you get an infinite, so maybe it's tryign to take like median BvBmsy of an NEI stock which is somehow in the compstocks?

The other possibility, any number dicided by 0 is infinite. So, maybe when you're calculating the denominator (the Bmsys), there's some situation that would result in Bmsy of 0, resulting in an infinite BvBmsy?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.