Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sparse Matrix Operator Kernel Emissions SMOKE Training Community Modeling and Analysis System Center Institute for the Environment University of North.

Similar presentations

Presentation on theme: "Sparse Matrix Operator Kernel Emissions SMOKE Training Community Modeling and Analysis System Center Institute for the Environment University of North."— Presentation transcript:

1 Sparse Matrix Operator Kernel Emissions SMOKE Training Community Modeling and Analysis System Center Institute for the Environment University of North Carolina at Chapel Hill ©2011 Institute for the Environment 1

2 CMAS Community Modeling and Analysis System What does CMAS do? Working to coordinate community approach to emissions and air quality modeling Software distribution and support Training and conferences Outreach Development Communication CMAQ, MCIP, SMOKE, I/O API, PAVE, MIMS January 2011 SMOKE/CMAQ Training Konkuk University Seoul, Korea 2

3 SMOKE Sparse Matrix Operator Kernel Emissions Features: Open-source, highly optimized Criteria and toxics pollutants Supports CMAQ, CAMx, MAQSIP, REMSAD, UAM Annual, daily, hourly inventories MOBILE6 and BEIS3 Fire plume rise algorithms Flexible QA/QC features Large user community Active training program 3

4 Training Overview Emissions processing basics SMOKE basics Running SMOKE Overview lab SMOKE programs SMOKE problem solving Area sources lab Biogenics lab Point sources lab Pregridded sources lab Merge lab Quality assurance lab ©2011 Institute for the Environment4

5 Overall Goal Emissions inventory o Usually annual data (i.e. tons/yr) o Reported by source (may be county or coordinate) o By inventory pollutant (CO, NOx, VOC,,,) Air quality model input o Hourly o Gridded o By model species o May be 3-D file (layered) ©2011 Institute for the Environment5

6 Source Categories Point source characteristics o Country, state, and county (FIPS) o Latitude and longitude o Plant, point, stack, segment, and source category code (SCC) o Ex: power plants, furniture refinishers Area source characteristics o Country, state, and county o Source category code (SCC) o Ex: residential heating, lawnmowers, vehicular road dust (unpaved road),airports. ©2011 Institute for the Environment6

7 Source Categories Mobile (on-road) source characteristics o Country, state, and county o Road type (e.g. rural interstate, urban local) o Vehicle type (e.g. light/heavy duty gasoline vehicles) o Optional link coordinates ( road segment within a county) o Ex: gasoline and diesel vehicles on freeways Biogenic source characteristics o Gridded land use o Ex: crops, corn, soybean, conifer forests, wetlands ©2011 Institute for the Environment7

8 Definitions Inventory pollutant: A compound or group of compounds defined for record-keeping and regulatory purposes (e.g. CO, NO x, VOC, PM 10, PM 2.5 ) Species: A compound or group of compounds defined as part of the estimation of air chemistry in an air quality model (AQM) (e.g. CO, NO, NO 2, PAR, TOL, OLE) ©2011 Institute for the Environment8

9 Definitions Speciation: Convert the inventory pollutant data to the species needed by the AQM (e.g. VOC gets split into PAR, OLE, XYL, TOL, ISOP, and more) Chemical mechanism: A parameterized representation of coupled chemical reactions (e.g. CB4, RADM2, SAPRAC99, CB05) ©2011 Institute for the Environment9

10 Definitions Map projection: The mathematical 2-d representation of the spherical surface of the Earth (Emission and Air Quality Models shares) Model grid: A 2-d region based on a map projection; defined by starting coordinates, number of columns and rows, and the physical size of the grid cells ©2011 Institute for the Environment10

11 Model Grid Definition ©2011 Institute for the Environment11

12 Model Grid Examples ©2011 Institute for the Environment12

