Skip to content

Commit

Permalink
revise calc of spawn_time_season
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick-Methot-NOAA committed Sep 18, 2024
1 parent 605a4c2 commit da4b8ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions SS_readdata_330.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@
}
temp += subseasdur_delta(spawn_seas);
}
spawn_time_seas = (temp1 - azero_seas(spawn_seas)) / seasdur(spawn_seas); // remaining fraction of year converted to fraction of season
// spawn_time_seas = (temp1 - azero_seas(spawn_seas)) / seasdur(spawn_seas); // incorrect: remaining fraction of year converted to fraction of season
spawn_time_seas = (temp1 - azero_seas(spawn_seas)); // timing in units of fraction of year such that exp(-Z*spawn_time_seas) will be correct
}
echoinput << "SPAWN month: " << spawn_month << "; seas: " << spawn_seas << "; subseas_for_ALK: " << spawn_subseas << "; timing_in_season: " << spawn_time_seas << endl;
echoinput << "SPAWN month: " << spawn_month << "; seas: " << spawn_seas << "; subseas_for_ALK: " << spawn_subseas << "; spawntiming as frac. of year: " << spawn_time_seas << endl;
if (spawn_seas > nseas)
{
warnstream << " spawn_seas index must be <= nseas ";
Expand Down
2 changes: 1 addition & 1 deletion SS_write_report.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ FUNCTION void write_bigoutput()
SS2out << "Season_Durations: " << seasdur << endl;
SS2out << "Spawn_month: " << spawn_month << endl
<< "Spawn_seas: " << spawn_seas << endl
<< "Spawn_timing_in_season: " << spawn_time_seas << endl;
<< "spawntiming as frac. of year: " << spawn_time_seas << endl;
SS2out << "N_areas: " << pop << endl;
SS2out << "Start_year: " << styr << endl;
SS2out << "End_year: " << endyr << endl;
Expand Down

0 comments on commit da4b8ca

Please sign in to comment.