Error creating netCDF file while running run_icon.csh

Hi all,

I’m trying to run ICON with benchmark input data, but error messages appeared: Error creating netCDF file.

Here is the log file of running ICON.

###############################################################################

Output File Section

###############################################################################
Value for EXECUTION_ID: ‘ICON_v52_profile.exe’
Value for EXECUTION_ID: ‘ICON_v52_profile.exe’

 Total number of ouput files created: 1
 Value for INIT_CONC_1:  '/home/dasol/CMAQ_v5.2.1/data/icon/ICON_v52_SE52BENCH/single_day/cctm_input_profile -v'
 Value for INIT_CONC_1:  '/home/dasol/CMAQ_v5.2.1/data/icon/ICON_v52_SE52BENCH/single_day/cctm_input_profile -v'


 IO/API Header data for IC file 1: INIT_CONC_1     

      EXEC_ID: ICON_v52_profile.exe                                                            
      FTYPE =    1
      SDATE =       0
      STIME =       0
      TSTEP =       0
      NCOLS =  100
      NROWS =   80
      NLAYS =   35
      NTHIK =    1
      NVARS =   76
      GDTYP =    2
      P_ALP =    3.30000E+01
      P_BET =    4.50000E+01
      P_GAM =   -9.70000E+01
      XCENT =   -9.70000E+01
      YCENT =    4.00000E+01
      XORIG =    7.92000E+05
      YORIG =   -1.08000E+06
      XCELL =    1.20000E+04
      YCELL =    1.20000E+04
      VGTYP =    7
      VGTOP =    5.00000E+03
      GDNAM = SE52BENCH       

      VGLVS =    1.00000E+00   9.97500E-01   9.95000E-01   9.90000E-01   9.85000E-01
                 9.80000E-01   9.70000E-01   9.60000E-01   9.50000E-01   9.40000E-01
                 9.30000E-01   9.20000E-01   9.10000E-01   9.00000E-01   8.80000E-01
                 8.60000E-01   8.40000E-01   8.20000E-01   8.00000E-01   7.70000E-01
                 7.40000E-01   7.00000E-01   6.50000E-01   6.00000E-01   5.50000E-01
                 5.00000E-01   4.50000E-01   4.00000E-01   3.50000E-01   3.00000E-01
                 2.50000E-01   2.00000E-01   1.50000E-01   1.00000E-01   5.00000E-02
                 0.00000E+00


      Output Variables:
      Name               Type  Units             Description
   1  NO2                5     ppmV              Variable NO2
   2  NO                 5     ppmV              Variable NO
   3  O3                 5     ppmV              Variable O3
   4  NO3                5     ppmV              Variable NO3
   5  OH                 5     ppmV              Variable OH
   6  HO2                5     ppmV              Variable HO2
   7  N2O5               5     ppmV              Variable N2O5
   8  HNO3               5     ppmV              Variable HNO3
   9  HONO               5     ppmV              Variable HONO
  10  PNA                5     ppmV              Variable PNA
  11  H2O2               5     ppmV              Variable H2O2
  12  ROOH               5     ppmV              Variable ROOH
  13  ALD2               5     ppmV              Variable ALD2
  14  IOLE               5     ppmV              Variable IOLE
  15  MGLY               5     ppmV              Variable MGLY
  16  FORM               5     ppmV              Variable FORM
  17  FACD               5     ppmV              Variable FACD
  18  CO                 5     ppmV              Variable CO
  19  PAR                5     ppmV              Variable PAR
  20  C2O3               5     ppmV              Variable C2O3
  21  AACD               5     ppmV              Variable AACD
  22  MEPX               5     ppmV              Variable MEPX
  23  PAN                5     ppmV              Variable PAN
  24  PACD               5     ppmV              Variable PACD
  25  PANX               5     ppmV              Variable PANX
  26  OLE                5     ppmV              Variable OLE
  27  ETH                5     ppmV              Variable ETH
  28  TOL                5     ppmV              Variable TOL
  29  CRES               5     ppmV              Variable CRES
  30  OPEN               5     ppmV              Variable OPEN
  31  ISOP               5     ppmV              Variable ISOP
  32  SO2                5     ppmV              Variable SO2
  33  SULF               5     ppmV              Variable SULF
  34  ETHA               5     ppmV              Variable ETHA
  35  BENZENE            5     ppmV              Variable BENZENE
  36  HG                 5     ppmV              Variable HG
  37  HGIIGAS            5     ppmV              Variable HGIIGAS
  38  ASO4J              5     micrograms/m**3   Variable ASO4J
  39  ASO4I              5     micrograms/m**3   Variable ASO4I
  40  AXYL1J             5     micrograms/m**3   Variable AXYL1J
  41  AXYL2J             5     micrograms/m**3   Variable AXYL2J
  42  AXYL3J             5     micrograms/m**3   Variable AXYL3J
  43  ATOL1J             5     micrograms/m**3   Variable ATOL1J
  44  ATOL2J             5     micrograms/m**3   Variable ATOL2J
  45  ATOL3J             5     micrograms/m**3   Variable ATOL3J
  46  ABNZ1J             5     micrograms/m**3   Variable ABNZ1J
  47  ABNZ2J             5     micrograms/m**3   Variable ABNZ2J
  48  ABNZ3J             5     micrograms/m**3   Variable ABNZ3J
  49  ATRP1J             5     micrograms/m**3   Variable ATRP1J
  50  ATRP2J             5     micrograms/m**3   Variable ATRP2J
  51  AISO1J             5     micrograms/m**3   Variable AISO1J
  52  AISO2J             5     micrograms/m**3   Variable AISO2J
  53  ASQTJ              5     micrograms/m**3   Variable ASQTJ
  54  ACORS              5     micrograms/m**3   Variable ACORS
  55  ASOIL              5     micrograms/m**3   Variable ASOIL
  56  NUMATKN            5     #/m**3            Variable NUMATKN
  57  NUMACC             5     #/m**3            Variable NUMACC
  58  NUMCOR             5     #/m**3            Variable NUMCOR
  59  SRFATKN            5     m**2/m**3         Variable SRFATKN
  60  SRFACC             5     m**2/m**3         Variable SRFACC
  61  SRFCOR             5     m**2/m**3         Variable SRFCOR
  62  AISO3J             5     micrograms/m**3   Variable AISO3J
  63  AOLGAJ             5     micrograms/m**3   Variable AOLGAJ
  64  AOLGBJ             5     micrograms/m**3   Variable AOLGBJ
  65  NH3                5     ppmV              Variable NH3
  66  SV_XYL1            5     ppmV              Variable SV_XYL1
  67  SV_XYL2            5     ppmV              Variable SV_XYL2
  68  SV_TOL1            5     ppmV              Variable SV_TOL1
  69  SV_TOL2            5     ppmV              Variable SV_TOL2
  70  SV_BNZ1            5     ppmV              Variable SV_BNZ1
  71  SV_BNZ2            5     ppmV              Variable SV_BNZ2
  72  SV_TRP1            5     ppmV              Variable SV_TRP1
  73  SV_TRP2            5     ppmV              Variable SV_TRP2
  74  SV_ISO1            5     ppmV              Variable SV_ISO1
  75  SV_ISO2            5     ppmV              Variable SV_ISO2
  76  SV_SQT             5     ppmV              Variable SV_SQT
 
 Value for IOAPI_CHECK_HEADERS not defined;returning default:   FALSE
 Value for IOAPI_OFFSET_64:  NO returning FALSE
 Value for IOAPI_CFMETA not defined;returning default:   FALSE
 Value for IOAPI_CMAQMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_CMAQMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_SMOKEMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_SMOKEMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_TEXTMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_TEXTMETA not defined; returning defaultval ':  'NONE'
 Error creating netCDF file
 netCDF error number    2  processing file "INIT_CONC_1"
 No such file or directory
 No such file or directory
 /home/dasol/CMAQ_v5.2.1/data/icon/ICON_v52_SE52BENCH/single_day/cctm_input_profile
 
 *** ERROR ABORT in subroutine OPN_IC_FILE
 Could not open nor create INIT_CONC_1      file

0.015u 0.021s 0:00.03 100.0% 0+0k 0+0io 0pf+0w
exit ( )

And here is run_icon.csh

run_icon.txt (4.5 KB)

Please, I need your help.
Thank you.

In your run script, you should not set APPL to a directory structure, it is intended to be just a string used for labeling output files.

In your run script, the following is used:

set APPL = SE52BENCH/single_day/cctm_input

set OUTDIR = $CMAQ_DATA/icon #> output file directory

Since $CMAQ_DATA is /home/dasol/CMAQ_v5.2.1/data/, with these settings the output file is then set to /home/dasol/CMAQ_v5.2.1/data/icon/ICON_v52_SE52BENCH/single_day/cctm_input_profile, but directory /home/dasol/CMAQ_v5.2.1/data/icon/ICON_v52_SE52BENCH/single_day/cctm_input likely doesn’t exist, causing the error. APPL should just be set to SE52BENCH or another string of your choice, not a directory structure.

We also don’t advise to use ICON and BCON for version 5.2 and instead recommend using ICON and BCON for version v5.3 or later.

Thank you for your detailed help.

I changed the APPL as SE52BENCH, and fixed the path of GRIDDESC and LAYER_FILE, so it did work!