13 Definitions Spatial allocation: Convert the source spatial extent to the grid cell resolution needed by the air quality model Gridding surrogates: A dataset used to spatially allocate the emissions to the grid cells; developed from data at a finer resolution than the emissions (e.g. population, housing, airports, roads) ©2011 Institute for the Environment13

14 Definitions Model layers: Vertical spatial divisions of the atmosphere defined by an air quality model; used to model variations in the atmosphere at different vertical positions Plume rise: The rising of exhaust from point sources due to the velocity and temperature of the exhaust gases ©2011 Institute for the Environment14

15 Definitions Elevated source: A point source in which emissions extend beyond the first model layer due to plume rise Plume-in-grid (PinG): A special treatment of elevated sources in which the plume rise is modeled with extra detail by the AQM ©2011 Institute for the Environment15

16 Definitions Temporal allocation: Convert the annual or daily inventory data to the hourly data needed by the AQM Profile data: Factors used for converting inventory emissions data to AQM data Cross-reference: A dataset used to match sources in the inventory with profile data ©2011 Institute for the Environment16

17 Cross-reference Example StateCountyID NCDurham14 NCOrange14 NCWake15 SCall17 IDFactor 1Factor X-ref tableProfiles table ©2011 Institute for the Environment17

18 Area Emissions Processing Import data Spatial allocation Speciation Temporal allocation Growth (to a future or past year) and controls Merge ©2011 Institute for the Environment18

19 Point Emissions Processing Import, speciation, temporal allocation, growth/controls, plus… No surrogates needed for spatial allocation May have day- and hour-specific emissions Determine elevated and PinG sources Special processing for elevated and PinG sources Merge ©2011 Institute for the Environment19

20 Biogenic Emissions Processing MEGAN emissions model Global gridded land cover, emissions factors, and plant functional types Compute hourly biogenic photochemical and secondary organic aerosol precursors Adjust estimates using simulated temperature and solar radiation ©2011 Institute for the Environment20

21 Merging Combine independent import, gridding, speciation, temporal allocation, and other steps for a single sourcse category to create model-ready files Combine multiple source categories into a single data set, called model-ready output for the AQM Output correct units, species, time steps, grid, and file format for the AQM ©2011 Institute for the Environment21

22 Quality Assurance Compare emission totals from emissions processor with inventory totals (by state, county, SCC, etc.) Compare emission totals after each stage of processing Ensure that input file formats are correct Ensure that no errors occurred during processing Compare emissions between states and counties ©2011 Institute for the Environment22

23 SMOKE Basics Programs Data flow Shared program details Capabilities Benefits ©2011 Institute for the Environment23

24 Emissions Processing Paradigms ©2011 Institute for the Environment24

25 SMOKE Programs ©2011 Institute for the Environment25

26 SMOKE Data Flow ©2011 Institute for the Environment26

27 Capabilities Data Import Formats o EMS-95: area, mobile, point, and day- and hour- specific point o IDA and ORL (toxics): area, mobile, and point o CEM format : hour-specific point o Pregridded inventories in netCDF format o Gridded land use User-defined inventory pollutants o Photochemical precursors, PM, air toxics defined by default; new pollutants can be added as needed o No limit on number of pollutants ©2011 Institute for the Environment27

28 Capabilities Spatial Allocation Convert inventory spatial distribution to 3-d modeling grid Input coordinates: Lat-Lon or Universal Transverse Mercator (UTM) Output projections: Lat-Lon, Lambert, equatorial mercator, polar stereographic No limit on number and size of grid cells Area: use gridding surrogates or assign lat-lon coordinates Mobile: apply gridding surrogates Point: assign point source locations to grid cells ©2011 Institute for the Environment28

29 Capabilities Chemical Speciation Convert inventory VOC and PM pollutants to species required by air quality models User-defined species, unlimited number CB05 and SAPRC-99 mechanisms are readily available; other mechanism speciation can be developed by users Handles both mole-based and mass-based speciation ©2011 Institute for the Environment29

