CohenBerkeleyLab / AutoWRFChem-R2SMH

Fully implemented Auto WRF Chem set to use Azimeh's R2SMH chemistry
4 stars 1 forks source link

Error of prepinpt (prepare NEI emissions) #4

Open zxdawn opened 6 years ago

zxdawn commented 6 years ago

This is the log of ./autowrfchem prepinpt:

/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 6: unexpected EOF while looking for matching `"'
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 7: syntax error: unexpected end of file
Pass: All raw met files found
Pass: WPS constants file found.

Pass: Found NEI/2011/area4k and NEI/2011/point

Pass: Found lai* files under MEGAN/data.

Pass: MOZBC meets safety check (10 deg buffer around domain, time period checked)
Could not find 'grid_fdda' in specified namelist
Running WPS...
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 6: unexpected EOF while looking for matching `"'
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 7: syntax error: unexpected end of file
ln: failed to create symbolic link ‘GEOGRID.TBL.BACKUP’: File exists
Linking GEOGRID.TBL.ARW_CHEM as GEOGRID.TBL.
ln: failed to create symbolic link ‘Vtable.BACKUP’: File exists
Running emiss_v04...
Running convert_emiss.exe
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/bestemissyear.py: Emissions will use year 2011
 starting wrf task            0  of            1
real.exe failed with exit code 1 when running the 00-12z period for NEI emissions
You should run it directly (with mpirun if compiled in parallel) and check any output to
identify the problem
Skipping the remainder of convert_emiss
Running MEGAN
 starting wrf task            0  of            1
Running MOZBC...
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 6: unexpected EOF while looking for matching `"'
/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 7: syntax error: unexpected end of file
FB0001.nc
Using R2SMH.inp as the input
One or both of wrfchemi_00z_d01, wrfchemi_12z_d01 are not present in run directory
Aborting MOZBC because previous input preparation steps failed.
.............
..............

As you can see, there're errors when preparing NEI emissions. So, I tested real.exe and convert_emiss.exe directly. First, I wrote a test.sh in /WRF/run and it got no errors:

#!/bin/bash
./real.exe
realexit=$?
if [ $realexit -ne 0 ]; then
    echo "real.exe failed with exit code $realexit when running the 00-12z period for NEI emissions"
    echo "You should run it directly (with mpirun if compiled in parallel) and check any output to"
    echo "identify the problem"
    echo "Skipping the remainder of convert_emiss"
    exit 1
fi

Then, I checked compile_emi-conv.log which has no error and tested convert_emiss.exe:

..........................
 *              wrfchemhelp.gsd@noaa.gov                             *
 *                                                                   *
 *********************************************************************
    past opening wrfinput_d01
 Time period #   1 to process = 2011-08-30_21:00:00
 Time period #   2 to process = 2011-08-30_22:00:00
 Time period #   3 to process = 2011-08-30_23:00:00
 Time period #   4 to process = 2011-08-31_00:00:00
 Time period #   5 to process = 2011-08-31_01:00:00
 Time period #   6 to process = 2011-08-31_02:00:00
 Time period #   7 to process = 2011-08-31_03:00:00
 Time period #   8 to process = 2011-08-31_04:00:00
 Time period #   9 to process = 2011-08-31_05:00:00
 Time period #  10 to process = 2011-08-31_06:00:00
 Time period #  11 to process = 2011-08-31_07:00:00
 Time period #  12 to process = 2011-08-31_08:00:00
 Time period #  13 to process = 2011-08-31_09:00:00
 Time period #  14 to process = 2011-08-31_10:00:00
 Time period #  15 to process = 2011-08-31_11:00:00
 Time period #  16 to process = 2011-08-31_12:00:00
 Time period #  17 to process = 2011-08-31_13:00:00
 Time period #  18 to process = 2011-08-31_14:00:00
 Time period #  19 to process = 2011-08-31_15:00:00
 Time period #  20 to process = 2011-08-31_16:00:00
 Time period #  21 to process = 2011-08-31_17:00:00
 Time period #  22 to process = 2011-08-31_18:00:00
 Time period #  23 to process = 2011-08-31_19:00:00
 Time period #  24 to process = 2011-08-31_20:00:00
 Time period #  25 to process = 2011-08-31_21:00:00
 Total analysis times to input =   25
 Total number of times to input =   25   25
forrtl: severe (43): file name specification error, unit 91, file "Unknown"
Image              PC                Routine            Line        Source
convert_emiss.exe  0000000002AB2688  for__io_return        Unknown  Unknown
convert_emiss.exe  0000000002ACD704  for_open              Unknown  Unknown
convert_emiss.exe  000000000041A1E7  Unknown               Unknown  Unknown
convert_emiss.exe  000000000040C9DE  Unknown               Unknown  Unknown
libc-2.17.so       00002AEBC34B2C05  __libc_start_main     Unknown  Unknown
convert_emiss.exe  000000000040C8E9  Unknown               Unknown  Unknown

Is this related to the difference between namelist.wps and emiss_v04.F? But, emiss_v04.F should read the geographic variables directly from namelist.wps.

behr-github commented 6 years ago

Please post wrfbuild.cfg as well. there is something strange going on in there

On Sun, Jun 3, 2018 at 7:24 AM, Xin Zhang notifications@github.com wrote:

This is the log of ./autowrfchem prepinpt:

/nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 6: unexpected EOF while looking for matching `"' /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 7: syntax error: unexpected end of file Pass: All raw met files found Pass: WPS constants file found.

