Skip to content

Commit

Permalink
Merge pull request #14 from NCAR/develop
Browse files Browse the repository at this point in the history
Bringing fork up to date 4/6/2018
  • Loading branch information
malloryprow authored Apr 6, 2018
2 parents 8896c6b + b887cf9 commit f837edd
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ branches:
- develop

script:
METplus/internal_tests/stand_alone/test_produtil_for_metplus.py -c METplus/internal_tests/stand_alone/produtil_for_METplus.conf
#METplus/internal_tests/stand_alone/test_produtil_for_metplus.py -c METplus/internal_tests/stand_alone/produtil_for_METplus.conf
20 changes: 20 additions & 0 deletions parm/use_cases/hwt/create_met_poly.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env python

import json
import datetime

now = datetime.datetime.now()
today_date = now.strftime("%Y%m%d")

domain_file = "/raid/efp/se2018_web/web_data/sector_bounds/hwt_primary."+today_date+".json"
json_data = open(domain_file).read()
domain_data = json.loads(json_data)
corner_pts = domain_data["corners"]

#Write output file
outfile = open("HWTSE_"+today_date+".poly","w")
outfile.write("HWTSE_"+today_date+"\n")
for pts in corner_pts:
outfile.write(str(pts[0])+" "+str(pts[1])+"\n")

outfile.close()
23 changes: 12 additions & 11 deletions parm/use_cases/hwt/grid2grid_hrrre.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ LOOP_BY_INIT = false
# Format of VALID_BEG and VALID_END
VALID_TIME_FMT = %Y%m%d%H
# Start time for MET+ run
VALID_BEG = 2018040200
VALID_BEG = 2018040500
# End time for MET+ run
VALID_END = 2018040201
VALID_END = 2018040506
# Increment between MET+ runs in seconds. Must be > 60
VALID_INC = 3600

Expand All @@ -24,17 +24,18 @@ FCST_VAR1_LEVELS = L0
#FCST_VAR2_LEVELS = P850, P500, P250

# list of forecast leads to process
LEAD_SEQ = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
#LEAD_SEQ = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
LEAD_SEQ = 0, 1

#MODEL_TYPE = HRRRe01, HRRRe02, HRRRe03, HRRRe04, HRRRe05, HRRRe06, HRRRe07, HRRRe08, HRRRe09
MODEL_TYPE = HRRRe01, HRRRe02
MODEL_TYPE = HRRRe01, HRRRe02, HRRRe03, HRRRe04, HRRRe05, HRRRe06, HRRRe07, HRRRe08, HRRRe09
#MODEL_TYPE = HRRRe01, HRRRe02
OB_TYPE = MRMS

GRID_STAT_CONFIG = /home/christina.kalb/METplus/parm/met_config/GridStatConfig_hwt
GRID_STAT_OUT_DIR = /home/christina.kalb/metout

# HRRRe Model Options:
FCST_GRID_STAT_INPUT_DIR = /raid/efp/se2017/ftp/gsd
FCST_GRID_STAT_INPUT_DIR = /raid/efp/se2018/ftp/gsd

FCST_REFC_0_THRESH = 25, 30, 35, 40, 45, 50

Expand All @@ -45,16 +46,16 @@ FCST_IS_PROB = false

# MRMS REFC Observation Data Parameters
OBS_NATIVE_DATA_TYPE = GRIB2
OBS_GRID_STAT_INPUT_DIR = /raid/efp/se2017/ftp/gsd
OBS_GRID_STAT_INPUT_DIR = /raid/roberts/data/obs/mrms

OBS_REFC_0_THRESH = 25, 30, 35, 40, 45, 50

VERIFICATION_POLY = HWTSE
VERIFICATION_POLY = HWTSE.poly

[filename_templates]
# HRRRe
#FCST_GRID_STAT_INPUT_TEMPLATE = {init?fmt=%Y%m%d%H}/hrrre01_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre02_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre03_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre04_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre05_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre06_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre07_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre08_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre09_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2
FCST_GRID_STAT_INPUT_TEMPLATE = {init?fmt=%Y%m%d%H}/hrrre01_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre02_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2
FCST_GRID_STAT_INPUT_TEMPLATE = {init?fmt=%Y%m%d%H}/hrrre01_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre02_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre03_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre04_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre05_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre06_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre07_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre08_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre09_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2
#FCST_GRID_STAT_INPUT_TEMPLATE = {init?fmt=%Y%m%d%H}/hrrre01_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2, {init?fmt=%Y%m%d%H}/hrrre02_{init?fmt=%Y%m%d%H}f{lead?fmt=%HHH}.grib2

# MRMS REFC
OBS_GRID_STAT_INPUT_TEMPLATE = {valid?fmt=%Y%m%d%H}/hrrre01_{valid?fmt=%Y%m%d%H}f000.grib2
OBS_GRID_STAT_INPUT_TEMPLATE = {valid?fmt=%Y}/{valid?fmt=%m}/{valid?fmt=%d}/hrrre01_{valid?fmt=%Y%m%d%H}f000.grib2

0 comments on commit f837edd

Please sign in to comment.