30 Capabilities Temporal Allocation Convert inventory temporal coverage to hourly estimates Supports monthly, weekly, and hourly profiles o Allows different hourly profiles for each day of the week Can use average-day or annual inventory data Point sources can use day- and hour-specific data Biogenics based on meteorology data Automatic accounting for holidays ©2011 Institute for the Environment30

31 Capabilities Growth and Controls Uses year-specific growth factors to grow inventories to future or past years Several types of multiplicative and reactivity controls Location and source IDs for area and mobile Source-specific for Point Pollutant-specific growth and controls ©2011 Institute for the Environment31

32 Capabilities Biogenics Processing MEGAN can be run outside of SMOKE and configured to output SMOKE-formatted files Merge MEGAN data with anthropogenic emissions for input to AQMs Several chemical mechanisms (CB4, CB05, and SAPRC99) are readily available to convert VOC estimates from MEGAN to AQM species Support NO and VOC emission factors only ©2011 Institute for the Environment32

33 Capabilities Point Source Processing Annual, Day- and/or hour-specific data by pollutant Supports customized source definition based on different text inventory formats Selects elevated and PinG sources Can import hourly data such as Continuous Emissions Monitoring (CEM) ©2011 Institute for the Environment33

34 Capabilities Elevated Source Options Two options for defining elevated sources 1.Define characteristics of elevated sources and allow AQMto computes plume rise 2.Treat all sources as potentially elevated; SMOKE computes plume rise Select PinG sources; SMOKE outputs special PinG file Allocate 2-d area sources to vertical layers using vertical profiles ©2011 Institute for the Environment34

35 Benefits of SMOKE Faster processing than other systems (pre-compiled Linux program) Flexible processing paradigm for multiple grids, control strategies, chemical mechanisms, etc. Machine-independent binary file format (netCDF-I/O API) No grid or inventory size limits No limit to number of pollutants or species Processing for ozone, toxics, PM, wildfires, offshore, lightening, and aircraft modeling Open source codes for users Output for CMAQ, MAQSIP, UAM-V, CAMx, UAM- AERO, REMSAD, and AERMOD ©2011 Institute for the Environment35

36 SMOKE Libraries and Utilities Libraries: I/O API, NetCDF Analysis/Postprocessing: I/O API Tools Ancillary data tools: Spatial Allocator, Speciation Tool Visualization: PAVE, VERDI, IDV 36 ©2011 Institute for the Environment

37 SMOKE Libraries and Utilities Library files provide an easy way for programs to share commonly used subroutines; three libraries used by CMAQ I/O API - an easy-to-learn, easy-to-use programming library for data storage and access, available for both Fortran and C netCDF - an interface for array-oriented data access and a library that provides an implementation of the interface 37 ©2011 Institute for the Environment

38 I/O API Library The Input/Output Applications Programming Interface contains an extensive set of utility routines for manipulating dates and times, performing coordinate conversions, storing and recalling grid definitions, sparse matrix arithmetic, etc., as well as a set of data-manipulation and statistical analysis programs Command line programs that are easy to script for automating analysis and post processing Examples of I/O API utilities 38 ©2011 Institute for the Environment

39 netCDF Library The Network Common Data Form is an interface to a library of data access functions for storing and retrieving data in the form of arrays An abstraction that supports a view of data as a collection of self-describing, network-transparent objects that can be accessed through a simple interface By using direct file access, netCDF achieves the goal of supporting efficient access to small subsets of large datasets 39 ©2011 Institute for the Environment

40 I/O API Tools m3diff: for computing statistics for pairs of variables and for applying various comparison ("differencing") operations to those variables in a pair of files m3edhdr: edit header attributes/file descriptive parameters m3merge: merges selected variables from a set of input files for a specified time period, and writes them to a single output file, with optional variable- renaming in the process vertot: compute vertical-column totals of variables in a file 40 ©2011 Institute for the Environment

