Downloading and Compiling MET

Similar documents
File Formats and Pre-Processing

Stat Analysis Tool. Filtering Summarizing Aggregating. of Grid-Stat, Point-Stat, & Wavelet-Stat output

Downloading and Compiling MET

Model Evaluation Tools (MET)

Model Evaluation Tools (MET)

Model Evaluation Tools Version 3.0 (METv3.0) User s Guide 3.0.2

Model Evaluation Tools Version 5.0 (METv5.0) User s Guide 5.0

Introduction to MODE

Unifying Verification through a Python-wrapped Suite of Tools

WRF-NMM Standard Initialization (SI) Matthew Pyle 8 August 2006

MET+ MET+ Unified Package. Python wrappers around MET and METViewer: Python wrappers

IPSL Boot Camp Part 5:

WRF Utilities. Cindy Bruyère

BUFR/PrepBUFR File Processing

PyNGL & PyNIO Geoscience Visualization & Data IO Modules

Community Tools (1) - PrepBUFR/BUFR: Basic tools, NCEP data, and BUFR table

Instituting an observation database (ODB) capability in the GSI

NCL variable based on a netcdf variable model

Instituting an observation database

GSI Setup, Run and Namelist

Interpolation. Computer User Training Course Paul Dando. User Support. ECMWF 25 February 2016

EnKF Fundamentals (2b): Applications

Metview BUFR Tutorial. Meteorological Visualisation Section Operations Department ECMWF

REQUEST FOR A SPECIAL PROJECT

McIDAS-V Tutorial Displaying Gridded Data updated January 2016 (software version 1.5)

Atmospheric Model Evaluation Tool (AMET) Installation Guide

Moving Weather Model Ensembles To A Geospatial Database For The Aviation Weather Center

Gridded data from many sources

BUFR decoding. Dominique Lucas User Support. February Intro Bufr decoding

Big changes coming to ECMWF Product Generation system

Guide to WMO Table Driven Code Forms: FM 94 BUFR. and FM 95 CREX

BUFR/PrepBUFR User s Guide Version 1.0 Draft

Interpolation. Introduction and basic concepts. Computer User Training Course Paul Dando. User Support Section.

NWP Test suite: Present Status. COSMO General Meeting, 7-10 Sept 2015, Wroclaw, Poland : NWP Test suite session

Model Evaluation Tools Tropical Cyclone Version 4.1 (MET- TC) User s Guide

TIGGE and the EU Funded BRIDGE project

Geographic Information System and its Application in Hydro-Meteorology Exercises using SavGIS

Projections for use in the Merced River basin

QUALITY CONTROL FOR UNMANNED METEOROLOGICAL STATIONS IN MALAYSIAN METEOROLOGICAL DEPARTMENT

Unified Model Intercomparisons for Volcanic Ash Transport Modeling

Syed RH Rizvi.

About the SPEEDY model (from Miyoshi PhD Thesis):

Introduction to ECMWF resources:

Ecography. Supplementary material

GSI fundamentals (4): Background Error Covariance and Observation Error

McIDAS-V - A powerful data analysis and visualization tool for multi and hyperspectral environmental satellite data *

McIDAS-V Tutorial Installation and Introduction updated September 2015 (software version 1.5)

Introduction of new WDCGG website. Seiji MIYAUCHI Meteorological Agency

Observation feedback archiving in MARS. Acknowledgement:

ECMWF New Users Metview Tutorial

A brief introduction 1 to retrieving ERA Interim via the web and webapi

Adapting Software to NetCDF's Enhanced Data Model

MEA 716 WRF Homework, Data Case Spring WRF Real-Data Case Study Simulation

Start > All Programs > OpenGrADS 2.0 > Grads Prompt

Uniform Resource Locator Wide Area Network World Climate Research Programme Coupled Model Intercomparison

Progress in the assimilation of GPS-RO at ECMWF

ARW WRF Graphical Packages ARWpost & NCL. Cindy Bruyère

MODIS Atmosphere: MOD35_L2: Format & Content

NWSDSS. Hydrologic Engineering Center National Weather Service to Data Storage System Conversion Utility. User's Manual. Version 5.

Community Tools (1) - PrepBUFR/BUFR: Basic tools, NCEP data tank, and Obsproc

GrADS for Beginners. Laura Mariotti

IMS CLDB and EnviDB. Universal & Reliable Climate Database Management System. IMS CLDB and EnviDB Climatological and Integrated Environmental Database

Distributed Online Data Access and Analysis

AHW Post Processing. Cindy Bruyère. WRF Tutorial for Hurricanes Mesoscale & Microscale Meteorological Division / NCAR

NetCDF-4: : Software Implementing an Enhanced Data Model for the Geosciences

ARPS-3dvar Program. 1. Introduction

SeeG3 Users Manual V2.00 Micro-g Solutions Inc. Erie, Colorado, USA

McIDAS-V Tutorial Using and Creating Formulas updated September 2013 (software version 1.4)

WRF Data Assimilation System: Software and Compilation

Getting Started with GCHP v11-02c

Data Management in BMKG. Database Center, BMKG July 11, 2017

OPeNDAP: Accessing HYCOM (and other data) remotely

NetCDF and Scientific Data Durability. Russ Rew, UCAR Unidata ESIP Federation Summer Meeting

