Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

convert_emiss.F in WRFChem v4.0

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

Hi all,
Currently I am trying to run WRFChem v4.0. In order to run it, I need to generate the NEI emission using the new convert_emiss.exe in WRFChem v4.0, since I can not use the wrfchemi_d* files generated from previous versions of WRFChem, even I use the following option in the namelist.input
force_use_old_data = .true.
I still can not run wrf.exe.

However, while running convert_emiss.exe, I got an error saying
.............................................
Time period # 25 to process = 2015-06-02_00:00:00
Total analysis times to input = 25
Total number of times to input = 25 25
At line 1265 of file convert_emiss.f90 (unit = 91, file = 'wrfem_00to12z_d01')
Fortran runtime error: I/O past end of record on unformatted file
...............................................
The wrfem_00to12z_d01 was generated from emiss_v04.F. I tried it on convert_emiss.exe in WRFChem v3.5, it worked well.

So I compared convert_emiss.F between WRFChem v3.5 and v4.0, and found a lot of difference. I am not sure whether you have the experiences on dealing with this error. It seems that it stopped at reading the following statement in convert_emiss.F
........................................................
read(91)dname
........................................................

Any ideas? Thank you very much

Best,
Zhifeng
 
Hello Fellow WRF-Chem Users,

I am having the same problem with convert_emiss.exe. I was trying to run it on WRF-Chem V.4.0 but the error below is persisting.

Under V.4.0
Number of emissions: 31
EMISSIONS INPUT FILE TIME PERIOD (GMT): 0 TO 1
dims: 1 1 1
dims: 80 31 50 20
dims: 1 1 1
dims: 80 31 50
dims: 91 20 61 43 3
dims: 81 20 51
At line 1452 of file convert_emiss.f90 (unit = 91, file = 'wrfem_00to12z_d01')
Fortran runtime error: I/O past end of record on unformatted file


But I have also run into a similar problem with WRF-Chem V.3.6. If you find another way to convert the emission files please share, I would greatly appreciate it.

Under V.3.6
EMISSIONS OUTPUT file name: wrfchemi_00z_d01
WRITE EMISSIONS 1
FRAMES: 12 12
LOOP: 2 12
Date & time 2013-06-03_01:00:00.0000
Hour 0
USING FILE: wrfem_00to12z_d01 1
Reading data from file: 0
At line 1587 of file convert_emiss.f90 (unit = 91, file = 'wrfem_00to12z_d01')


Thank you,
JC
 
For version before WRFChem v4.0, I used convert_emiss.exe of WRFChem v3.5, since it does not require version match before WRFChem v3.9.

Good luck!
Zhifeng
 
Hi, ZHifeng and JC

I am using convert_emiss.exe with WRF-Chem V4.0.3, but got the following error.

###################################################################################
READ GOCART BACKGROUND DATA
forrtl: severe (24): end-of-file during read, unit 19, file /work/06098/quwj/stampede2/WRF-Chem/WRF/test/em_real/wrf_gocart_backg
Image PC Routine Line Source
convert_emiss.exe 0000000003993C03 for__io_return Unknown Unknown
convert_emiss.exe 00000000039C178C for_read_seq Unknown Unknown
convert_emiss.exe 000000000049FE17 Unknown Unknown Unknown
convert_emiss.exe 000000000040C65E Unknown Unknown Unknown
libc-2.17.so 00002AE6F3C303D5 __libc_start_main Unknown Unknown
convert_emiss.exe 000000000040C569 Unknown Unknown Unknown
###################################################################################

Do we need an older version of WRF-Chem to convert emission?

Is there any other method to solve this issue?

p.s. Can the anthro-emiss utiltiy be used to create anthoropogenic emission for WRF-Chem run?

Thanks a lot.


Wenjun
 
Hi Wenjun,

From the error, it seems that it's related to the gocart emission file. Have you tried to read and plot some variables from the wrf_gocart_backg file? Make sure you can read it and the plot looks reasonable. Good luck! I have not figure out the anthro_emission problem for version 4.0. I am using previous versions.

Zhifeng
 
Thanks, Zhifeng

I plotted some records of the wrf_gocart_backg file, find it can read and plot (attached).

But by change the line in namelist.input " debug_level = 1,", I got more printing in the rsl.error.0000 with the begin part pasted below.

Does this mean there is some mistake in the NetCDF library or in the "wrf_io.F90" file?

Would you please take a look and give some suggestion?

Thanks a lot.


Wenjun



微信图片_20190404124622.jpg


#################################################################################################
taskid: 0 hostname: c455-004.stampede2.tacc.utexas.edu
module_io_quilt_old.F 2931 T
Ntasks in X 16 , ntasks in Y 16
WRF-CHEM V4.0.3 EMISSIONS PREPROCESSOR
*************************************
Parent domain
ids,ide,jds,jde 1 41 1 41
ims,ime,jms,jme -4 10 -4 10
ips,ipe,jps,jpe 1 3 1 3
*************************************
DYNAMICS OPTION: Eulerian Mass Coordinate
alloc_space_field: domain 1 , 31302708 bytes allocated
open file wrfinput_d01
wrf main: calling open_r_dataset for wrfinput
med_initialdata_input: calling input_input
Input data is acceptable to use: wrfinput_d01
mminlu = 'MODIFIED_IGBP_MODIS_NOAH'
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_no
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_no2
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_co
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_co2
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_eth
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_hc3
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_hc5
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_hc8
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_ete
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_olt
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_oli
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_pm25
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_pm10
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_dien
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_iso
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_api
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_lim
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_tol
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_csl
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_hcho
NetCDF error: NetCDF: Variable not found
NetCDF error in wrf_io.F90, line 2883 Varname ebu_in_ald
NetCDF error: NetCDF: Variable not found



#################################################################################################
 
Top