"""
This example shows how to run the CCTM benchmark case using the `CMAQModel` class.

You should run this inside a tmux window because this ties up the terminal.
"""

from cmaqpy.runcmaq import CMAQModel

# Specify the start/end times
start_datetime = 'August 06, 2016'  # first day that you want run
end_datetime = 'August 14, 2016'  # DAY AFTER the last day you want run

# Specify if you want to run the 12 km or the 4 km domain
# appl = '2016_4OTC2'
appl = '2016Base_4OTC2'

# Specify if you want to run or just setup cctm
setup_only = False

# Specify the coordinate name (must match that in GRIDDESC)
coord_name = 'LAM_40N97W'
if appl == '2016_4OTC2':
    grid_name = '4OTC2' 
elif appl == '2016Base_4OTC2':
    grid_name = '4OTC2'

# Specify the coarse grid application name
if appl == '2016_4OTC2':
    crs_grid_appl = '2016_12OTC2' 
elif appl == '2016Base_4OTC2':
    crs_grid_appl = '2016Base_12OTC2'

# Create a CMAQModel object
cmaq_sim = CMAQModel(start_datetime, end_datetime, appl, coord_name, grid_name, 
    setup_yaml=f'dirpaths_{appl}.yml', new_bcon=True, bcon_vrsn='v532', bcon_type='regrid', verbose=True)

# Call the "run_bcon" method
cmaq_sim.run_bcon_multiday(coarse_grid_appl=crs_grid_appl, run_hours=2, setup_only=False)

"""
This example shows how to run the CCTM benchmark case using the `CMAQModel` class.

You should run this inside a tmux window because this ties up the terminal.
"""

from cmaqpy.runcmaq import CMAQModel

# Specify the start/end times
start_datetime = 'August 06, 2016'  # first day that you want run
end_datetime = 'August 14, 2016'  # DAY AFTER the last day you want run

# Specify if you want to run the 12 km or the 4 km domain
# appl = '2016_4OTC2'
appl = '2016Base_4OTC2'

# Specify if you want to run or just setup cctm
setup_only = False

# Specify the coordinate name (must match that in GRIDDESC)
coord_name = 'LAM_40N97W'
if appl == '2016_4OTC2':
    grid_name = '4OTC2' 
elif appl == '2016Base_4OTC2':
    grid_name = '4OTC2'

# Specify the coarse grid application name
if appl == '2016_4OTC2':
    crs_grid_appl = '2016_12OTC2' 
elif appl == '2016Base_4OTC2':
    crs_grid_appl = '2016Base_12OTC2'

# Create a CMAQModel object
cmaq_sim = CMAQModel(start_datetime, end_datetime, appl, coord_name, grid_name, 
    setup_yaml=f'dirpaths_{appl}.yml', new_bcon=True, bcon_vrsn='v532', bcon_type='regrid', verbose=True)

# Call the "run_bcon" method
cmaq_sim.run_bcon_multiday(coarse_grid_appl=crs_grid_appl, run_hours=2, setup_only=False)

This example shows how to run the CCTM benchmark case using the `CMAQModel` class.  You should run this inside a tmux window because this ties up the terminal. # Specify the start/end times # first day that you want run # DAY AFTER the last day you want run # Specify if you want to run the 12 km or the 4 km domain # appl = '2016_4OTC2' # Specify if you want to run or just setup cctm # Specify the coordinate name (must match that in GRIDDESC) # Specify the coarse grid application name # Create a CMAQModel object # Call the "run_bcon" method