isofit.utils.add_HRRR_profiles_to_modtran_config
- class HRRR_to_MODTRAN_profiles(config_file)[source]
Bases:
object
This class assumes that the MODTRAN config file has already been filled with the correct run data, including time, lat/lon, etc.
- create_profiles(template)[source]
Create MODTRAN profile strings from HRRR data. For example:
print(self.prof_altitude)
yields:
{ “TYPE”: “PROF_ALTITUDE”, “UNITS”: “UNT_KILOMETERS”, “PROFILE”: [1.224, 2.000, 3.000, 4.000, 5.000, 6.000, 7.000, 8.000, 9.000, 10.000, 11.000, 12.000, 13.000, 14.000, 15.000, 16.000, 17.000, 18.000, 19.000] }
- download_HRRR(DATE, model='hrrr', field='sfc', hour=range(0, 24), fxx=range(0, 1), OUTDIR='./')[source]
# Brian Blaylock # February 13, 2018
# Updated December 10, 2018 for Python 3
# Modified from original by Jay Fahlen to not download the file if it already exists. # March 4, 2020
Download archived HRRR files from MesoWest Pando S3 archive system.
Please register before downloading from our HRRR archive: http://hrrr.chpc.utah.edu/hrrr_download_register.html
For info on the University of Utah HRRR archive and to see what dates are available, look here: http://hrrr.chpc.utah.edu/
Contact: brian.blaylock@utah.edu
Downloads from the University of Utah MesoWest HRRR archive Input:
DATE - A date object for the model run you are downloading from. model - The model type you want to download. Default is ‘hrrr’
Model Options are [‘hrrr’, ‘hrrrX’,’hrrrak’]
- field - Variable fields you wish to download. Default is sfc, surface.
Options are fields [‘prs’, ‘sfc’,’subh’, ‘nat’]
hour - Range of model run hours. Default grabs all hours of day. fxx - Range of forecast hours. Default grabs analysis hour (f00). OUTDIR - Directory to save the files.
- Outcome:
Downloads the desired HRRR file and renames with date info preceeding the original file name (i.e. 20170101_hrrr.t00z.wrfsfcf00.grib2)