Source: Too many arguments, While Running Daily PTNONIPM Script 2016V3

Hi,
I have successfully run ‘onetime’ script for the ptnonipm sector, However when I try to run ‘daily’ script
Trial_Annual_ptnonipm_daily_12US1_2023gf_16j_Trial.txt (6.5 KB)

, I get only these lines in the terminal and run stops [I tried changing shebang line to tcsh, but didn’t work]:

testing SRGPRO_PATH set by SRGPRO input: /Air/emismod/2016/v3/ancillary_data/ge_dat/surrogates/CONUS12_2017NEI_04mar2021/
Linux2_x86_64ifort
NOTE: Default MONTH setting to ‘jan’
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
source: Too many arguments.

Any suggestions would be greatly appreciated. Thanks

This error is due to the hard coded path for the list command ‘ls’ in the script.
Please modify the script to use

ls

rather than

/bin/ls

As the ls command isn’t located in the /bin directory on your system.

Hi @lizadams

I don’t see /bin/ls command in the attached ‘daily’ script
Trial_Annual_ptnonipm_daily_12US1_2023gf_16j_Trial.txt (6.5 KB)
. I also looked at directory definitios script, but there is no /bin/ls command.

Would you please help me with where should exactly I modify that command?

Thanks in advance

Please look in the following script:

source …/directory_definitions_12US2.csh

To do this you can use the following command:

grep ls …/directory_definitions_12US2.csh

If the /bin/ls command it is in that script, then you need to edit it.
Note that the …/ command means that the script is one directory above the location of your daily script.

Hi @lizadams

