run.emproc.v210.d01.csh (2.3 KB)
Dear teachers, I met something unknown when I run emproc after I got txt2 and met2mgn output files successfully. As you can see, there is not any error returned but also not any outputfile I got from emproc program. It just finish suddenly without any sign and I got not log file so no ideas about what happened. Hope some kind teachers may help me. I felt that almost got the result of MEGAN.
From the very beginning, one of the requirements of the CMAQ system was reliable error detection and management. Among other things, there was a large amount of experience that said log-checking was not adequate.
The solution was put into place, then ignored by the contractors who wrote the original scripts, and was not in the training of those who “learned on the job.”
Linux (and UNIX) processes always return an error-status number as $status, whether they were killed by the system or whether they “terminated normally” – 0 for success, and non-zero for failure. (For system related termination, these codes are defined in /usr/include/errno.h; the shell-command perror reports an explanatory message.) The M3EXIT I/O API call always returns the programmer’s selected error-status number for further use in error detection and management.
Scripts should always check program-status and act accordingly. For example:
my_program
set estat = ${status}
if ( ${estat} ) then
perror ${estat}
echo "Error ${estat} in program my_program. Exiting"
exit ${estat}
endif
sorry, I meant no log files returned also. I found that the error reason may be the from value of VGTYP which is produced by MCIP and occured in mcipout files and met2mgn files. VGTYP is 7 in other guys files while in my output files is -9999 and that why it can’t be read by EMPROC I guess. Now I doubt that it the problem of MEGAN version.
You are concerned about an issue in MCIP. Thus, you should focus on MCIP rather than SMOKE. Have you tried upgrading the version of MCIP? I used to encounter the same issue but it has been a while thus I don’t recall how to address.
In short, the issue seems to be that the MEGAN emproc program does not know how to handle the VGTYP “-9999” token value used by convention in MCIP when the hybrid vertical coordinate system was used in WRF. emproc likely was coded before this convention was introduced in MCIP5.0
I do not know why emproc looks for VGTYP and what if anything it might be used for in the actual MEGAN emissions calculations. You would have to examine the emproc Fortran source code and then update it to handle the case when VGTYP is -9999.
Thank you so much! I didnt realize that Mr.jeff was meaning that I should use MEGAN module within CMAQ v5.4 rather than running MEGAN offine individually. It seems that to get biogenic emission data, if I use the latest version of CMAQ, the only program I have to run is TXT2IOAPI. I’ll go update MEGAN (mentioned as downstream program in earlier thread)and try use the newer CMAQ to simplify the work.