41 The Surrogate Tool Creates spatial surrogates from GIS Shapefile attributes or functions of the attributes Merges surrogates o 0.75*Total Road Miles *Population Gapfills surrogates prevents dropping of emissions with up to four levels of coverage ©2011 Institute for the Environment41

42 Speciation Tool Generates chemical speciation profiles for emission models, including SMOKE Converts VOC and PM mass fractions to photochemical mechanism species Supports any defined chemical mechanism Supports both VOC and PM species Supports integrated and non-integrated HAPS Supports both active and tracer toxics ©2011 Institute for the Environment42

43 PAVE Package for Analysis and Visualization of Environmental data is a UNIX/Linux graphics tool for netCDF and UAM formatted data PAVE is a flexible and distributed application to visualize multivariate gridded environmental datasets Easily scriptable to automate plot generation Creates 2-d tile plots, time series, 3-d mesh plots, bar charts, scatter plots, and integrates observations into graphics 43 ©2011 Institute for the Environment

44 44VERDI Visualization Environment for Rich Data Interpretation is Java graphics tool for I/O API- netCDF formatted data VERDI was developed as a replacement for PAVE Easily scriptable to automate plot generation Creates 2-d tile plots, time series, 3-d mesh plots, bar charts, scatter plots, and integrates observations into graphics ©2011 Institute for the Environment

45 45IDV Integrated Data Viewer is a Java graphics tool that supports multiple data formats IDV is a 3-d visualization tool Scriptable to automate plot generation In addition to standard output formats (gif, mpeg, etc), also can output kmz files. Current version is IDV 2.7 update 1 ©2011 Institute for the Environment

46 Running SMOKE Assigns file Files and directory names Default directory structure Case and episode settings Script structure ©2011 Institute for the Environment46

47 Assigns File Sets directory names and file names for input and output files Sets case-specific (global) settings like grid, chemical mechanism, and episode dates Used when running scripts and when working directly with files Always “source your Assigns file” > cd $SMK_HOME/subsys/smoke/assigns > source ASSIGNS.nei96.cmaq.cb4p25.us36 ©2011 Institute for the Environment47

48 Main Directories SMKROOT : Main SMOKE system directory – Assigns file – Run scripts – Program source code – Executables ($SMK_HOME) ©2011 Institute for the Environment48

49 Main Directories SMKDAT : Main SMOKE data directory – Inventories – Cross-reference and profile data – Intermediate and output files ©2011 Institute for the Environment49

50 Inventory Directories INVDIR : Main inventory directory – ARDAT : Area source inventory data – BGDAT : Biogenics land use data – MBDAT : Mobile source inventory data – PTDAT : Point source inventory data ©2011 Institute for the Environment50

51 Other Input Directories GE_DAT : General data directory – Grid descriptions – Cross-reference and profile data – Other inputs (holidays, country/state/county names, stack parameters, SCC/SIC description names, etc.) ©2011 Institute for the Environment51

52 Other Input Directories MET_DAT : Meteorology data directory – Hourly, gridded meteorology data from MCIP ©2011 Institute for the Environment52

53 Intermediate Output Directories INVOPD : Intermediate inventory directory – Output from Smkinven and Grwinven ©2011 Institute for the Environment53

54 Intermediate Output Directories SCENARIO : Time-dependent output directory – Output from Temporal and Laypoint ©2011 Institute for the Environment54

55 Intermediate Output Directories STATIC : Time-independent output directory – Output from Grdmat, Spcmat, Cntlmat, Elevpoint, Mbsetup, Premobl, and Emisfac ©2011 Institute for the Environment55

56 Model-Ready Output Directories A_OUT : Merged area output directory B_OUT : Merged biogenic output directory M_OUT : Merged mobile output directory P_OUT : Merged point output directory OUTPUT : Final merged output directory ©2011 Institute for the Environment56