Pass: Found NEI/2011/area4k and NEI/2011/point

Pass: Found lai* files under MEGAN/data.

Pass: MOZBC meets safety check (10 deg buffer around domain, time period checked) Could not find 'grid_fdda' in specified namelist Running WPS... /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 6: unexpected EOF while looking for matching "' /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 7: syntax error: unexpected end of file ln: failed to create symbolic link ‘GEOGRID.TBL.BACKUP’: File exists Linking GEOGRID.TBL.ARW_CHEM as GEOGRID.TBL. ln: failed to create symbolic link ‘Vtable.BACKUP’: File exists Running emiss_v04... Running convert_emiss.exe /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/bestemissyear.py: Emissions will use year 2011 starting wrf task 0 of 1 real.exe failed with exit code 1 when running the 00-12z period for NEI emissions You should run it directly (with mpirun if compiled in parallel) and check any output to identify the problem Skipping the remainder of convert_emiss Running MEGAN starting wrf task 0 of 1 Running MOZBC... /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 5: $'\n': command not found /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 6: unexpected EOF while looking for matching"' /nuist/p/work/yinyan/xin/BEHR/AutoWRFChem-R2SMH/BUILD/PREPINPUT/../wrfbuild.cfg: line 7: syntax error: unexpected end of file FB0001.nc Using R2SMH.inp as the input One or both of wrfchemi_00z_d01, wrfchemi_12z_d01 are not present in run directory Aborting MOZBC because previous input preparation steps failed. ............. ..............

As you can see, there're errors when preparing NEI emissions. So, I tested real.exe and convert_emiss.exe directly. First, I wrote a test.sh in /WRF/run and it got no errors:

!/bin/bash

./real.exe realexit=$? if [ $realexit -ne 0 ]; then echo "real.exe failed with exit code $realexit when running the 00-12z period for NEI emissions" echo "You should run it directly (with mpirun if compiled in parallel) and check any output to" echo "identify the problem" echo "Skipping the remainder of convert_emiss" exit 1 fi

Then, I checked compile_emi-conv.log which has no error and tested convert_emiss.exe:

..........................

  • wrfchemhelp.gsd@noaa.gov *
  • *

    past opening wrfinput_d01 Time period # 1 to process = 2011-08-30_21:00:00 Time period # 2 to process = 2011-08-30_22:00:00 Time period # 3 to process = 2011-08-30_23:00:00 Time period # 4 to process = 2011-08-31_00:00:00 Time period # 5 to process = 2011-08-31_01:00:00 Time period # 6 to process = 2011-08-31_02:00:00 Time period # 7 to process = 2011-08-31_03:00:00 Time period # 8 to process = 2011-08-31_04:00:00 Time period # 9 to process = 2011-08-31_05:00:00 Time period # 10 to process = 2011-08-31_06:00:00 Time period # 11 to process = 2011-08-31_07:00:00 Time period # 12 to process = 2011-08-31_08:00:00 Time period # 13 to process = 2011-08-31_09:00:00 Time period # 14 to process = 2011-08-31_10:00:00 Time period # 15 to process = 2011-08-31_11:00:00 Time period # 16 to process = 2011-08-31_12:00:00 Time period # 17 to process = 2011-08-31_13:00:00 Time period # 18 to process = 2011-08-31_14:00:00 Time period # 19 to process = 2011-08-31_15:00:00 Time period # 20 to process = 2011-08-31_16:00:00 Time period # 21 to process = 2011-08-31_17:00:00 Time period # 22 to process = 2011-08-31_18:00:00 Time period # 23 to process = 2011-08-31_19:00:00 Time period # 24 to process = 2011-08-31_20:00:00 Time period # 25 to process = 2011-08-31_21:00:00 Total analysis times to input = 25 Total number of times to input = 25 25 forrtl: severe (43): file name specification error, unit 91, file "Unknown" Image PC Routine Line Source convert_emiss.exe 0000000002AB2688 for__io_return Unknown Unknown convert_emiss.exe 0000000002ACD704 for_open Unknown Unknown convert_emiss.exe 000000000041A1E7 Unknown Unknown Unknown convert_emiss.exe 000000000040C9DE Unknown Unknown Unknownlibc-2.17.so 00002AEBC34B2C05 __libc_start_main Unknown Unknown convert_emiss.exe 000000000040C8E9 Unknown Unknown Unknown

Is this related to the difference between namelist.wps and emiss_v04.F? But, emiss_v04.F should read the geographic variables directly from namelist.wps.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CohenBerkeleyLab/AutoWRFChem-R2SMH/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ANM0VP62IV6BggB1lEPprwKywbKSzQMdks5t4_GygaJpZM4UYGk_ .

-- Josh Laughner Graduate Student, Cohen Research Lab B47 Hildebrand Hall, Berkeley, CA 94720 jlaughner@berkeley.edu

zxdawn commented 6 years ago

@behr-github After recompiling, I find there was a surplus quotation mark at the end of wrfbuild.cfg before. But, it has the same error with correct wrfbuild.cfg file like this:

metType=NARR
metDir='/nuist/u/home/yinyan/xin/scratch/data/NARR'
mozbcFile="FB0001.nc"
zxdawn commented 6 years ago

@behr-github This is the bug of convert_emiss.exe which only supports start_hour=00:00.