Meteorology and Python

McIDAS-V Tutorial Displaying Gridded Data updated June 2015 (software version 1.5)

Using ODB at ECMWF. Piotr Kuchta Sándor Kertész. Development Section ECMWF. Slide 1. MOS Workshop, 2013 November 18-20, ECMWF

WRF Post-Processing and Visualization

McIDAS-V Tutorial Importing Data from Text Files updated July 2016 (software version 1.6)

Examples, examples: Outline

Metview Macro Language

CMhyd User Manual. Documentation for preparing simulated climate change data for hydrologic impact studies

Generation of WRF-ARW Background Errors (BE) For GSI

The WMO table driven codes: The 21 st century universal observation codes

Distributed flow routing model: 1K FRM event. Demonstration and Project

Computing Seminar Introduction Oct

Dynamics of the Atmosphere GEMPAK Supplementary Handout

A Nearly Complete Guide to the UEMS V15 Appendix A-1

CORDEX DOMAINS (plus Arctic & Antarctica)

GSI Fundamentals (5): Review and Applications

Metview FLEXTRA Tutorial. Meteorological Visualisation Section Operations Department ECMWF

Metview s new Python interface

Magics support in CDO

The inclusion of cloudy radiances in the NCEP GSI analysis system

Spatial Distributions of Precipitation Events from Regional Climate Models

Introduction to the ESMValTool

Format specification for the SMET Weather Station Meteorological Data Format version 1.1

EF5 Overview. University of Oklahoma/HyDROS Module 1.3

SES 123 Global and Regional Energy Lab Procedures

COM INTRO 2016: GRIB Decoding - Solutions to practicals. Solution to Practical 1: using grib_dump and grib_ls

GSI Setup, Run and Namelist

Transcription:

Downloading and Compiling MET John Halley Gotway

Release History METv0.9: Beta release July, 2007 METv1.0: First official release January, 2008 METv1.1: Incremental upgrades July, 2008 METv2.0: Probabilistic forecasts April, 2009 METv3.0: Ensembles September, 2010 METv3.0.1: Bugfixes March 17, 2011 METv3.1: Internal streamlining Jan 13, 2012 Pre-installed on tutorial machines 1550+ registered users from 102 countries 50/25/15/10%: University/Gov t/nonprofit/private 30/15/7/3%: USA/China/India/Italy On-line and hands-on tutorials

Downloading MET Download MET release and compile locally. Register and download: www.dtcenter.org/met/users Language: Primarily in C++ with calls to a Fortran library Supported Platforms and Compilers: 1. Linux with GNU compilers 2. Linux with Portland Group (PGI) compilers 3. Linux with Intel compilers 4. IBM machines with IBM compilers

www.dtcenter.org/met/users