57 Report Directories REPSTAT : Time- independent reports directory - Reports containing emissions that are not temporalized REPSCEN : Time- dependent reports directory - Reports containing temporalized emissions ©2011 Institute for the Environment57

58 Overall Settings GRID : Grid name used in naming files IOAPI_GRIDNAME_1 : Grid name used in grid description file SPC : Chemical speciation name - cmaq.cb4p25 - cmaq.saprc99pm - remsad7.cb4mpm ©2011 Institute for the Environment58

59 Episode Settings EPI_STDATE : Episode start date (YYYYDDD) EPI_STTIME : Episode start time (HHMMSS) EPI_RUNLEN : Episode run length (HHHMMSS) EPI_NDAY : Number of days in the episode G_STDATE : Start date for each output file G_STTIME : Start time for each output file G_RUNLEN : Length of each output file ESDATE : Start date used in file names ©2011 Institute for the Environment59

60 Basic SMOKE Script Structure Set Assigns file name Set source category Select which programs to run Program-specific settings Multiple-program settings Script settings Assigns file override settings Source the Assigns file Run main SMOKE programs (smk_run.csh) Run Smkreport (qa_run.csh) Loop through days for time-dependent steps ©2011 Institute for the Environment60

61 Training Details Inventory o 2005 West Asia and Europe inventory Pollutants o CO, NO x, VOC, SO 2, NH 3, PM 10, PM 2.5 Domains o Arabian Gulf 36km and UAE 12km Period o July 7, 2009 ©2011 Institute for the Environment61

62 Training Domains West Asia 36 and 12-km domains ©2011 Institute for the Environment62

63 SMOKE Programs Smkinven Grdmat Spcmat Cntlmat Grwinven Temporal Layalloc Elevpoint Laypoint MEGAN Smkmerge Mrggrid Mrgelev Smk2emis Smkreport ©2011 Institute for the Environment63

64 SMOKE Programs ©2011 Institute for the Environment64

65 Area Source Processing ©2011 Institute for the Environment65

66 Area Source Processing ©2011 Institute for the Environment66

67 Smkinven (1) Imports area, mobile, or point source inventories Inputs Inventory fileARINV|MBINV|PTINV Country/state/county codesCOSTCY Inventory tableINVTABLE Day-specific files(s)PTDAY Hour-specific files(s)PTHOUR Replacement stack parametersPSTK Area-to-point assignmentsARTOPNT ©2011 Institute for the Environment67

68 Smkinven (2) Outputs SMOKE inventory file Text file listing several files: area.ncf, asrc.txt, area_dat/.ncf AREA|MOBL|PNTS SMOKE day-specific filePDAY SMOKE hour-specific filePHOUR Inventory SCC list[A|M|P]SCC Import reportREPINVEN ©2011 Institute for the Environment68

69 Smkinven (3) Major settings SMK_SOURCE[A|M|P] sets source category DAY_SPECIFIC_YNY = import day-specific data HOUR_SPECIFIC_YNY = import hour-specific data SMK_ARTOPNT_YNY = assign coordinates to specified sources SMKINVEN_FORMULA“PMC=PM10-PM2_5” to compute coarse PM from PM 10 and PM 2.5 WEST_HSPHEREY = convert stack coordinates to Western hemisphere ©2011 Institute for the Environment69

70 Grdmat (1) Creates area, mobile, or point source gridding matrix to assign inventory emissions to model grid cells. Inputs SMOKE inventory fileAREA|MOBL|PNTS Gridding cross-reference[A|M]GREF Gridding surrogates description fileSRGDESC Grid description fileGRIDDESC Mobile codesMCODES ©2011 Institute for the Environment70

71 Grdmat (2) Outputs Gridding matrix[A|M|P]GMAT Ungridding matrixMUMAT Surrogate codes by source[A|M]GSUP Major settings SMK_SOURCE[A|M|P] sets source category REPORT_DEFAULTSY = reports when default profile is used SMK_DEFAULT_SRGIDDefault surrogate code to use when primary surrogate would cause zero emissions ©2011 Institute for the Environment71

