brianlangseth-NOAA / Spatial-Workshop-SPASAM

Spatially stratified simulation-estimation framework incorporating multistage stock-recruit relationships and incorporating larval IBM outputs
1 stars 0 forks source link

TO DO: Jagged array for new tagging data #18

Closed brianlangseth-NOAA closed 2 years ago

brianlangseth-NOAA commented 2 years ago

The new tagging data have the max time between tag and recapture as 35 pseudo years. This means that the last sampling event (223) goes over the end year. Right now, the EM is reading the data in fine, and if the last tagging event only extends to the final year (it has one less column than the other tagging events), the EM does not work.

The implications of this are unknown. Based on my understanding of the tpl, nt can be different depending on the sampling event, and the last sampling event should have one less year of recapture years. Although the data are being read in correctly, I dont quite know if the data are used correctly within the model equations. Perhaps a question for dan.

brianlangseth-NOAA commented 2 years ago

A solution for this is to fix the tag lifespan to a number less than 35. Probably good to do so anyway to reduce trying to fit few recaptures in these real late years.

brianlangseth-NOAA commented 2 years ago

Closing here because I dont think the current version is meant to handle jagged (ragged) arrays. See here