Dependencies REQUIRED: GNU Make Utility ( IBM C++/Fortran Compilers (GNU, PGI, Intel, or Library BUFRLIB Library GNU Scientific Library (GSL) F2C or G2C Library (only for some compilers) RECOMMENDED: Unified Post-Processor ( WRF-Post COPYGB (included with R statistics and graphics package

Directory Structure File or Directory Contents README Makefile_gnu (pgi, intel, ibm) lib/ include/ src/ doc/ bin/ scripts/ data/ out/ Installation instructions and release notes. Top-level Makefile to be configured prior to building MET. Compiled libraries. Header files MET Source code. MET User s Guide. Built MET executables. Test scripts to be run after building MET. Sample data used by the test scripts. Output generated by the test scripts.

Building MET Steps for building MET: 1. Build required libraries. Same family of compilers for MET 2. Download and unpack latest MET patches. 3. Select the appropriate Makefile. GNU, PGI, Intel, or IBM 4. Edit the Makefile. C++ and Fortran compilers Paths for, BUFRLIB, and GSL libraries 5. Run Make to build all of the MET tools. 6. Run the test script and check for runtime errors. Runs each of the MET tools at least once. Uses sample data distributed with the tarball.

METv3.1 Flowchart Input Reformat Statistics Analysis Gridded GRIB Input: Observation Analyses Model Forecasts Point Obs Gen Poly Mask PCP Combine 2NC Mask Gridded Point Obs MODE Wavelet Stat Grid Stat Ensemble Stat PS STAT PS STAT STAT MODE Analysis Stat Analysis PrepBufr Point Obs PB2NC Point Obs Point Stat STAT = optional

Configuration Files MET tools controlled using command line options and configuration files Well commented and documented in MET User s Guide Easy to modify Distributed with the tarball Configuration files control things such as: Fields/levels to be verified Thresholds to be applied Interpolation methods to be used Verification methods to be applied Regions over which to accumulate statistics

Graphics Limited graphics incorporated into MET Options for plotting MET statistical output R, NCL, IDL, GNUPlot, and many others Sample plotting scripts on MET website Future METViewer database/display system

R Statistics and Graphics The R Project for Statistical Computing (www.r-project.org) Powerful statistical analysis and plotting tools Large and growing user community Freely available and well supported for Linux/Windows/Mac Sample R plotting and analysis scripts posted on the MET website Use R to plot data in the practical sessions

Getting Started with MET A Typical Use Case John Halley Gotway

Use Case: Point Verification Input Reformat Statistics Analysis Gridded GRIB Input: Observation Analyses Model Forecasts Point Obs Gen Poly Mask PCP Combine 2NC Mask Gridded Point Obs MODE Wavelet Stat Grid Stat Ensemble Stat PS STAT PS STAT STAT MODE Analysis Stat Analysis PrepBufr Point Obs PB2NC Point Obs Point Stat STAT = optional

Use Case: 2-m Temperature Verify 2-m temperature versus PREPBUFR point observations. Initialized 2008080712 with 3-hourly output to 48h Run WRFOUT through WPP to create GRIB Unidata s IDV for display

Use Case: Find Observations MET downloads page. NCAR CISL Site: DS337.0 Global PREPBUFR point observations

Use Case: Get Observations Register and log in NCAR CISL Site: DS337.0 Select 20080807 through 20080809 Pull daily PREPBUFR files

Use Case: Process Observations GDAS PREPBUFR 4/day in 6-hr chunks nr = not restricted Run each through pb2nc All observation types Full 6-hr time window Quality marker of 9 Only over CONUS

Use Case: Plot 2-m TMP Obs 2-m TMP obs in ADPSFC message type Run plot_point_obs utility to display obs

Use Case: Verify 2-m TMP Fcst Run point_stat to compare gridded forecast to point observations. Once/fcst time Obs +/- 5 min Bilinear interp Score over FULL model domain Continuous statistics line (incl RMSE)

Use Case: Continuous Statistics One STAT output file for each lead time Continuous line type (CNT) including CI s Column 48hr fcst Column 48hr fcst TOTAL 1457 MAE 2.80773 FBAR 289.5036 MSE 11.48314 FSTDEV 4.68925 BCMSE 6.26405 OBAR 291.7881 RMSE 3.38868 OSTDEV 4.57281 E10-5.22182 PR_CORR 0.85415 E25-3.89106 ME -2.28453 E50-2.37744 ESTDEV 2.50367 E75-0.74697 MBIAS 0.99217 E90 0.85191

Use Case: Time Series of RMSE? Investigate 48hr RMSE = 3.39

Use Case: Conclusions Need to investigate 33 hr lead time Clear diurnal cycle for surface temperature RMSE best in the morning (perfect RMSE = 0) RMSE worst in the evening Performance degrades as lead time increases Too little data to make strong conclusions This is a single initialization Verify/aggregate over a month, season, or year

File Formats and Pre-Processing File Formats Pre-processing Tools Useful Links Tressa L. Fowler

FILE FORMATS

Supported File Formats Forecasts GRIB GRIdded Binary file format (*version 1) specificmet andpinterpwrffromoutput network Common Data Format Observations PREPBUFR binary dataset prepared by NCEP from varied data sources. METspecific format (10-cols x n-rows) gridded GRIB i.e. NEXRAD Level II or IV METspecific MADIS netcdf RAOB and METAR observations WWMCA World Wide Merged Cloud Analysis

GRIB vs GRIB2 GRIB (or GRIB1): Until 2008 NCEP and other WMO organizations have historical data in GRIB1 Unified postprocessor (UPP) produces GRIB1 format using copygb Performs horizontal interpolation and destaggering (in the case of WRF-NMM) onto a defined grid. Useful for both cores in creating an output grid not fixed by the model integration domain. http://www.dtcenter.org/wrf-nmm/users/downloads/ GRIB2: NCEP and other WMO organizations now use GRIB 2 as the standard for gridded binary data. At least two GRIB2toGRIB1 converters available NCEP cnvgrib http://www.nco.ncep.noaa.gov/pmb/codes/grib2/ UCAR/CISL Grib Converter http://dss.ucar.edu/libraries/grib/c.html

New for V3.0 PINTERP output This utility interpolates WRF-ARW netcdf output files to user specified pressure levels. Utility can also destagger grid WRF Online Tutorial has more information on PINTERP utility WMMCA satellite product Binary Produced by Air Force

Data Inventory Tools wgrib dumps GRIB1 headers and data. http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html wgrib2 dumps GRIB2 headers and data. http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/ ncdump - dumps headers and data. ncview plots gridded data. http://www.unidata.ucar.edu/software/netcdf/ GrADS command line interface to produce plots. http://www.iges.org/grads/downloads.html NCL command line interface to produce plots. http://www.ncl.ucar.edu/ IDV gui-driven visualization of many gridded and point datasets. http://www.unidata.ucar.edu/software/idv/

PRE-PROCESSING TOOLS

Pre-Processing / Reformatting Input Reformat Statistics Analysis Gridded GRIB Input: Observation Analyses Model Forecasts Point Obs Gen Poly Mask PCP Combine 2NC Mask Gridded Point Obs MODE Wavelet Stat Grid Stat Ensemble Stat PS STAT PS STAT STAT MODE Analysis Stat Analysis PrepBufr Point Obs PB2NC Point Obs Point Stat STAT = optional

Data Reformating Tools PB2NC, 2NC, MADIS2NC Arrange observational data into the point format expected by Point-Stat. PCP_Combine (optional) Sum precipitation values across two or more time periods. Subtract precipitation values to create values for finer subperiods. Produces gridded file that can be used as input grid for any Statistics tool. Gen_Poly_Mask (optional) Used when more complex masking is needed. Produces a file of pre-defined mask. May be used for masking in any Statistics tools.

1. PB2NC Tool Stands for PREPBUFR to Functionality: Filters and reformats PREPBUFR point observations into intermediate format. Configuration file specifies: Observation types, variables, locations, elevations, quality marks, and times to retain or derive for use in Point-Stat. Data formats:. BUFRLIBNCEP susingprepbufrreads Writes point as input to Point-Stat.

PREPBUFR BUFR is the World Meteorological Organization (WMO) standard binary code for the representation and exchange of observational data. http://www.nco.ncep.noaa.gov/sib/decoders/bufrlib/ http://www.ecmwf.int/products/data/software/ The PREPBUFR format is produced by NCEP for analyses and data assimilation. The system that produces this format: Assembles observations dumped from a number of sources Encodes information about the observational error for each data type background (first guess) interpolation for each data location Performs both rudimentary multi-platform quality control and more complex platform-specific quality control North American and Global datasets MET currently only supports PREPBUFR.

PB2NC: Usage Usage: pb2nc prepbufr_file netcdf_file config_file [-pbfile prepbufr_file] [-valid_beg time] [-valid_end time] [-nmsg n] [-dump path] [-v level] prepbufr_file netcdf_file config_file -pbfile -valid_beg -valid_end -nmsg -dump Input obs file in PrepBufr format Output name for file PB2NC configuration file Additional input PrepBufr files Beginning of valid time window [YYYYMMDD_[HH[MMSS]] End of valid time window [YYYYMMDD_[HH[MMSS]] Number of PrepBufr messages to process Dump entire contents o PrepBufr file to file in path -v Level of logging

PB2NC: Run METv3.1/bin/pb2nc \ ndas.t00z.prepbufr.tm12.20070401.nr \ out/tutorial_pb.nc PB2NCConfig_tutorial -v 2 ==> append : to filename to view the data source BUFR 230ADPUPA UPPER-AIR (RAOB, PIBAL, RECCO, DROPS) REPORTS 231AIRCAR MDCRS ACARS AIRCRAFT REPORTS 232AIRCFT AIREP/PIREP, AMDAR(ASDAR/ACARS), E-ADAS(AMDAR BUFR) ACF233SATWND SATELLITE-DERIVED WIND REPORTS 234PROFLR WIND PROFILER REPORTS 235VADWND VAD (NEXRAD) WIND REPORTS 236SATEMP TOVS SATELLITE DATA (SOUNDINGS, RETRIEVALS, RADIANCES) 237ADPSFC SURFACE LAND (SYNOPTIC, METAR) REPORTS 238SFCSHP SURFACE MARINE (SHIP, BUOY, C-MAN PLATFORM) REPORTS 239SFCBOG MEAN SEA-LEVEL PRESSURE BOGUS REPORTS 240SPSSMI SSM/I RETRIEVAL PRODUCTS (REPROCESSED WIND SPEED, TPW) 241SYNDAT SYNTHETIC TROPICAL CYCLONE BOGUS REPORTS 242ERS1DA ERS SCATTEROMETER DATA (REPROCESSED WIND SPEED) 243GOESND GOES SATELLITE DATA (SOUNDINGS, RETRIEVALS, RADIANCES) 244QKSWND QUIKSCAT SCATTEROMETER DATA (REPROCESSED WIND SPEED) 245MSONET MESONET SURFACE REPORTS (COOPERATIVE NETWORKS) 246GPSIPW GLOBAL POSITIONING SATELLITE-INTEGRATED PRECIP. WATER 247RASSDA RADIO ACOUSTIC SOUNDING SYSTEM (RASS) TEMP PROFILE RPTSM063000BYTCNT What obs are in a PREPBUFR file? >less \ ndas.t00z.prepbufr.tm12.20070401.nr

2. 2NC Tool Stands for to Functionality: Reformat point observations into intermediate format. One input format supported (10 columns). No configuration file. Data formats: Reads MET Point. Writes point as input to Point-Stat. Future: support additional standard formats.

2NC: Usage Usage: ascii2nc ascii_file netcdf_file [-format ascii_format] [-v level] ascii_file netcdf_file -format Input obs file in format Output name for file Override default MET Point format (Future Option) -v Level of logging

Msg STID ValidTime Lat Lon Message type WMO Station ID Valid time for observation Latitude [North] Longitude [East] Elev Elevation [m] (Note: currently not used by MET code so can be filled with -9999.) GC Lvl Hgt Ob MET Point Format Msg STID ValidTime Lat Lon Elev GC Lvl Hgt Ob ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 7 837.0 1618 1618 ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 11 837.0 1618 273.05 ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 17 837.0 1618 271.85 ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 52 837.0 1618 92 ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 53 837.0 1618 0.00417 ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 7 826.0 1724 1724 ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 11 826.0 1724 274.55 GRIB code for variable (i.e. AccPrecip = 61; MSLP = 2; Temp = 11, etc ) http://www.cpc.ncep.noaa.gov/products/wesley/opn_gribtable.html Pressure [mb] or Accumulation Interval [hr] Height above Mean Sea Level [m MSL] (Note: currently not used by MET code so can be filled with -9999.) Observed value

MET specific Format Msg STID ValidTime Lat Lon Elev GC Lvl Hgt Ob Ob assigns value to variable ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 7 837.0 1618 1618 *HGT ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 11 837.0 1618 273.05 *TMP ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 17 837.0 1618 271.85 *DPT ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 52 837.0 1618 92 *RH ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 53 837.0 1618 0.00417 *MixRat ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 7 826.0 1724 1724 *HGT ADPUPA 72365 20070331_120000 35.03-106.62 1618.0 11 826.0 1724 274.55.. *TMP Msg STID ValidTime Lat Lon Message type WMO Station ID Valid time for observation Latitude [North] Longitude [East] Elev Elevation [m] (Note: currently not used by MET code so can be filled with -9999.) GC Lvl Hgt Ob GRIB code for variable (i.e. AccPrecip = 61; MSLP = 2; Temp = 11, etc ) http://www.cpc.ncep.noaa.gov/products/wesley/opn_gribtable.html Pressure [mb] or Accumulation Interval [hr] Height above Mean Sea Level [m MSL] (Note: currently not used by MET code so can be filled with -9999.) Observed value * Use a value of "-9999" to indicate missing data

2NC: Run METv3.1/bin/ascii2nc sample_obs.txt sample_ascii.nc -v 2 netcdf sample_ascii { dimensions: mxstr = 15 ; hdr_arr_len = 3 ; obs_arr_len = 5 ; nhdr = 5 ; nobs = UNLIMITED ; // (2140 currently) variables: char hdr_typ(nhdr, mxstr) ; Result of ncdump h Result of ncdump v obs_arr hdr_typ:long_name = "message type" ; char hdr_sid(nhdr, mxstr) ; hdr_sid:long_name = "station identification" ; char hdr_vld(nhdr, mxstr) ; hdr_vld:long_name = "valid time" ; hdr_vld:units = "YYYYMMDD_HHMMSS UTC" ; float hdr_arr(nhdr, hdr_arr_len) ; hdr_arr:long_name = "array of observation station header values" ; hdr_arr:_fill_value = -9999.f ; hdr_arr:columns = "lat lon elv" ; ; float obs_arr(nobs, obs_arr_len) ; obs_arr:long_name = "array of observation values" ; obs_arr:_fill_value = -9999.f ; obs_arr:columns = "hdr_id gc lvl hgt ob" ; obs_arr:hdr_id_long_name = "index of matching header data" ; ; obs_arr = 0, 7, 837, 1618, 1618, 1, 11, 837, 1618, 273.05, 2, 17, 837, 1618, 271.85, 3, 52, 837, 1618, 92, 4, 53, 837, 1618, 0.00417, 5, 7, 826, 1724, 1724, 6, 11, 826, 1724, 274.55, 7, 17, 826, 1724, 272.15, 8, 52, 826, 1724, 84, 9, 53, 826, 1724, 0.00432, 10, 7, 815.3, 1829, 1829, 11, 11, 815.3, 1829, 276.45, 12, 17, 815.3, 1829, 265.75, 13, 52, 815.3, 1829, 45, 14, 53, 815.3, 1829, 0.0027, 15, 7, 815, 1832, 1832, 16, 11, 815, 1832, 276.55, 17, 17, 815, 1832, 265.55, 18, 52, 815, 1832, 44, 19, 53, 815, 1832, 0.00266, 20, 7, 784.7, 2134, 2134, 21, 11, 784.7, 2134, 274.05, 22, 17, 784.7, 2134, 264.15, 23, 52, 784.7, 2134, 47,

3. PCP-Combine Tool Stands for Precip-Combine Functionality: Mathematically combines precipitation fields across multiple files. Add precipitation over 2 files 2 NMM output files to go from 3-hr to 6-hr accumulation. Sum precipitation over more than 2 files 12 WSR-88D Level II data to go from 5 min accumulation to 1-hr accumulation. Subtract precipitation in 2 files 2 ARW output files to go from 12 hr accumulations to 6 hour accumulation Specify field name on the command line. No configuration file. Data formats: Reads GRIB format. Writes gridded as input to stats tools.

PCP-Combine: Usage Usage: pcp_combine [-sum sum_args] or [-add add_args] or [-subtract sub_args] [-gc code] [-v level] -sum -add -subtract -gc Accumulates data over multiple files. Sum_args: (init_time, in_accum, valid_time, out_accum, out_file, -pcpdir path, -pcprx reg_exp) Accumulates data over two files. Add_args: (in_file1, Accum1, in_file2, Accum2, out_file). Subtracts data over two files. Sub_args: (in_file1, Accum1, in_file2, Accum2, out_file). GRIB code for variable (i.e. ACPC = 61; NCPCP =62; ACPCP =63, etc ). -v Level of logging

PCP-Combine: Run Two example command lines 1) Summing two 6-hourly accumulation forecast files into a single 12-hour accumulation forecast. METv3.1/bin/pcp_combine \ -add 20050807_060000.grb 6 \ 20050807_120000.grb 6 \ sample_fcst.nc -pcpdir data/2005080700 2) Summing 12 1-hourly accumulation observation files into a single 12-hour accumulated observation. METv3.1/bin/pcp_combine \ -sum 00000000_000000 1 \ 20050807_120000 12 \ sample_obs.nc -pcpdir data/st2ml

PCP-Combine: Example #1 20050807_060000 6hr acc 20050807_120000 6hr acc + 20050807_120000 12 hr acc Graphics produced using ncview

4. Gen Poly Mask Tool Stands for Generate Polyline Mask Functionality: Uses a lat/lon polyline to generate a 0/1 mask field to be applied to your data. Applies this mask once prior to running Point-Stat or Grid-Stat No configuration file. Data formats: Reads formatted polyline file. Reads GRIB file. Reads files from PCP-Combine. Writes gridded file of 0/1 mask. Accumulated Precip Accumulated Precip CONUS 31.1931-120.4211 31.2291-120.4976 31.2650-120.5741 31.3009-120.6123 31.3369-120.6506 31.3728-120.6888 31.4087-120.6888 31.4447-120.7270 992 more points

MET Point-Stat Tool John Halley Gotway

Point-Stat Tool Input Reformat Statistics Analysis Gridded GRIB Input: Observation Analyses Model Forecasts Point Obs Gen Poly Mask PCP Combine 2NC Mask Gridded Point Obs MODE Wavelet Stat Grid Stat Ensemble Stat PS STAT PS STAT STAT MODE Analysis Stat Analysis PrepBufr Point Obs PB2NC Point Obs Point Stat STAT = optional

Point-Stat: Overview Compare gridded forecasts to point observations. Accumulate matched pairs over a defined area at a single point in time. Verify one or more variables/levels. Analysis tool provided to aggregate through time. Verification methods: Continuous statistics for raw fields. Single and Multi-Category counts and statistics for thresholded fields. Parametric and non-parametric confidence intervals for statistics. Compute partial sums for raw fields and/or the raw matched pair values. Methods for probabilistic forecasts.

Point-Stat: Input/Output Input Files Gridded forecast file GRIB output of Unified Post-Processor (or other) output of PCP-Combine or p_interp Point observation file output of PB2NC, 2NC, or MADIS2NC configuration file Output Files statistics file with all output lines (end with.stat ) Optional files sorted by line type with a header row (ends with _TYPE.txt )

Point-Stat: Usage Usage: point_stat fcst_file obs_file config_file [-climo climo_file] [-point_obs netcdf_file] [-fcst_valid time] [-fcst_lead time] [-obs_valid_beg time] [-obs_valid_end time] [-outdir path] [-v level] fcst_file obs_file config_file -climo -point_obs -fcst_valid -fcst_lead GRIB or NC forecast file NC point observation file (PB2NC or 2NC) configuration file Climo file for computing anomaly partial sums Additional NC point observation files Forecast valid time Forecast lead time -obs_valid_beg Beginning of valid time window for matching -obs_valid_end End of valid time window for matching -outdir Output directory to be used -v Level of logging

Point-Stat: Configuration 28 configurable parameters only set a few: Temperature at the surface (2-meter). fcst_field[] = [ TMP/Z2 ]; Temperature below freezing. fcst_thresh[] = [ gt273 gt283 gt293 ]; Match to observations at the surface. message_type[] = [ ADPSFC ]; Look at all the points in my domain. mask_grid[] = [ FULL ]; Match observation to the nearest forecast value. interp_wdth[] = [1]; Generate all possible statistic types, except probabilistic. output_flag[] = [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 2 ];

Point-Stat: Input 2-meter TMP 4255 TMP ADPSFC Obs

Point-Stat: Run METv3.0/bin/point_stat \ sample_fcst.grb sample_pb.nc \ PointStatConfig_TMPZ2 -outdir out -v 2 Forecast File: sample_fcst.grb Climatology File: none Configuration File: PointStatConfig_TMPZ2 Observation File: sample_pb.nc -------------------------------------------------------------------------------- Reading records for TMP/Z2. For TMP/Z2 found 1 forecast levels and 0 climatology levels. -------------------------------------------------------------------------------- Searching 89759 observations from 9716 PrepBufr messages. -------------------------------------------------------------------------------- Processing TMP/Z2 versus TMP/Z2, for observation type ADPSFC, over region FULL, for interpolation method UW_MEAN(1), using 4250 pairs. Computing Categorical Statistics. Computing Multi-Category Statistics. Computing Continuous Statistics. Computing Scalar Partial Sums. -------------------------------------------------------------------------------- Output file: out/point_stat_360000l_20070331_120000v.stat Output file: out/point_stat_360000l_20070331_120000v_fho.txt Output file: out/point_stat_360000l_20070331_120000v_ctc.txt Output file: out/point_stat_360000l_20070331_120000v_cts.txt Output file: out/point_stat_360000l_20070331_120000v_mctc.txt Output file: out/point_stat_360000l_20070331_120000v_mcts.txt Output file: out/point_stat_360000l_20070331_120000v_cnt.txt Output file: out/point_stat_360000l_20070331_120000v_sl1l2.txt Output file: out/point_stat_360000l_20070331_120000v_sal1l2.txt Output file: out/point_stat_360000l_20070331_120000v_vl1l2.txt Output file: out/point_stat_360000l_20070331_120000v_val1l2.txt Output file: out/point_stat_360000l_20070331_120000v_mpr.txt

Point-Stat: Output Types Statistics line types: 15 possible Categorical Single Threshold Contingency table counts and stats (FHO, CTC, CTS) Categorical Multiple Thresholds NxN Contingency table counts and stats (MCTC, MCTS) Continuous - raw fields Continuous statistics (CNT) Partial Sums (SL1L2, SAL1L2, VL1L2, VAL1L2) Probabilistic Nx2 Contingency table counts and stats (PCT, PSTD) Continuous statistics and ROC curve (PJC, PRC) Matched pairs Raw matched pairs a lot of data! (MPR) 21 header columns common to all line types Remaining columns specific to each line type

Point-Stat: Sample Output 1. STAT file output for sample run: 1 line each for CNT, SL1L2, MCTC, MCTS 3 lines each for FHO, CTC, CTS 4,250 lines for MPR! 2. Additional TXT files for each line type Output file: out/point_stat_360000l_20070331_120000v.stat Output file: out/point_stat_360000l_20070331_120000v_fho.txt Output file: out/point_stat_360000l_20070331_120000v_ctc.txt Output file: out/point_stat_360000l_20070331_120000v_cts.txt Output file: out/point_stat_360000l_20070331_120000v_mctc.txt Output file: out/point_stat_360000l_20070331_120000v_mcts.txt Output file: out/point_stat_360000l_20070331_120000v_cnt.txt Output file: out/point_stat_360000l_20070331_120000v_sl1l2.txt Output file: out/point_stat_360000l_20070331_120000v_sal1l2.txt Output file: out/point_stat_360000l_20070331_120000v_vl1l2.txt Output file: out/point_stat_360000l_20070331_120000v_val1l2.txt Output file: out/point_stat_360000l_20070331_120000v_mpr.txt

Point-Stat: CTC Output Line VERSION V3.0 MODEL WRF FCST_LEAD 360000 FCST_VALID_BEG 20070331_120000 FCST_VALID_END 20070331_120000 OBS_LEAD 000000 OBS_VALID_BEG 20070331_103000 OBS_VALID_END 20070331_133000 FCST_VAR TMP FCST_LEV Z2 OBS_VAR TMP OBS_LEV Z2 OBTYPE ADPSFC VX_MASK FULL INTERP_MTHD UW_MEAN INTERP_PNTS 1 FCST_THRESH >273.000 OBS_THRESH >273.000 COV_THRESH NA ALPHA NA LINE_TYPE CTC TOTAL 4250 FY_OY 3275 FY_ON 245 FN_OY 102 FN_ON 628

Point-Stat: Matched Pairs Matched Pair (MPR) line type contains 1 line for each matched pair. Data overload! TOTAL INDEX OBS_SID OBS_LAT OBS_LON OBS_LVL OBS_ELV FCST OBS CLIMO 4250 1 71600 43.93000-60.01000 1010.79999 4.01053 271.99994 271.54999 NA 4250 2 71616 46.43000-71.93000 1016.09998 102.04903 269.00017 269.45001 NA 4250 3 71629 44.23000-78.36000 1004.50000 191.44466 273.00041 272.35001 NA 4250 4 71028 51.67000-124.40000 916.50000 872.82202 264.00027 264.95001 NA 4250 5 71066 58.61000-117.16000 973.90002 337.50449 271.99994 270.95001 NA 4250 6 71104 52.18000-122.04000 906.50000 938.08594 271.00029 264.35001 NA 4250 7 71109 50.68000-127.36000 1020.20001 22.03931 274.99971 275.04999 NA 4250 8 71150 50.45000-100.59000 949.09998 562.38477 271.99994 271.75000 NA 4250 9 71177 57.13000-61.47000 899.70001 834.87476 257.99991 254.64999 NA 4250 10 71197 47.56000-59.16000 1000.90002 40.06803 271.99994 269.54999 NA 4250 11 71378 47.41000-72.79000 1006.90002 169.37592 266.00040 265.95001 NA 4250 12 71415 45.76000-62.68000 1014.00000 1.99518 269.00017 268.64999 NA 4250 13 71425 49.24000-65.33000 1014.90002 28.96468 264.00027 267.25000 NA 4250 14 71437 43.29000-79.79000 1017.79999 77.03765 274.00006 275.85001 NA 4250 15 71473 48.78000-123.04000 1015.70001 23.93772 278.00031 280.25000 NA

Stat-Analysis Tool Filtering Summarizing Aggregating of Grid-Stat, Point-Stat, Ensemble-Stat & Wavelet-Stat output Tara Jensen

What can Stat Analysis do? Questions to MET Help - Can I get Q: Overall statistics for all gridded observations compared to the forecasts for hours 0 through 24 together? A: Yes - using Stat Analysis Tool on Grid-Stat output Q: Long-term statistics at individual sites (e.g., mean absolute error or RMS error for daily forecasts for a month)? A: Yes - using Stat Analysis Tool on Point-Stat output Q: My contingency table statistics aggregated over multiple runs? A: Yes using Stat Analysis Tool on any output Q: Statistics aggregated for a large number (N) of individual stations in one simultaneous run? A: Yes but it would be cumbersome. You would have to configure Stat Analysis Tool to run (N) number of jobs OR use our soon to be released METViewer tool. Copyright Copyright 2012, University 2012, University Corporation Corporation for Atmospheric for Atmospheric Research, Research, all rights all reserved rights reserved

Stat Analysis Tool Statistics Analysis User Defined Display MODE PS MODE Analysis Wavelet Stat Grid Stat Ensemble Stat STAT PS STAT STAT Stat Analysis User Graphics Package User Graphics Package Point Stat STAT For Stat Analysis Tool: MET provides the analysis in output. You provide the graphing / plotting capability.

Stat Analysis Jobs Filtering filter - filters out lines from one or more stat files based on user-specified filtering options. Summarizing summary - produces summary information from a single column of data including: mean, standard deviation, min, max, and the 10th, 25th, 50th, 75th, and 90th percentiles. Customized tool for AFWA go_index - computes the GO Index, a performance statistic used primarily by the United States Air Force.

Stat Analysis Jobs Aggregation aggregate - aggregates stat data across multiple time steps or masking regions. Output line type is the same as input line type. aggregate_stat aggregates across multiple times/regions then calculates statistics. Output line is different from input line types. Valid line type combinations include: -line_type FHO, CTC, -out_line_type CTS -line_type MCTC, -out_line_type MCTS -line_type SL1L2, SAL1L2, -out_line_type CNT -line_type VL1L2, VAL1L2, -out_line_type WDIR (wind direction) -line_type PCT, -out_line_type PSTD, PJC, PRC -line_type NBRCTC, -out_line_type NBRCTS -line_type MPR, -out_line_type FHO, CTC, CTS, MCTC, MCTS, CNT, SL1L2, SAL1L2,PCT, PSTD, PJC, PRC

Stat Analysis Tool: Usage Usage: stat_analysis -lookin path [-out filename] [-tmp_dir path] [-v level] -config config_file or job at command line options with associated arguments [filter] [summary] [aggregate] [aggregate_stat] [go_index] -lookin -out -tmp_dir Path to *.stat files this can be a directory or a single file name (Use one or more times) Output name for file Folder for temporary files -v Level of logging -config filter summary aggregate aggregate_stat go_index StatAnalysisConfig file See previous 2 slides See previous 2 slides See previous 2 slides See previous 2 slides See previous 2 slides

Stat Analysis Tool: Configuration 37 configurable parameters only set a few: Apply NAM G212 mask vx_mask[ ] = [ G212 ]; Using only the Temperature variable fcst_var[ ] = [ TMP ]; obs_var[ ] = []; Filter on CTC lines in which fcst_var[ ] > 278 K line_type[ ] = [ CTC"]; fcst_thresh[ ] = [ >278 ]; obs_thresh[ ] = []; Dump the filtered stat data to a file AND sum contingency table count (CTC) lines of data for pressure levels between 850 and 750 jobs[ ] = ["-job filter -dump_row out/filter_job.stat", \ "-job aggregate line_type CTC \ -dump_row out/aggr_ctc_job.stat fcst_lev P850-750"];

Stat Analysis Tool: Run job aggregate "-job aggregate line_type CTC -dump_row out/aggr_ctc_job.stat \ -fcst_lev P850-750" Point Stat Output (i.e. pointstat_out.stat) V2.0 WRF ADPUPA G212 TMP P850-750 >278.00 CTC 401 192 11 24 174 UW_MEAN 1 F C S T Y OBS N Y 192 11 203 N 24 174 198 216 185 401 V2.0 WRF ADPSFC G212 TMP P850-750 >278.00 CTC 167 25 23 0 119 UW_MEAN 1 (NOTE: header modified to show only pertinent info) F C S T OBS Y N Y 25 23 48 N 0 119 119 25 142 167

Stat Analysis Tool: Run job aggregate Stat Analysis Output (i.e. aggr_ctc_job.stat ) FILTER: -job filter -vx_mask G212 -line_type CTC fcst_thresh >278.000 -var TMP -dump_row out/filter_job.stat OBS JOB_LIST: -job aggregate -vx_mask G212 -line_type CTC -fcst_thresh >278.000 -var TMP -level P850-750 -dump_row out/aggr_ctc_job.stat COL_NAME: TOTAL FY_OY FY_ON FN_OY FN_ON INTERP_MTHD INTERP_PNTS CTC: 568 217 34 24 293-9999 -9999 F C S T Y N Y 217 34 251 N 24 293 317 241 327 568

Stat Analysis Tool: Run job summary "-job summary line_type CNT -fcst_var TMP \ dump_row out/job_summary_rmse.stat column RMSE" Column Number Description 1 Summary (job type) 2 Total 3-7 Mean* Includes normal and bootstrap upper and lower confidence limits 8-10 Standard deviation** Includes bootstrap upper and lower confidence limits 11 Minimum value 12 10 th percentile 13 25 th percentile 14 Median (50 th percentile) 15 75 th percentile 16 90 th percentile 17 Maximum value (stat_analysis.out cont.) JOB_LIST: -job summary - line_type CNT. COL_NAME: TOTAL MEAN MEAN_NCL MEAN_NCU MEAN_BCL MEAN_BCU STDEV STDEV_BCL STDEV_BCU MIN P10 P25 P50 P75 P90 MAX SUMMARY: 4 1.98438 1.33219 2.63656 1.58837 2.29289 0.40986 0.04574 0.55950 1.41291 1.59671 1.87241 2.07130 2.18328 2.18328 2.30251 Copyright 2012, Copyright University 2012, Corporation University for Corporation Atmospheric for Atmospheric Research, all Research, rights reserved all rights reserved

Use your favorite plotting software Stat Analysis User Graphics Package MET provides the analysis in ascii ouput. You provide the graphing / plotting capability.

User Contributed Plotting Scripts Please feel free to send your contributions to met_help@ucar.edu