Help: Modify the namelist.input options

Submitted by lliu on Tue, 06/21/2022 - 09:47

This seems to be a very simple question. But I don't seem to find the complete answer or a specific example for it. I want to modify the wrf output interval, say 1 hour. The default setting is 3h. I tried to pass the command "time_control.history_interval=60" in section [moad_namelist] in the .conf file (written by myself) in launcher wrapper, but the result came out still 3 hours in the wrf output files.

Help, please?

Could you check the file namelist.input in the running directory to make sure that history_interval=60?

Thanks!

Linlin 

Yes, that's what I wanted to do.

But not sure how to do it in HWRF. I put the line time_control.history_interval=60 in section [moad_namelist] in my own configure file, and pass the .conf file in the launcher.wrapper file. This way works for modifying physics.mp_physics option in namelist.input. But it doesn't work for history_interval option. Because after the launcher.wrapper and gfs_init.wrapper, the option history_interval in the namelist.input are still set as 180. I wish I could just manually set up the option, but don't know where. I believe that the gfs_init.wrapper generates the namelist.input files automatically every time it runs, so I can't just manually modify those namelist.input files directly.

You need to change the variable wrf_output_step in parm/hwrf.conf

## WRF forecast output frequency in seconds

#

# Output frequency of the main WRF output stream, in integer seconds

# greater than 0.  Valid values are 10800, 3600 or anything that

# integer divides 3600.  In the special case of 10800, the output will

# still be hourly from hours 0-9.  Examples:

#

# Value | Output Hours 0-9           | Output After Hour 9

# ----- | -------------------------- | ----------------------

# 10800 | Every 3600 Seconds (1hr)   | 10800 seconds (3hrs)

# 3600  | Every 3600 Seconds (1hr)   | 3600 seconds (1hr)

# 1800  | Every 1800 Seconds (30min) | 1800 seconds (30 min)

# 900   | Every 900 Seconds (15 min) | 900 seconds (15 min)

Thanks!

Permalink

In reply to by linlin.pan

Thank you so much, Linlin!

I noticed that variable in hwrf.conf too. So I modified it as "wrf_output_step=3600" in hwrf.conf, no other changes (no history_interval change). It ran through forecast wrapper no problem. So I do get the hourly wrf output files in runwrf directory. Great! Many thanks!!!

However, the GRIB files in products are still in 3 hours. Further question: How do I get the GRIB files in hourly as well?

I did get "Exit_status=1" error in post wrapper. It seems that it disabled the auxhist2 and auxhist3 (I didn't touch those in hwrf.conf). My guess is that when I modify the wrf_output_step option, it automatically disables auxhist2 and auxhist3. I am not clear what those auxhist2 and auxhist3 for exactly (additional variables in domain 2 and domain3?) Here is the related error message in running post wrapper:

Traceback (most recent call last):
  File "/glade/scratch/lliu/HWRFv4.0/hwrfrun/scripts/exhwrf_post.py", line 125, in <module>
    post()
  File "/glade/scratch/lliu/HWRFv4.0/hwrfrun/scripts/exhwrf_post.py", line 73, in post
    set_meter_for('model',hwrf_expt.runwrf,check=True)
  File "/glade/scratch/lliu/HWRFv4.0/hwrfrun/scripts/exhwrf_post.py", line 31, in set_meter_for
    streams=['history','auxhist2','auxhist3'],check=check)
  File "/glade/scratch/lliu/HWRFv4.0/hwrfrun/ush/hwrf/fcsttask.py", line 1657, in last_completed_time
    return self.__ex.last_completed_time(streams,check=check)
  File "/glade/scratch/lliu/HWRFv4.0/hwrfrun/ush/hwrf/wrf.py", line 1415, in last_completed_time
    for out in domain.get_outputs(stream):
  File "/glade/scratch/lliu/HWRFv4.0/hwrfrun/ush/hwrf/wrf.py", line 474, in get_outputs
    (start,end,interval)=self.get_output_range(stream)
  File "/glade/scratch/lliu/HWRFv4.0/hwrfrun/ush/hwrf/wrf.py", line 398, in get_output_range
    'Stream %s is disabled for domain %s'%(stream,repr(self)))
hwrf.exceptions.OutputStreamDisabled: Stream auxhist2 is disabled for domain <WRFDomain name=moad>
Job Id: 4797573.chadmin1.ib0.cheyenne.ucar.edu