# Nonpoint other source cannot find surrogate files

**URL:** <https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891>\
**Category:** Run Errors and Warnings\
**Created:** [February 2, 2023, 10:42pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891 "2023-02-02T22:42:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [February 2, 2023, 10:42pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/1 "2023-02-02T22:42:54Z")

</div>

Hi,

When I ran othar, canada\_onroad, othafdust… there is an error below. I can run othpt sector successfully.  
I checked the files in the path below, I am not sure why it cannot find it. The domain is 4km over the northeastern US and part of Canada. Does anyone have any idea about this error? I appreciate any help you can provide.

PATH: setenv SRGPRO “${GE\_DAT}/gridding/surrogates/CONUS4\_2015CAN\_03dec2018/CA\_100\_NOFILL.txt”

ERROR:  
File “SRGDESC” opened for input on unit: 95  
…/smoke2019//ge\_dat/gridding/srgdesc\_2015Canada\_2010Mexico\_03dec2018\_07jan2019\_v2\_4km.txt

```
 Reading gridding surrogate description file...
 Value for SMK_USE_FALLBACK not defined;returning default: FALSE
 Value for SMK_DEFAULT_SRGID: 10

```

\*\*\* ERROR ABORT in subroutine GRDMAT  
ERROR: Default surrogate code is not available in your surrogate description  
: User MUST choose a population surrogate code (i.e.,100) as default for a proper processing

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [February 3, 2023, 1:40pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/2 "2023-02-03T13:40:20Z")

</div>

Setting SMK\_DEFAULT\_SRGID to 100 instead of 10 should fix this. The default surrogate setting isn’t used by SMOKE, but if it is not set to a valid surrogate, then Grdmat will crash. Surrogate 10 is a Mexico surrogate, and your 4km domain doesn’t include Mexico, so trying changing the default surrogate to one that includes data for Canada.

---

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [February 3, 2023, 3:07pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/3 "2023-02-03T15:07:25Z")

</div>

Thank you for the detailed clarification. I can run onroad\_canada successfully, but there is an error when running othar even SMK\_DEFAULT\_SRGID =100.  
ERROR:  
Could not open input surrogate file…/smoke2019//ge\_dat/gridding/surrogates/CONUS4\_2015CAN\_03dec2018/MEX\_12\_FILL.txt

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [February 3, 2023, 3:18pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/4 "2023-02-03T15:18:41Z")

</div>

Does the file it is looking for (MEX\_12\_FILL) exist in the folder it is looking in?

---

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [February 3, 2023, 3:34pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/5 "2023-02-03T15:34:23Z")

</div>

No, only 4km CA surrogate files I found from 2016v2

---

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [February 3, 2023, 3:36pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/6 "2023-02-03T15:36:58Z")

</div>

I may try to use 4km MEX surrogate from 2016 alpha

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [February 3, 2023, 4:14pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/7 "2023-02-03T16:14:24Z")

</div>

We think this may be happening because the Mexico surrogates are in your SRGDESC file. If your domain doesn’t include Mexico, you can remove the Mexico surrogates rows from the SRGDESC file.

---

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [February 3, 2023, 4:48pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/8 "2023-02-03T16:48:45Z")

</div>

I see. my mistake, I used 12km SRGDESC for 4km. However, after correcting it and make sure each file in SRGDESC matched with files in surrogate folder. There are still errors:  
ERROR: Gridding surrogate code 26 is not in surrogates file, but was  
assigned to source:  
Region: 000000232058 SCC: 00000000002805045001  
ERROR: Gridding surrogate code 26 is not in surrogates file, but was  
assigned to source:  
Region: 000000232058 SCC: 00000000002805045004  
ERROR: Gridding surrogate code 40 is not in surrogates file, but was  
assigned to source:  
Region: 000000232058 SCC: 00000000002810030000

```
 *** ERROR ABORT in subroutine ASGNSURG
 Problem assigning gridding surrogates to sources

```

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [February 3, 2023, 5:37pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/9 "2023-02-03T17:37:09Z")

</div>

I believe the sources with errors are in Mexico based on their listed region. If your domain does not include Mexico, you could not include the Mexico inventories for processing.

I believe they are in standalone files even in the sectors that are shared by Canada and Mexico. Or, you can keep the Mexico inventories as input and include the surrogates that SMOKE is looking for. The system needs to be in sync between the inventories and the surrogates.

---

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [February 3, 2023, 7:08pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/10 "2023-02-03T19:08:50Z")

</div>

I see, thank you for this detailed information!  
I added MEX related files into surrogate folder and srgdesc, set SMK\_USE\_FALLBACK= Y, it worked now.

Thank you for your help 😃

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [February 7, 2023, 10:07pm UTC](https://forum.cmascenter.org/t/nonpoint-other-source-cannot-find-surrogate-files/3891/11 "2023-02-07T22:07:34Z")

</div>