72 Spcmat (1) Creates area, mobile, or point source speciation matrices for mass- and mole-based factors Inputs SMOKE inventory fileAREA|MOBL|PNTS Speciation profilesGSPRO Speciation cross-referenceGSREF Pollutant conversion fileGSCNV Mobile codesMCODES Mobile emission processesMEPROC Inventory tableINVTABLE ©2011 Institute for the Environment72

73 Spcmat (2) Outputs Mole speciation matrix[A|M|P]SMAT_L Mass speciation matrix[A|M|P]SMAT_S Speciation codes by source[A|M|P]SUP Major settings SMK_SOURCE[A|M|P] sets source category REPORT_DEFAULTSY = reports when default profile is used POLLUTANT_CONVERSIONY = use GSCNV file ©2011 Institute for the Environment73

74 Temporal (1) Computes hourly area, mobile, or point source emissions Inputs SMOKE inventory fileAREA|MOBL|PNTS SMOKE day-specific filePDAY SMOKE hour-specific filePHOUR Temporal profiles[A|M|P]TPRO Temporal cross-reference file[A|M|P]TREF Inventory tableINVTABLE ©2011 Institute for the Environment74

75 Temporal (2) Inputs (continued) Country/state/county codesCOSTCY Holiday identification fileHOLIDAYS Outputs Hourly emissions file[A|M|P]TMP Temporal profile codes by source[A|M|P]TSUP ©2011 Institute for the Environment75

76 Temporal (3) Major settings SMK_SOURCE[A|M|P] sets source category G_STDATEOutput file start date (YYYYDDD) G_STTIMEOutput file start time (HHMMSS) G_RUNLENOutput file duration (HHMMSS) OUTZONEOutput time zone DAY_SPECIFIC_YNY = use day-specific data HOUR_SPECIFIC_YNY = use hour-specific data REPORT_DEFAULTSY = report when default profile is used SMK_AVEDAY_YNY = use average-day emissions ©2011 Institute for the Environment76

77 Cntlmat (1) Creates area, mobile, or point source growth and/or control matrices Inputs SMOKE inventory fileAREA|MOBL|PNTS Control packets fileGCNTL Speciation profiles (reactivity controls only) GSPRO ©2011 Institute for the Environment77

78 Cntlmat (2) Outputs Growth matrix[A|M|P]PMAT Mole reactivity matrix[A|M|P]RMAT_L Mass reactivity matrix[A|M|P]RMAT_S Reactivity supplemental file[A|M|P]RSUP Multiplicative control matrix[A|M|P]CMAT /CONTROL/ packet report[A|M|P]CREP /REACTIVITY/ packet report[A|M|P]REACREP /PROJECTION/ packet report[A|M|P]PROJREP Summary report[A|M|P]CSUMREP ©2011 Institute for the Environment78

79 Cntlmat (3) Major settings SMK_SOURCE[A|M|P] sets source category REPORT_DEFAULTSY = report when default control is used ©2011 Institute for the Environment79

