still on MOZBC

76 views
Skip to first unread message

Akinyoola Julius

unread,
Mar 28, 2022, 8:46:29 AM3/28/22
to wrf-chem
Dear all,
Thank you so much for your prompt response last time, the information was helpful.

I have downloaded  mozbc datasets in the following format
and I have 12 of such files for each stand for a month and it is from January to December 2011
Now, in the tutorial I was using , I need to do the following link
ln -s mozart4geos5-ZZZZ.nc ha0004.nc            #copy as link to "rename'

so that I can use ha0004.nc in the name list as
fn_moz  = 'ha0004.nc'

Do I need to run one month at a time and run 12 times or what can I do to run at once
with this command  ./mozbc < mozbc.inp > mozbc.out

with kind regards
Julius Akinyoola

Gabriele Pfister

unread,
Mar 28, 2022, 12:40:14 PM3/28/22
to Akinyoola Julius, wrf-chem
Julius

if your filenames are e.g. h0001.nc, h0002.nc, h0003.nc etc. in chronological order, then mozbc will automatically increment the filename. 

Gabi
--
================================
Gabriele Pfister, Deputy Director
Atmospheric Chemistry Observations & Modeling
National Center for Atmospheric Research (NCAR)
Email: pfi...@ucar.edu
Temporary Home Office Phone: +1 303 241 1329
Work Phone: +1 303 497 2915
Web: https://staff.ucar.edu/users/pfister

Akinyoola Julius

unread,
Apr 2, 2022, 9:09:46 AM4/2/22
to wrf-chem, Gabriele Pfister, wrf-chem, Akinyoola Julius
Dear Dr.. Pfister,
Greetings and thank  youfor the all help so far.
I tried to followed your instruction  with the following variable in the mozbc namelist

could not open the file was the error flag

I also tried to run for fn_moz  = 'h0001.nc'
th eerror flag as follows

next_flnm; trying to increment file h0002.nc
 next_flnm; il, iu =            2           5
 next_flnm; file_number =            2
 next_flnm; new file = h0001.nc
 init_mozart_lib: opened /home/jakinyoola/lustre/WRFCHEMSETUP/mozbc/h0001.nc
 init_mozart_lib: time     20101001             0
                  is before
                      20101101             0
                  the first time in mozart file h0001.nc

This shows that after h0001.nc it is looking for h0002.nc

do I need to do something differently in arranging the files in chronological order as above

with kind regards
Julius

Gabriele Pfister

unread,
Apr 2, 2022, 3:04:57 PM4/2/22
to Akinyoola Julius, wrf-chem
Hi Julius

please try the following: 
  • Do not start the file numbering with h0000.nc but use h0001.nc for the naming of the first file. 
  • in the mozbc namelist, only set: n_moz  = 'h0001.nc'  
    mozbc will automatically look for h0002.nc and so on if it cannot find the needed date in h0001.nc
  • make sure your input files include the full time period that is set in your wrfbdy_{domain}
    To check on this use: ncdump -v date,datesec {filename}
Hope this helps
Gabi

behrooz roozitalab

unread,
Apr 2, 2022, 4:47:33 PM4/2/22
to wrf-chem, omoaki...@gmail.com
Hi Julius,

If the above mentioned tips still did not work, combining all the files with a simple nco command may do the trick:
ncrcat  file1.nc file2.nc ... output.nc 
 
You can then use output.nc 

Best,
Behrooz
Reply all
Reply to author
Forward
0 new messages