johnrsibert / tagest

Suite of software for spatially resolved fish tagging analysis
BSD 2-Clause "Simplified" License
3 stars 2 forks source link

merge in rdensitysim #10

Closed tom-peatman closed 8 years ago

tom-peatman commented 8 years ago

Hi John,

I think I've followed the process that we agreed in Honolulu. I've forked your repository, included code for rdensitysim, and now issuing the pull request.

There are 2 commits. I removed the hard-coded correction of tag releases in one, and added in rdensitysim in the other.

I based rdensitysim on rhalflife. It tracks tag density within eez's (or polygons defined in eez.dat), and calculates halflives. Initial tag density can be provided, based on distributions from SEAPODYM (or other sources). Calculations are repeated with tag densities in a particular eez set to zero (in turn), to provide a means for exploring connectivity between regions.

Incidentally, it looks like rhalflife calculates the time for densities to decrease to 50 % of the density in the second time-step of simulations, not the first (at least, I got this impression while developing rdensitysim). I will have a look at this tomorrow and can issue a pull request for that separately (if needed).

Thanks, Tom

johnrsibert commented 8 years ago

Merge detected no conflicts. Nice job, Tom.