# Afdust\_adj dates

**URL:** <https://forum.cmascenter.org/t/afdust-adj-dates/2423>\
**Category:** Run Errors and Warnings\
**Created:** [June 14, 2021, 7:29pm UTC](https://forum.cmascenter.org/t/afdust-adj-dates/2423 "2021-06-14T19:29:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lexiewilson](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/lexiewilson/32/2018_2.png) [@lexiewilson](https://forum.cmascenter.org/u/lexiewilson)\
**Post date:** [June 14, 2021, 7:29pm UTC](https://forum.cmascenter.org/t/afdust-adj-dates/2423/1 "2021-06-14T19:29:59Z")

</div>

I am running Annual\_afdust\_adj\_4UDAQ\_2017gb\_17j.csh from the 2017 platform. I have already run Annual\_afdust\_4UDAQ\_2017gb\_17j.csh without errors. My episode (with spinup) goes from June 5 to July 31 2017. I only have MCIP files for these dates. The apply.precip script errors and crashes because it appears to be searching for a June 01 2017 MCIP file (does not exist). Is there a way I can force the script to run only for my episode length? Do I need to update my smk\_merge\_dates txt files to include only days in my episode?

setenv RUN\_MONTHS “7”  
setenv SPINUP\_DURATION “16”  
setenv BASE\_YEAR “2017”  
setenv EPI\_STDATE\_TIME “$BASE\_YEAR-07-01 00:00:00.0”  
setenv EPI\_ENDATE\_TIME “$BASE\_YEAR-07-31 23:59:00.0”

setenv L\_TYPE “all”  
setenv M\_TYPE “all”

(SMOKE 4.7)

---

<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:** [June 14, 2021, 7:48pm UTC](https://forum.cmascenter.org/t/afdust-adj-dates/2423/2 "2021-06-14T19:48:21Z")

</div>

This can be done for onroad with the run settings file. For example, to skip the first 20 days of June 2016:

onroad, 12US1, movesmrg, PART4, 06/01/2016, 06/20/2016, N

Other sectors besides onroad work much the same way, except the run settings would say “smkmerge” instead of “movesmrg”.

I didn’t fill in the sector as afdust here because I wasn’t sure if it should be afdust\_adj or not, but I think you can work that out.

---

<div class="post-metadata">

**Author:** ![lexiewilson](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/lexiewilson/32/2018_2.png) [@lexiewilson](https://forum.cmascenter.org/u/lexiewilson)\
**Post date:** [June 14, 2021, 8:29pm UTC](https://forum.cmascenter.org/t/afdust-adj-dates/2423/3 "2021-06-14T20:29:43Z")

</div>

Thanks! I gave this a try and am still receiving the same error message: \*\*\* ERROR ABORT in subroutine APPLY\_PRECIP\_ADJ Could not open file “METCRO2D” for reading  
It’s still seeking “METCRO2D\_170601”

Before testing with the updated run\_settings file, I cleared all the data in my afdust intermed folder. Then I ran afdust, followed by afdust\_adj. Here are the lines I added to run\_settings:

Sector, Grid, Environment Variable Name, Part, Start Date, End Date, Value  
afdust\_adj,4UDAQ,smkmerge,PART4,06/01/2017,06/14/2017,N  
afdust,4UDAQ,smkmerge,PART4,06/01/2017,06/14/2017,N

---

<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:** [June 15, 2021, 12:34pm UTC](https://forum.cmascenter.org/t/afdust-adj-dates/2423/4 "2021-06-15T12:34:46Z")

</div>

It seems the afdust adjustments job uses different scripts, so use of the run settings file isn’t supported for that particular script. Instead, at the bottom of the script that runs the afdust adjustments (Annual\_afdust\_adj\_12US1\_…), change:

$RUNSCRIPTS/emf/afdust\_adj\_emf.csh $REGION\_ABBREV -m “$RUN\_MONTHS” $SPINUP\_DURATION

to:

$RUNSCRIPTS/emf/afdust\_adj\_emf\_customdates.csh $REGION\_ABBREV -m “$RUN\_MONTHS” $SPINUP\_DURATION

That should automatically skip any day where there is not a METCRO2D.