80 Grwinven Grows an inventory using the growth and control matrices from Cntlmat Inputs SMOKE inventory fileAREA|MOBL|PNTS Growth and control matrices[A|M|P]CMAT[##] Outputs SMOKE inventory fileAREA_O|MOBL_O|PNTS_O Text inventory fileARINV_O|MBINV_O|PTINV_O Major settings SMK_NUM_CNTLMATNumber of matrices SMK_OUTPUTIDA_YNY = output raw IDA inventory ©2011 Institute for the Environment80

81 Smkmerge (1) Merges any set of intermediate SMOKE files to create model-ready output files and/or state/county emission total reports Inputs SMOKE inventory filesAREA Gridding matricesAGMAT Hourly emissionsATMP Speciation matricesASMAT ©2011 Institute for the Environment81

82 Smkmerge (2) Inputs (continued) Grid description fileGRIDDESC Multiplicative control matricesACMAT Reactivity control matricesARMAT Country/state/county codesCOSTCY Inventory tableINVTABLE ©2011 Institute for the Environment82

83 Smkmerge (3) Outputs Emissions data[A]G[T][S][_S|_L] State/county reportREP[A]G[T][S][_S|_L] ©2011 Institute for the Environment83

84 Smkmerge (4) Major settings MRG_SOURCE[A][B][M][P] indicates which source categories to merge MRG_SPCMAT_YNY = merge speciation matrices MRG_TEMPORAL_YNY = merge hourly emissions MRG_CTLMAT_MULT[A][M][P] merge mult. controls MRG_CTLMAT_REAC[A][M][P] merge reac. controls MRG_GRDOUT_YNY = output gridded file MRG_REPSTA_YNY = output state total report MRG_REPCNY_YNY = output county total report ©2011 Institute for the Environment84

85 Smkmerge (5) Major settings (continued) MRG_GRDOUT_UNITUnits for gridded output (_S/_L) MRG_TOTOUT_UNITUnits for state/county totals MRG_METCHK_YNY = check the consistency of meteorology scenario name across multiple input files (mobile/biogenic/point) ©2011 Institute for the Environment85

86 Point Source Processing ©2011 Institute for the Environment86

87 Elevpoint (1) Identifies elevated point sources by setting criteria of stack parameters Inputs SMOKE inventory filePNTS Grid description fileGRIDDESC Elevated source selection file (Stack height, Diameter, Top 10 NOx emitter) PELVCONFIG ©2011 Institute for the Environment87

88 Elevpoint (2) Outputs Elevated sources identification filePELV PinG stack parameters file (CMAQ)STACK_GROUPS Major settings SMK_PING_METHOD0 = no PinG sources 1 = use PELVCONFIG to select PinG sources SMK_ELEV_METHOD0 = treat all sources as elevated 1 = use PELVCONFIG to select elevated sources 2 = create INLN input file for CMAQ in-line plume rise ©2011 Institute for the Environment88

89 Laypoint (1) Calculates plume rise layer fractions for elevated point sources to distribute into modeling layers Inputs SMOKE inventory filePNTS SMOKE hour-specific file (stack parameters or plume rise) : fires only PHOUR Elevated source identification filePELV Meteorology data files from MCIPGRID_CRO_2D MET_CRO_2D MET_CRO_3D MET_DOT_3D ©2011 Institute for the Environment89

90 Laypoint (2) Outputs Layer fractions filePLAY Explicit layer fractions file (hourly specific non-traditional point only) PLAY_EX Major settings REP_LAYER_MAXMax Layer number to report higher plumes than the layer SMK_EMLAYSNumber of modeling emission layers interested in. SMK_SPECELEV_YNY = use PELV file HOUR_PLUMEDATA_YNY = import plume rise data ©2011 Institute for the Environment90

91 Smkmerge (1) Merges any set of intermediate SMOKE files to create model-ready output files and/or state/county emission total reports Inputs SMOKE inventory filesPNTS Gridding matricesPGMAT Hourly emissionsPTMP Speciation matricesPSMAT Layer fractions filePLAY|PLAY_EX ©2011 Institute for the Environment91

92 Smkmerge (2) Inputs (continued) Grid description fileGRIDDESC Multiplicative control matricesPCMAT Reactivity control matricesPRMAT Country/state/county codesCOSTCY Inventory tableINVTABLE Elevated source identification filePELV ©2011 Institute for the Environment92

93 Smkmerge (3) Outputs Emissions data[P]G[T][S][3D][_S|_L] PinG emissions (CMAQ) PING[T][S][_S|_L] State/county reportREP[P]G[T][S][_S|_L] UAM-style elevated fileELEV[T][S][_S|_L] ©2011 Institute for the Environment93

94 Smkmerge (4) Major settings MRG_LAYERS_YNY = merge layer fractions SMK_ASCIIELEV_YNY = create UAM-style elevated point source file (UAM style) SMK_PING_METHOD0 = no PinG 1 = create output PinG file ©2011 Institute for the Environment94

95 Biogenic Source Processing ©2011 Institute for the Environment95

96 MEGAN TXT2NCF o Converts gridded text (CSV) file of plant functional types (PFTs) and plant-based emissions factors to netCDF format MEGAN o Computes hourly biogenic emissions by apply meteorology (temp/pressure) into gridded normalized emissions MG2IOAPI o Applies speciation factors to convert MEGAN output species to AQM pollutants. ©2011 Institute for the Environment96

97 Mrggrid Final step in preparation of air quality model emissions Merges 2-d and 3-d model-ready emissions files (ex: Point + Area + Biogenic) Inputs List of logical file names to mergeFILELIST Outputs Output emissions fileOUTFILE ©2011 Institute for the Environment97

98 Smkreport (1) Generates a variety of user-defined emissions summary reports for area, mobile, and point sources Inputs Report configuration file SMOKE inventory file Hourly emissions file Temporal profile codes by source Gridding matrix Surrogate codes by source REPCONFIG AREA|MOBL|PNTS [A|M|P]TMP [A|M|P]TSUP [A|M|P]GMAT [A|M]GSUP ©2011 Institute for the Environment98

99 Smkreport (2) Inputs (continued) Speciation matrix[A|M|P]SMAT Speciation profile codes by source[A|M|P]SSUP Layer fractions filePLAY Country/state/county codesCOSTCY Elevated source identification filePELV ©2011 Institute for the Environment99

100 Smkreport (3) Outputs Any number of report filesREPORT1 REPORT2 REPORT3, etc. Major settings –Most options are controlled by the report configuration file –More details are in the REPCONFIG documentation in Chapter 7 of the user’s manual ©2011 Institute for the Environment100

101 SMOKE Problem Solving Examining log files Common problems Smkreport program SMOKE support ©2011 Institute for the Environment101

102 Examining Log Files Every program outputs a log file Check for normal completion of program Fix any errors o Check file formats o Confirm locations of files o Internal errors are not usually fixable by the user Check any warnings o May not be a problem, but need to confirm ©2011 Institute for the Environment102

103 Common Problems (1) Problem: Program is reporting that an output file cannot be opened Solution: o Check that the directory listed in the log file is valid and exists o Delete the existing output file listed in the log file and rerun; the I/O API library will not overwrite files with different header information than the new file ©2011 Institute for the Environment103

104 Common Problems (2) Problem: Output file is not in the expected location after the program finishes Solution: o Check that the program completed successfully o Check the log file to find out the logical file name of the output file o Ensure that the logical file name is defined in the Assigns file or scripts ©2011 Institute for the Environment104

105 Common Problems (3) Problem: Program is ending because an input file is not available Solution: o Check the log file to find the name and location of the input file o Ensure that the logical file name is defined in the Assigns file or scripts o Check that the directory and file name of the input file is correct o If the input file is generated by another program, make sure that program completed successfully ©2011 Institute for the Environment105

106 Smkreport Can compare emissions at each stage of processing and with inventory totals Output files can be imported into spreadsheet programs for further analysis Supports the selection and grouping of inventory sources o Report by source, inventory sector ID, source characteristics, etc. ©2011 Institute for the Environment106

107 SMOKE Support User’s Manual EPA CHIEF ( ) CMAS Help Desk ( Emissions modeling list ©2011 Institute for the Environment107

Download ppt "Sparse Matrix Operator Kernel Emissions SMOKE Training Community Modeling and Analysis System Center Institute for the Environment University of North."

Similar presentations

Ads by Google