Error in age data composition

14 views
Skip to first unread message

Guillermo Caballero Luján

unread,
Oct 7, 2025, 4:15:41 PMOct 7
to SS3 - Forum
Hi, im trying to implement age data composition in my model, and I can not figure out what is wrong in the data file. I am following the examples in github for the implementation and i think the lines are correct, but I am getting this error that I do not quite understand

1 L_bin_lo no match to poplenbins in age comp  2002 2.5 1 0 0 1 -1 -1 20

If you remove the age data composition section the model works. 

Thank you in advance.
datafile.dat

Joel Rice

unread,
Oct 8, 2025, 3:41:09 PMOct 8
to Guillermo Caballero Luján, SS3 - Forum
Hi Guillermo, 

I am not sure that this does what you want, but I changed the poplen bin structure (to 1) and fleet (to -1) and it ran. 

Hope this helps, maybe someone can explain what the model is interpreting for us. 

Joel


--
You received this message because you are subscribed to the Google Groups "SS3 - Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ss3-forum+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ss3-forum/dbd2c316-c6fe-4747-b743-21a2cdbf65dan%40googlegroups.com.
datafile.dat

Kelli Johnson

unread,
Oct 8, 2025, 11:09:10 PMOct 8
to SS3 - Forum
The error message is coming from the 3.30 read data processes in SS_readdata_330.tpl on line 2612 because the population length bin that matches the data length bin cannot be found. I am not entirely sure if this is a bug in SS3 and it should give you a more informative error message for your given your input data or if you should just change line 304 in your data file to be 1 or 2, not 3. Right now, you are specifying that the value -1 in length bin low is for your first row of age-composition data should be equal to an actual length because line 304 == 3, which specifies "Value is actual length". You could in theory change all of the lbin low values to be zero and all of the lbin high values to be your maximum length bin and the model should run but because you do not have conditional age at length data, I think that it would just be easier to change the spec on line 304 to not be 3. Hopefully this makes sense. And, please feel free to ask additional questions though our responses might be slightly slower than usual right now.
Best,
Kelli

Elizabeth Perl - NOAA Affiliate

unread,
Oct 9, 2025, 10:58:53 AMOct 9
to Guillermo Caballero Luján, SS3 - Forum
Hi Guillermo,

As Kelli and Joel said, to get the model to run using v3.30.19 I had to change the L_bin_method_for_Age_Data (line 304) to be 1 AND after painstakingly looking line by line I also noticed that line 394 is one 0 short and should be 
-9999 0 0 0 0 0 0 0 0 0 0 0 0 0
rather than 
-9999 0 0 0 0 0 0 0 0 0 0 0 0

I did not have to change the fleet to -1 to get these changes to work like Joel said that he did.

Another thing is that after fixing line 394, I did not have to change the L_bin_method_for_Age_Data to get the model to run with v3.30.24.1. I'm not sure if this was a bug in the previous version and it should have been able to run or a bug in the current version in that it should error out. I will sort this out with Rick once the government is funded again.

All the best,
Elizabeth

Elizabeth Perl

Stock Synthesis Scientific Software Support, Contractor/Affiliate with ECS Federal in support of
NOAA Fisheries Office of Science and Technology, National Stock Assessment Program |  U.S. Department of Commerce

Office: (301) 427-8156

www.fisheries.noaa.gov





--
Reply all
Reply to author
Forward
0 new messages