Problem with SP_Concern at_harvest parameter

14 views
Skip to first unread message

Hem Nalini Morzaria Luna - NOAA Affiliate

unread,
Jan 28, 2025, 1:43:45 AM1/28/25
to Atlantis ecosystem model
Hi,

After working on other changes to our Puget Sound Model, I am turning fisheries back on and running into a puzzling error:

ERROR: createImpactedSpeciesParam - Parameter SP_Concern is not the required length in file AMPS_atharvest_2024_calib.prm. A value is required for each impacted group.

SP_Concern is (we have 79 groups)

SP_Concern 79
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

which matches the example for the SETAS model, and the CalCurrent model
SP_Concern       62
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

and is what we had previously and fisheries ran fine. I do remember a similar error years ago with a different model (Gulf of California), but I can't recall how I solved it.

Has someone else seen this?

Thanks

Hem
 
--
Hem Nalini Morzaria-Luna (how to pronounce), Ph.D. | Marine ecologist
Long Live the Kings| NOAA - Affiliate | Pronouns: she/her
Learn how to become a salmon warrior 

+1 (206) 861-7605 | twitter: @hmorzaria | LinkedIn 
_____________________________
** My most consistent working hours are 9am-2pm (PST) **
** I will respond as soon as possible. Thanks for your patience. **
----------------------------------------------

Fulton, Beth (Environment, Hobart)

unread,
Jan 28, 2025, 5:45:35 AM1/28/25
to Hem Nalini Morzaria Luna - NOAA Affiliate, Atlantis ecosystem model

G’day

 

  1. Check that the file is in the correct format (i.e.  not windows formatted file on linux box etc)
  2. Then for each group in the groups.cav with isImpacted set to 1 you need an entry in the SP_Concern vector – so for my model I have 63 groups but only 53 isImpacted so it looks like

 

SP_Concern    53

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

 

Did that help sort it?

 

Beth

--
You received this message because you are subscribed to the Google Groups "Atlantis ecosystem model" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlantis-ecosystem...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/atlantis-ecosystem-model/CAFKn%3DxPZpOtkG3OYwtZyBePAnPOdz8GjfceVbyixjRc0KBtZWQ%40mail.gmail.com.

Hem Nalini Morzaria Luna - NOAA Affiliate

unread,
Jan 28, 2025, 1:33:28 PM1/28/25
to Fulton, Beth (Environment, Hobart), Atlantis ecosystem model
I tried the following combinations:

All groups set to impacted, but not all impacted groups are fished (79), SP_Concern with 79 entries
Groups not fished set to not impacted (56), SP_Concern with 56 entries
Groups not fished set to not impacted (56), SP_Concern with 79 entries

The model will only run with the third option:
Groups not fished set to not impacted (56), SP_Concern with 79 entries

Hem

Fulton, Beth (Environment, Hobart)

unread,
Jan 28, 2025, 3:27:55 PM1/28/25
to Hem Nalini Morzaria Luna - NOAA Affiliate, Atlantis ecosystem model

G’day

 

isFished is effectively “is Targeted”. IsImpacted is if a group interacts with a fishery whether targeted or not. So

  • If isFished is set to 1 isImpacted should be set to 1
  • But you can have isImpacted set to 1 when isFished is set to 0.

 

Sorry if that caused confusion

 

Beth

Hem Nalini Morzaria Luna - NOAA Affiliate

unread,
Jan 28, 2025, 7:35:46 PM1/28/25
to Fulton, Beth (Environment, Hobart), Atlantis ecosystem model
Beth:

Thanks, that is what I had previously understood, that we could have isImpacted set to 1 when isFished is set to 0.

However, if I set, for example all my marine mammals and birds to isImpacted 1 (isFished is set to 0), I get the same error message:

ERROR: createImpactedSpeciesParam - Parameter SP_Concern is not the required length in file AMPS_atharvest_2024_calib.prm. A value is required for each impacted group.

I now have 69 impacted groups, setting SP_Concern to either 69 and 79 results in an error.

One interesting detail is that setting SP_Concern to 69 results in a warning and an error, and setting it to 79 only triggers an error.

WARNING: Parse_File - Creating XML - Length of attribute SP_Concern (69) in file AMPS_atharvest_2024_calib.prm is not the required length 79 in file AMPS_atharvest_2024_calib.prm

I did try to place some printfs in createImpactedSpeciesParam to try to figure out the issue, but I triggered a segmentation fault.

Hem

Fulton, Beth (Environment, Hobart)

unread,
Jan 29, 2025, 5:55:38 AM1/29/25
to Hem Nalini Morzaria Luna - NOAA Affiliate, Atlantis ecosystem model

G’day

 

Can you please share your csv file so I get a better understanding of the mix of isFished and isImpacted?

 

Thanks

Reply all
Reply to author
Forward
0 new messages