I checked that, but there is no ‘ls’ or /bin/ls command in the directory definitions script
directory_definitions_12US2.txt (3.9 KB)
. Then I have looked at $RUNSCRIPTS/emf/smk_pt_daily_emf.csh script from smoke4.9 installation. In the emf script there are six instances with /bin/ls command. I modified those to ls command (attached
smk_pt_daily_emf.TXT (42.6 KB)

Then I tried to run ptnonipm daily script. Still’ its giving me the same error.

Am I looking at the correct files?

Thanks in advance

We think your one time run wouldn’t have worked if the problem was related to /bin/ls.

Can you post the full standard output?

Hi @eyth.alison

Please see below the terminal output (I tried adding echo commands before and after some commands block to debug where exactly error happening):

before sourcing
after sourcing
before RUN_MONTHS
after RUN_MONTHS
before spinup_duration and spinup_month
after spinup_durationa and spinup_month_end
before modeling year block
after modeling year block
before EFTABLES and ATPRO, MTPRO,PTPRO
after EFTABLES,and ATPRO, MTRPRO, PTPRO
before source groups, PTRPR, ATPRO WEEKLY HOURLY WEEKLY MONTHLY
after source groups, PTPRO, ATPRO, WEEKLY HOURLY WEEKLY MONTHYLY
before SRGPRO MRGDATE NAICDESC MTREF PTREF UNTIL GRIDDESC
after SRGPRO MRGDATE UNTIL GRIDDESC
before input specific this sector
after input specific this sector
before paramemters for all sector
after parameters for all sectors
before parameter specific this sector
after paramentr specific this sector
before last line
testing SRGPRO_PATH set by SRGPRO input: /Air/emismod/2016/v3/ancillary_data/ge_dat/surrogates/CONUS12_2017NEI_04mar2021/
Linux2_x86_64ifort
NOTE: Default MONTH setting to ‘jan’
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
source: Too many arguments.
after last line

I think the issue may be this:

source: Too many arguments.

Source is a c-shell command.

At the top of the script – there is a #! command to tell it the script program to execute, are you using tcsh or csh? And does the path to the script match where tcsh or csh is found in your system?

Hi @eyth.alison

The shebang line in ptnonipm daily scipt is #!/bin/csh -f

In my shell terminal,

which csh
command gives me

/bin/csh

Which looks good to me. Not sure what command is giving me the error.

instructions to debug c-shell scripts available here:

https://se.ifmo.ru/~ad/Documentation/Shells_by_Example/ch10lev1sec4.html

Try adding the following option to the top of your run script, and then re-run it.

#!/bin/csh -fxv

Hi @lizadams

I tried csh -xv scriptname, But still getting same error. The terminal output same as previous runs. From terminal output , looks all commands are executing correctly except the last line, Am I right? (I have tried modifying /bin/ls to ls in the emf script from last command, but error still there). Please see terminal output (last part) below:

setenv REPCONFIG_INV /Air/emismod/2016/v3/ancillary_data/ge_dat/smkreport/repconfig/repconfig_point_inv_2016beta_14june2021_nf_v1.txt
setenv INVTABLE “{GE_DAT}/invtable_2014platform_nointegrate_01may2019_v2.txt" setenv INVTABLE /Air/emismod/2016/v3/ancillary_data/ge_dat/invtable_2014platform_nointegrate_01may2019_v2.txt setenv GSREFTMP_A "{GE_DAT}/speciation/gsref_ptnonipm_cmaq_cb6ae7_2023gf_16j_nf.txt”
setenv GSREFTMP_A /Air/emismod/2016/v3/ancillary_data/ge_dat/speciation/gsref_ptnonipm_cmaq_cb6ae7_2023gf_16j_nf.txt
setenv GSPROTMP_A “${GE_DAT}/speciation/gspro_ptnonipm_cmaq_cb6ae7_2023gf_16j_08nov2021.txt”
setenv GSPROTMP_A /Air/emismod/2016/v3/ancillary_data/ge_dat/speciation/gspro_ptnonipm_cmaq_cb6ae7_2023gf_16j_08nov2021.txt

setenv SPC “$EMF_SPC”
setenv SPC cmaq_cb6ae7
setenv PLATFORM “v7.5”
setenv PLATFORM v7.5
setenv DEFAULT_CONV_FAC_ERROR “Y”
setenv DEFAULT_CONV_FAC_ERROR Y
setenv WRF_VERSION “3”
setenv WRF_VERSION 3
setenv MTMP_OUTPUT_YN “N”
setenv MTMP_OUTPUT_YN N
setenv NO_SPC_ZERO_EMIS “Y”
setenv NO_SPC_ZERO_EMIS Y
setenv RUN_PYTHON_ANNUAL “Y”
setenv RUN_PYTHON_ANNUAL Y
setenv INLINE_MODE “only”
setenv INLINE_MODE only
setenv SMK_PING_METHOD “0”
setenv SMK_PING_METHOD 0
setenv SMK_SPECELEV_YN “Y”
setenv SMK_SPECELEV_YN Y
setenv RAW_DUP_CHECK “N”
setenv RAW_DUP_CHECK N

setenv L_TYPE “mwdss”
setenv L_TYPE mwdss
setenv RUN_HOLIDAYS “Y”
setenv RUN_HOLIDAYS Y
setenv FULLSCC_ONLY “Y”
setenv FULLSCC_ONLY Y
setenv SMK_MAXERROR “10000”
setenv SMK_MAXERROR 10000
setenv SMK_MAXWARNING “10”
setenv SMK_MAXWARNING 10
setenv SMK_AVEDAY_YN “N”
setenv SMK_AVEDAY_YN N
setenv REPORT_DEFAULTS “Y”
setenv REPORT_DEFAULTS Y
setenv SMK_DEFAULT_SRGID “100”
setenv SMK_DEFAULT_SRGID 100
setenv SMKINVEN_FORMULA “PMC=PM10-PM2_5”
setenv SMKINVEN_FORMULA PMC=PM10-PM2_5
setenv FILL_ANNUAL “N”
setenv FILL_ANNUAL N
setenv MRG_MARKETPEN_YN “N”
setenv MRG_MARKETPEN_YN N
setenv WEST_HSPHERE “Y”
setenv WEST_HSPHERE Y
setenv MRG_REPCNY_YN “Y”
setenv MRG_REPCNY_YN Y
setenv OUTZONE “0”
setenv OUTZONE 0
setenv RENORM_TPROF “Y”
setenv RENORM_TPROF Y
setenv POLLUTANT_CONVERSION “Y”
setenv POLLUTANT_CONVERSION Y
setenv IOAPI_ISPH “20”
setenv IOAPI_ISPH 20
setenv MRG_REPSTA_YN “N”
setenv MRG_REPSTA_YN N
setenv SMKMERGE_CUSTOM_OUTPUT “Y”
setenv SMKMERGE_CUSTOM_OUTPUT Y
setenv OUTPUT_FORMAT “$EMF_AQM”
setenv OUTPUT_FORMAT CMAQ v5.2
setenv SMK_SRCGROUP_OUTPUT_YN “N”
setenv SMK_SRCGROUP_OUTPUT_YN N
setenv MRG_BYDAY “P”
setenv MRG_BYDAY P

setenv M_TYPE “mwdss”
setenv M_TYPE mwdss

$RUNSCRIPTS/emf/smk_pt_annual_byday_emf.csh $REGION_ABBREV $REGION_IOAPI_GRIDNAME -m “$RUN_MONTHS” $SPINUP_DURATION byday
/Air/emismod/2016/v3/smoke4.9/scripts/emf/smk_pt_annual_byday_emf.csh 12US2_WC 12US2 -m 1 2 3 4 5 6 7 8 9 10 11 12 0 byday
testing SRGPRO_PATH set by SRGPRO input: /Air/emismod/2016/v3/ancillary_data/ge_dat/surrogates/CONUS12_2017NEI_04mar2021/
Linux2_x86_64ifort
NOTE: Default MONTH setting to ‘jan’
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
/bin/ls: No match.
source: Too many arguments.

We were just going to suggest the same thing as Liz regarding adding the x for debugging

Also, the following:

  • add “source” to the last line of their run script “source $RUNSCRIPTS/emf/smk_pt_annual_byday_emf.csh …”

  • attempt run the daily job once more

  • upload the full standard output (not just the end, but the entirety of it - it will be large)

Can you remind us whether you are running with the provided inventory or your own?

Hi @eyth.alison ,

Please see the terminal output from csh -xv script command. I am using a modifed emissions file (onetime script is working)

% csh -xv Annual_ptnonipm_daily_12US1_2023gf_16j_TRIAL.csh

limit stacksize unlimited
limit stacksize unlimited

setenv SECTOR “ptnonipm”
setenv SECTOR ptnonipm

if ( $?SLURM_SUBMIT_DIR ) then
if ( 0 ) then

source …/directory_definitions_12US2.csh
source …/directory_definitions_12US2.csh

setenv INSTALL_DIR “/Air/emismod/2016/v3”
setenv INSTALL_DIR /Air/emismod/2016/v3

setenv MET_ROOT “/work/EMIS/met/MCIP_v4.3/WRFv3.8_12US2_2016_35aL”
setenv MET_ROOT /work/EMIS/met/MCIP_v4.3/WRFv3.8_12US2_2016_35aL

setenv MET_ROOT_3D $MET_ROOT
setenv MET_ROOT_3D /work/EMIS/met/MCIP_v4.3/WRFv3.8_12US2_2016_35aL
if ( $SECTOR == ptfire3D || $SECTOR == ptfire_othna3D || $SECTOR == ptagfire3D ) setenv MET_ROOT $MET_ROOT_3D
if ( ptnonipm == ptfire3D || ptnonipm == ptfire_othna3D || ptnonipm == ptagfire3D ) setenv MET_ROOT /work/EMIS/met/MCIP_v4.3/WRFv3.8_12US2_2016_35aL

setenv CASE “2023gf_16j”
setenv CASE 2023gf_16j

setenv REGION “Continental US 12km small”
setenv REGION Continental US 12km small
setenv REGION_ABBREV “12US2”
setenv REGION_ABBREV 12US2
setenv REGION_IOAPI_GRIDNAME “12US2”
setenv REGION_IOAPI_GRIDNAME 12US2

setenv EMF_SPC “cmaq_cb6ae7”
setenv EMF_SPC cmaq_cb6ae7

setenv SMOKE_LOCATION /home/SMOKE/subsys/smoke/Linux2_x86_64pg
setenv SMOKE_LOCATION /home/SMOKE/subsys/smoke/Linux2_x86_64pg

setenv IOAPI_LOCATION /home/IOAPI/Linux2_x86_64pg
setenv IOAPI_LOCATION /home/IOAPI/Linux2_x86_64pg

setenv MODEL_LABEL “SMOKE4.9”
setenv MODEL_LABEL SMOKE4.9

setenv PROJECT “$CASE”
setenv PROJECT 2023gf_16j
setenv OUT_ROOT “$INSTALL_DIR”
setenv OUT_ROOT /Air/emismod/2016/v3
setenv PROJECT_ROOT “$INSTALL_DIR”
setenv PROJECT_ROOT /Air/emismod/2016/v3
setenv IMD_ROOT “$PROJECT_ROOT/$CASE/intermed”
setenv IMD_ROOT /Air/emismod/2016/v3/2023gf_16j/intermed
setenv DAT_ROOT $PROJECT_ROOT
setenv DAT_ROOT /Air/emismod/2016/v3
setenv SMK_HOME “$INSTALL_DIR”
setenv SMK_HOME /Air/emismod/2016/v3
setenv CASEINPUTS “$INSTALL_DIR/2023emissions/$CASE/inputs”
setenv CASEINPUTS /Air/emismod/2016/v3/2023emissions/2023gf_16j/inputs
setenv GE_DAT “$INSTALL_DIR/ancillary_data/ge_dat”
setenv GE_DAT /Air/emismod/2016/v3/ancillary_data/ge_dat
setenv CASESCRIPTS “$PROJECT_ROOT/$CASE/scripts”
setenv CASESCRIPTS /Air/emismod/2016/v3/2023gf_16j/scripts
setenv RUNSCRIPTS “$INSTALL_DIR/smoke4.9/scripts”
setenv RUNSCRIPTS /Air/emismod/2016/v3/smoke4.9/scripts
setenv RUNSET “$CASESCRIPTS/run_settings.txt”
setenv RUNSET /Air/emismod/2016/v3/2023gf_16j/scripts/run_settings.txt
setenv ASSIGNS_FILE “$INSTALL_DIR/smoke4.9/assigns/ASSIGNS.emf”
setenv ASSIGNS_FILE /Air/emismod/2016/v3/smoke4.9/assigns/ASSIGNS.emf

setenv EMF_CLIENT false
setenv EMF_CLIENT false

setenv EMF_AQM “CMAQ v5.2”
setenv EMF_AQM CMAQ v5.2
setenv EMF_JOBNAME “Annual_area”
setenv EMF_JOBNAME Annual_area
setenv EMF_SCRIPTDIR “{CASESCRIPTS}" setenv EMF_SCRIPTDIR /Air/emismod/2016/v3/2023gf_16j/scripts setenv EMF_SCRIPTNAME "{CASESCRIPTS}/{EMF_JOBNAME}.csh" setenv EMF_SCRIPTNAME /Air/emismod/2016/v3/2023gf_16j/scripts/Annual_area.csh setenv EMF_LOGNAME "{CASESCRIPTS}/logs/$EMF_SCRIPTNAME.log”
setenv EMF_LOGNAME /Air/emismod/2016/v3/2023gf_16j/scripts/logs//Air/emismod/2016/v3/2023gf_16j/scripts/Annual_area.csh.log
setenv EMF_JOBKEY “28310_1312400444602”
setenv EMF_JOBKEY 28310_1312400444602
setenv EMF_QUEUE_OPTIONS_C “–mem-per-cpu=20g -n 1 -p compute -A emis --gid=emis-hpc -t 168:00:00”
setenv EMF_QUEUE_OPTIONS_C --mem-per-cpu=20g -n 1 -p compute -A emis --gid=emis-hpc -t 168:00:00
setenv EMF_LOGGERPYTHONDIR “$EMF_SCRIPTDIR/case_logs_python”
setenv EMF_LOGGERPYTHONDIR /Air/emismod/2016/2023gf_16j/scripts/case_logs_python
setenv EMF_JOBID “1”
setenv EMF_JOBID 1

setenv RUN_MONTHS “1 2 3 4 5 6 7 8 9 10 11 12”
setenv RUN_MONTHS 1 2 3 4 5 6 7 8 9 10 11 12
setenv SPINUP_DURATION “0”
setenv SPINUP_DURATION 0
setenv SPINUP_MONTH_END “Y”
setenv SPINUP_MONTH_END Y

setenv BASE_YEAR “2016”
setenv BASE_YEAR 2016
setenv EPI_STDATE_TIME “{BASE_YEAR}-01-01 00:00:00.0" setenv EPI_STDATE_TIME 2016-01-01 00:00:00.0 setenv EPI_ENDATE_TIME "{BASE_YEAR}-12-31 23:59:00.0”
setenv EPI_ENDATE_TIME 2016-12-31 23:59:00.0

setenv EFTABLES “{CASEINPUTS}/onroad/eftables/rateperdistance_smoke_aq_cb6_saprc_20210217_2016v3-2023-noim-20220519_47037_1.csv" setenv EFTABLES /Air/emismod/2016/v3/2023emissions/2023gf_16j/inputs/onroad/eftables/rateperdistance_smoke_aq_cb6_saprc_20210217_2016v3-2023-noim-20220519_47037_1.csv setenv ATPRO_HOURLY_NCF "{GE_DAT}/temporal/Gentpro_TPRO_HOUR_HOURLY_BASH_NH3.agNH3_bash_16j_12US1_smk37_newFIPS.ncf”
setenv ATPRO_HOURLY_NCF /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/Gentpro_TPRO_HOUR_HOURLY_BASH_NH3.agNH3_bash_16j_12US1_smk37_newFIPS.ncf
setenv MTPRO_HOURLY “{GE_DAT}/temporal/mtpro_hourly_MOVES_2014v2_25feb2021_nf_v3" setenv MTPRO_HOURLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/mtpro_hourly_MOVES_2014v2_25feb2021_nf_v3 setenv MTPRO_WEEKLY "{GE_DAT}/temporal/mtpro_weekly_MOVES_2014v2_25feb2021_nf_v3”
setenv MTPRO_WEEKLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/mtpro_weekly_MOVES_2014v2_25feb2021_nf_v3
setenv PTPRO_HOURLY “{GE_DAT}/temporal/amptpro_general_2011platform_tpro_hourly_6nov2014_18apr2022_v11" setenv PTPRO_HOURLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptpro_general_2011platform_tpro_hourly_6nov2014_18apr2022_v11 setenv PTPRO_MONTHLY "{GE_DAT}/temporal/amptpro_general_2011platform_tpro_monthly_6nov2014_12oct2021_v9”
setenv PTPRO_MONTHLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptpro_general_2011platform_tpro_monthly_6nov2014_12oct2021_v9
setenv SOURCE_GROUPS “{GE_DAT}/sa/smkmerge_groups_2011ed_ussa_US_08sep2021_v2" setenv SOURCE_GROUPS /Air/emismod/2016/v3/ancillary_data/ge_dat/sa/smkmerge_groups_2011ed_ussa_US_08sep2021_v2 setenv PTPRO_WEEKLY "{GE_DAT}/temporal/amptpro_general_2011platform_tpro_weekly_6nov2014_09sep2016_v2”
setenv PTPRO_WEEKLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptpro_general_2011platform_tpro_weekly_6nov2014_09sep2016_v2
setenv ATPRO_HOURLY “{GE_DAT}/temporal/amptpro_general_2011platform_tpro_hourly_6nov2014_18apr2022_v11" setenv ATPRO_HOURLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptpro_general_2011platform_tpro_hourly_6nov2014_18apr2022_v11 setenv ATPRO_WEEKLY "{GE_DAT}/temporal/amptpro_general_2011platform_tpro_weekly_6nov2014_09sep2016_v2”
setenv ATPRO_WEEKLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptpro_general_2011platform_tpro_weekly_6nov2014_09sep2016_v2
setenv ATPRO_MONTHLY “{GE_DAT}/temporal/amptpro_general_2011platform_tpro_monthly_6nov2014_12oct2021_v9" setenv ATPRO_MONTHLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptpro_general_2011platform_tpro_monthly_6nov2014_12oct2021_v9 setenv MTPRO_MONTHLY "{GE_DAT}/temporal/mtpro_monthly_MOVES_03aug2016_v1”
setenv MTPRO_MONTHLY /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/mtpro_monthly_MOVES_03aug2016_v1
setenv SRGPRO “{GE_DAT}/surrogates/CONUS12_2017NEI_04mar2021/USA_100_NOFILL.txt" setenv SRGPRO /Air/emismod/2016/v3/ancillary_data/ge_dat/surrogates/CONUS12_2017NEI_04mar2021/USA_100_NOFILL.txt setenv MRGDATE_FILES "{INSTALL_DIR}/smoke4.9/scripts/smk_dates/2016/smk_merge_dates_201512.txt”
setenv MRGDATE_FILES /Air/emismod/2016/v3/smoke4.9/scripts/smk_dates/2016/smk_merge_dates_201512.txt
setenv NAICSDESC “{GE_DAT}/smkreport/naicsdesc_02jan2008_v0.txt" setenv NAICSDESC /Air/emismod/2016/v3/ancillary_data/ge_dat/smkreport/naicsdesc_02jan2008_v0.txt setenv MTREF "{GE_DAT}/temporal/mtref_onroad_MOVES3_2017NEI_08nov2021_v2”
setenv MTREF /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/mtref_onroad_MOVES3_2017NEI_08nov2021_v2
setenv PTREF “{GE_DAT}/temporal/amptref_general_2017platform_26aug2022_nf_v10" setenv PTREF /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptref_general_2017platform_26aug2022_nf_v10 setenv AGREF "{GE_DAT}/gridding/agref_us_2017platform_02aug2022_nf_v14.txt”
setenv AGREF /Air/emismod/2016/v3/ancillary_data/ge_dat/gridding/agref_us_2017platform_02aug2022_nf_v14.txt
setenv PSTK “{GE_DAT}/point/pstk_13nov2018_v1.txt" setenv PSTK /Air/emismod/2016/v3/ancillary_data/ge_dat/point/pstk_13nov2018_v1.txt setenv ORISDESC "{GE_DAT}/smkreport/orisdesc_04dec2006_v0.txt”
setenv ORISDESC /Air/emismod/2016/v3/ancillary_data/ge_dat/smkreport/orisdesc_04dec2006_v0.txt
setenv PELVCONFIG “{GE_DAT}/point/pelvconfig_elevate_everything_17apr2020_v0.txt" setenv PELVCONFIG /Air/emismod/2016/v3/ancillary_data/ge_dat/point/pelvconfig_elevate_everything_17apr2020_v0.txt setenv GSCNV "{GE_DAT}/speciation/gscnv_Create_CB6R3AE7_Spec_5_2_full_06may2022_v1.txt”
setenv GSCNV /Air/emismod/2016/v3/ancillary_data/ge_dat/speciation/gscnv_Create_CB6R3AE7_Spec_5_2_full_06may2022_v1.txt
setenv HOLIDAYS “{GE_DAT}/temporal/holidays_13feb2017_v1.txt" setenv HOLIDAYS /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/holidays_13feb2017_v1.txt setenv ARTOPNT "{GE_DAT}/artopnt_2002detroit_20aug2019_v2.txt”
setenv ARTOPNT /Air/emismod/2016/v3/ancillary_data/ge_dat/artopnt_2002detroit_20aug2019_v2.txt
setenv SRGDESC “{GE_DAT}/gridding/srgdesc_CONUS12_2017NEI_17dec2019_13may2021_v3.txt" setenv SRGDESC /Air/emismod/2016/v3/ancillary_data/ge_dat/gridding/srgdesc_CONUS12_2017NEI_17dec2019_13may2021_v3.txt setenv ATREF "{GE_DAT}/temporal/amptref_general_2017platform_18apr2022_v7”
setenv ATREF /Air/emismod/2016/v3/ancillary_data/ge_dat/temporal/amptref_general_2017platform_18apr2022_v7
setenv SCCDESC “${GE_DAT}/smkreport/sccdesc_2014platform_13dec2019_v3.txt”
setenv SCCDESC /Air/emismod/2016/v3/ancillary_data/ge_dat/smkreport/sccdesc_2014platform_13dec2019_v3.txt

setenv COSTCY “{GE_DAT}/costcy_for_2017platform_20aug2020_v1.txt" setenv COSTCY /Air/emismod/2016/v3/ancillary_data/ge_dat/costcy_for_2017platform_20aug2020_v1.txt setenv GRIDDESC "{GE_DAT}/gridding/griddesc_lambertonly_18jan2019_v7.txt”
setenv GRIDDESC /Air/emismod/2016/v3/ancillary_data/ge_dat/gridding/griddesc_lambertonly_18jan2019_v7.txt

setenv REPCONFIG_GRID “{GE_DAT}/smkreport/repconfig/repconfig_point_invgrid_2011platform_11aug2014_v0.txt" setenv REPCONFIG_GRID /Air/emismod/2016/v3/ancillary_data/ge_dat/smkreport/repconfig/repconfig_point_invgrid_2011platform_11aug2014_v0.txt setenv EMISINV_A "{CASEINPUTS}/ptnonipm/FLATFILE.csv”
setenv EMISINV_A /Air/emismod/2016/v3/2023emissions/2023gf_16j/inputs/ptnonipm/FLATFILE.csv
setenv REPCONFIG_TEMP “{GE_DAT}/smkreport/repconfig/repconfig_point_temporal_2016beta_07feb2019_v0.txt" setenv REPCONFIG_TEMP /Air/emismod/2016/v3/ancillary_data/ge_dat/smkreport/repconfig/repconfig_point_temporal_2016beta_07feb2019_v0.txt setenv REPCONFIG_INV "{GE_DAT}/smkreport/repconfig/repconfig_point_inv_2016beta_14june2021_nf_v1.txt”
setenv REPCONFIG_INV /Air/emismod/2016/v3/ancillary_data/ge_dat/smkreport/repconfig/repconfig_point_inv_2016beta_14june2021_nf_v1.txt
setenv INVTABLE “{GE_DAT}/invtable_2014platform_nointegrate_01may2019_v2.txt" setenv INVTABLE /Air/emismod/2016/v3/ancillary_data/ge_dat/invtable_2014platform_nointegrate_01may2019_v2.txt setenv GSREFTMP_A "{GE_DAT}/speciation/gsref_ptnonipm_cmaq_cb6ae7_2023gf_16j_nf.txt”
setenv GSREFTMP_A /Air/emismod/2016/v3/ancillary_data/ge_dat/speciation/gsref_ptnonipm_cmaq_cb6ae7_2023gf_16j_nf.txt
setenv GSPROTMP_A “${GE_DAT}/speciation/gspro_ptnonipm_cmaq_cb6ae7_2023gf_16j_08nov2021.txt”
setenv GSPROTMP_A /Air/emismod/2016/v3/ancillary_data/ge_dat/speciation/gspro_ptnonipm_cmaq_cb6ae7_2023gf_16j_08nov2021.txt

setenv SPC “$EMF_SPC”
setenv SPC cmaq_cb6ae7
setenv PLATFORM “v7.5”
setenv PLATFORM v7.5
setenv DEFAULT_CONV_FAC_ERROR “Y”
setenv DEFAULT_CONV_FAC_ERROR Y
setenv WRF_VERSION “3”
setenv WRF_VERSION 3
setenv MTMP_OUTPUT_YN “N”
setenv MTMP_OUTPUT_YN N
setenv NO_SPC_ZERO_EMIS “Y”
setenv NO_SPC_ZERO_EMIS Y
setenv RUN_PYTHON_ANNUAL “Y”
setenv RUN_PYTHON_ANNUAL Y
setenv INLINE_MODE “only”
setenv INLINE_MODE only
setenv SMK_PING_METHOD “0”
setenv SMK_PING_METHOD 0
setenv SMK_SPECELEV_YN “Y”
setenv SMK_SPECELEV_YN Y
setenv RAW_DUP_CHECK “N”
setenv RAW_DUP_CHECK N

setenv L_TYPE “mwdss”
setenv L_TYPE mwdss
setenv RUN_HOLIDAYS “Y”
setenv RUN_HOLIDAYS Y
setenv FULLSCC_ONLY “Y”
setenv FULLSCC_ONLY Y
setenv SMK_MAXERROR “10000”
setenv SMK_MAXERROR 10000
setenv SMK_MAXWARNING “10”
setenv SMK_MAXWARNING 10
setenv SMK_AVEDAY_YN “N”
setenv SMK_AVEDAY_YN N
setenv REPORT_DEFAULTS “Y”
setenv REPORT_DEFAULTS Y
setenv SMK_DEFAULT_SRGID “100”
setenv SMK_DEFAULT_SRGID 100
setenv SMKINVEN_FORMULA “PMC=PM10-PM2_5”
setenv SMKINVEN_FORMULA PMC=PM10-PM2_5
setenv FILL_ANNUAL “N”
setenv FILL_ANNUAL N
setenv MRG_MARKETPEN_YN “N”
setenv MRG_MARKETPEN_YN N
setenv WEST_HSPHERE “Y”
setenv WEST_HSPHERE Y
setenv MRG_REPCNY_YN “Y”
setenv MRG_REPCNY_YN Y
setenv OUTZONE “0”
setenv OUTZONE 0
setenv RENORM_TPROF “Y”
setenv RENORM_TPROF Y
setenv POLLUTANT_CONVERSION “Y”
setenv POLLUTANT_CONVERSION Y
setenv IOAPI_ISPH “20”
setenv IOAPI_ISPH 20
setenv MRG_REPSTA_YN “N”
setenv MRG_REPSTA_YN N
setenv SMKMERGE_CUSTOM_OUTPUT “Y”
setenv SMKMERGE_CUSTOM_OUTPUT Y
setenv OUTPUT_FORMAT “$EMF_AQM”
setenv OUTPUT_FORMAT CMAQ v5.2
setenv SMK_SRCGROUP_OUTPUT_YN “N”
setenv SMK_SRCGROUP_OUTPUT_YN N
setenv MRG_BYDAY “P”
setenv MRG_BYDAY P

setenv M_TYPE “mwdss”
setenv M_TYPE mwdss

source $RUNSCRIPTS/emf/smk_pt_annual_byday_emf.csh $REGION_ABBREV $REGION_IOAPI_GRIDNAME -m “$RUN_MONTHS” $SPINUP_DURATION byday
source /Air/emismod/2016/v3/smoke4.9/scripts/emf/smk_pt_annual_byday_emf.csh 12US2_WC 12US2 -m 1 2 3 4 5 6 7 8 9 10 11 12 0 byday
source: Too many arguments.

OK – please try this once more:

  • Return the script to the version that he originally attempted to run (no ‘source’ at the end or any of the other things we suggested for debugging purposes)

  • Edit the first line of smoke4.9/scripts/emf/smk_pt_annual_byday.csh so it says #!/bin/csh -fx (instead of just -f)

  • Try again and send us the entire standard output. This should (hopefully!) give the detailed output I am looking for.

Hello @eyth.alison @lizadams

I tried changing the shebang line to #!/usr/bin/tcsh
And modified terminal to tcsh, Looks like it’s running. I don’t see “too many arguments” error anymore. But I am seeing error in /intermed/.

In the script , I modified following to get rid of smkreport error ( ERROR ABORT in subroutine FORMLIST - #8 by eyth.alison)

  • Use the same REPCONFIG_INV as the canada_ag sector
  • Remove REPCONFIG_INV3 from the ptnonipm run script

In the terminal, I am getting following error:

0.014u 0.011s 0:00.02 100.0% 0+0k 0+16io 0pf+0w
SCRIPT NOTE: timetracker is replacing line 2 of the TIMELOG file
now checking log file /Air/emismod/2016/v3/2023gf_16j/intermed/ptnonipm/logs/smkreport_ptnonipm_jan_2023gf_16j_temporal.log


  • ERROR detected in logfile:
  • /Air/emismod/2016/v3/2023gf_16j/intermed/ptnonipm/logs/smkreport_ptnonipm_jan_2023gf_16j_temporal.log

ERROR detected in Smkreport
ERROR: running QA & Smkreport for Temporal
log analyzer
Getting message data (might take some time)…
grep: /Air/emismod/2016/v3/2023gf_16j/intermed/ptnonipm/logs: Is a directory
grep: /Air/emismod/2016/v3/2023gf_16j/intermed/ptnonipm/logs: Is a directory
Finished getting data
Classifying message types…
Total number of known messages: 41
Total number of unknown messages: 0
Level 3 analysis…
Finished classifying message types
log analyzer
Getting message data (might take some time)…
grep: /Air/emismod/2016/v3/2023gf_16j/intermed/ptnonipm/logs: Is a directory
grep: /Air/emismod/2016/v3/2023gf_16j/intermed/ptnonipm/logs: Is a directory
Finished getting data
Classifying message types…
Total number of known messages: 41
Total number of unknown messages: 0
Level 1 analysis…
Finished classifying message types
Testing for exit priority <= 1
ERROR: At least one message’s priority is less than or equal to the exit priority: 1
ERROR: The log analyzer has detected warning or error messages in your SMOKE logs which may indicate a problem.

Then I checked the error file
smkreport_ptnonipm_jan_2023gf_16j_temporal.txt (5.5 KB)

Where I can see error:

 Value for REPLABEL:  'ptnonipm_jan'
 Value for REPLABEL:  'ptnonipm_jan'
 Reading source data from inventory file...
 Generating unique lists from inventory data...
 Reading speciation matrices...
 Reading supplemental temporal file...
 
 *** ERROR ABORT in subroutine RDREPIN
 Number of variables in TSUP file is not supported.

My EMISINV_A file in the ptnonipm script has only one pollutant (NOx). Would you please help me to solve this issue?

Thanks