SMOKE error source: Too many arguments

Hi all,

New to SMOKE. Trying to run ptnonipm sectors from the 2016v2 platform. I am getting a “Source: Too many arguments” message which causes the script to halt.

% ./Annual_pt_oilgas_onetime_12US1_2026fj_16j.csh
testing SRGPRO_PATH set by SRGPRO input: /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/ge_dat/gridding/surrogates/CONUS12_2017NEI_04mar2021/
–i-- HERE
source /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/smoke4.8.1/assigns/set_dirs.csh
–ii-- HERE
source /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/smoke4.8.1/scripts/platform
Linux2_x86_64pg
NOTE: Default MONTH setting to ‘jan’
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
Creating dataset /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/ge_dat/speciation/2026fj_16j/gspro_pt_oilgas_cmaq_cb6ae7_2026fj_16j_16j.txt
using script combine_data.csh
grep: 17743: No such file or directory
Processing environment variables GSPROTMP_A
Including file: /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/ge_dat/speciation/gspro_pt_oilgas_cmaq_cb6ae7_2026fj_16j_01may2019.txt
Creating dataset /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/ge_dat/speciation/2026fj_16j/gsref_pt_oilgas_cmaq_cb6ae7_2026fj_16j_16j.txt
using script combine_data.csh
grep: 17852: No such file or directory
Processing environment variables GSREFTMP_A
Including file: /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/ge_dat/speciation/gsref_pt_oilgas_cmaq_cb6ae7_2026fj_16j_nf.txt
SCRIPT NOTE: Scanning GSREF for duplicate records
SCRIPT NOTE: No duplicates found in /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/ge_dat/speciation/2026fj_16j/gsref_pt_oilgas_cmaq_cb6ae7_2026fj_16j_16j.txt
testing SRGPRO_PATH set by SRGPRO input: /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/ge_dat/gridding/surrogates/CONUS12_2017NEI_04mar2021/
–i-- HERE
source /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/smoke4.8.1/assigns/set_dirs.csh
–ii-- HERE
source /home/wrfcadmin/WRF/DATA/PROJECTS/BAKERHOSTETLER/USS/WIP/2016v2_PLATFORM_PACKAGE_ALL_INCLUSIVE_01OCT2021/smoke4.8.1/scripts/platform
Linux2_x86_64pg
source: Too many arguments.

Seems to potentially be a syntax error in one of the scripts? Any help would be great. Thanks.

Can you confirm whether /bin/csh exists on your system?

If not, you may need to edit the top of the script files to point to where csh is installed – possibly /usr/bin/csh or tcsh

this link may be helpful for this error.

The reply:
" Replace the last line in the script:

$RUNSCRIPTS/emf/smk_pt_annual_byday_emf.csh $REGION_ABBREV $REGION_IOAPI_GRIDNAME -m “$RUN_MONTHS” $SPINUP_DURATION byday

with this:

$RUNSCRIPTS/emf/smk_pt_daily_emf.csh $REGION_ABBREV $REGION_IOAPI_GRIDNAME -m “$RUN_MONTHS” $SPINUP_DURATION daily "

Thanks you! The issue was resolved by editing the top of the run scripts to usr/bin/tcsh