grinnellm / SpawnIndex

:fish: :egg: Calculate the Pacific Herring spawn index
MIT License
0 stars 2 forks source link

Surface egg density should be 0 when egg layers is 0 #40

Closed grinnellm closed 3 years ago

grinnellm commented 3 years ago

In dens_surf(), set egg density to zero when there are no egg layers (i.e., egg_layers = 0). Currently it returns egg density equal to alpha when egg_layers = 0: dens_surf(egg_layers = 0) [1] 14.698