This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
tools:actools:cmaq_reduced [2017/02/01 09:25] ctena |
tools:actools:cmaq_reduced [2017/02/10 15:20] ctena [day_max] |
||
---|---|---|---|
Line 10: | Line 10: | ||
* Reduced specifications | * Reduced specifications | ||
- | === Code === | + | ==== Code ==== |
// | // | ||
* ConfigParser -> To read the configuration file. | * ConfigParser -> To read the configuration file. | ||
Line 22: | Line 22: | ||
To run the script is needed two more files to specify What to do (Configuration file) and How to do it (Reduced specifications). | To run the script is needed two more files to specify What to do (Configuration file) and How to do it (Reduced specifications). | ||
- | === Configuration file === | + | ==== Configuration file ==== |
// | // | ||
+ | |||
+ | This configuration file is divided in 3 sections and all of the parameters are commented to clarify them. | ||
+ | |||
+ | All the sections will be explained later, but first you have to take in account that normally the paths where are stored the MCIP and CCTM outputs are not statics. | ||
+ | |||
+ | The way to do these dynamic paths is by sustitutions: | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | example: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | result: | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | == General Section == | ||
+ | * start_date -> Starting date to generate reduceds. All the dates must to be in the format " | ||
+ | * end_date -> End date to generate the reduceds. If you want to do only one day it have to be the same date as the start_date. | ||
+ | * exp_id -> ID of the experiment. For Caliope it is CALIOPE/< | ||
+ | * domain -> Domain to do the reduced. This value will be used to substitute < | ||
+ | * csv_path -> Complete path to the CSV that contains the info of the reduceds to do. This CSV will be explained bellow. | ||
+ | |||
+ | == Inputs Section == | ||
+ | * cmaq_out_dir -> Common path of all the outputs of CMAQ. | ||
+ | * mcip_folder -> Relative path from the cmaq_out_dir to the MCIP directory. | ||
+ | * cctm_folder -> Relative path from the cmaq_out_dir to the CCTM directory. | ||
+ | |||
+ | == Outputs Section == | ||
+ | * output_directory -> Path to store the outputs. In this path will be generated the conventions folders to store all the outputs. | ||
+ | |||
+ | |||
+ | ==== Reduced specifications ==== | ||
+ | The General section of the configuration file have the csv_path parameter that have to point to this file. | ||
+ | |||
+ | As you are supposing these specifications are under a CSV file like this: | ||
+ | < | ||
+ | var, | ||
+ | sconco3, | ||
+ | sconcco, | ||
+ | sconcno2, | ||
+ | sconcso2, | ||
+ | sconcno, | ||
+ | sconchono, | ||
+ | sconcnh3, | ||
+ | sconchno3, | ||
+ | pm2p5,ASO4J ASO4I ANH4J ANH4I ANO3J ANO3I AORGPAJ AORGPAI AALKJ AXYL1J AXYL2J AXYL3J ATOL1J ATOL2J ATOL3J ABNZ1J ABNZ2J ABNZ3J AOLGAJ ATRP1J ATRP2J AISO1J AISO2J AISO3J ASQTJ AOLGBJ AORGCJ AECJ AECI A25J ANAJ ACLJ ACLI, | ||
+ | pm2p5so4, | ||
+ | pm2p5ppm, | ||
+ | pm2p5oc, | ||
+ | pm2p5no3, | ||
+ | pm2p5nh4, | ||
+ | pm2p5na, | ||
+ | pm2p5cl, | ||
+ | pm2p5bc, | ||
+ | pm2p5du,,,,, | ||
+ | pm2p5soa, | ||
+ | pm10,ASO4J ASO4I ANH4J ANH4I ANO3J ANO3I AORGPAJ AORGPAI AALKJ AXYL1J AXYL2J AXYL3J ATOL1J ATOL2J ATOL3J ABNZ1J ABNZ2J ABNZ3J AOLGAJ ATRP1J ATRP2J AISO1J AISO2J AISO3J ASQTJ AOLGBJ AORGCJ AECJ AECI A25J ANAJ ACLJ ACLI ASO4K ANH4K ANO3K ANAK ACLK ACORS ASOIL, | ||
+ | pm10so4, | ||
+ | pm10ppm, | ||
+ | pm10oc, | ||
+ | pm10no3, | ||
+ | pm10nh4, | ||
+ | pm10na,ANAJ ANAK, | ||
+ | pm10cl,ACLJ ACLI ACLK, | ||
+ | pm10bc,AECI AECJ, | ||
+ | pm10du,,,,, | ||
+ | pm10soa, | ||
+ | vmro3, | ||
+ | vmrno2, | ||
+ | vmrso2, | ||
+ | t2, | ||
+ | pblh, | ||
+ | wspd10, | ||
+ | sdir10, | ||
+ | psfc, | ||
+ | ustar, | ||
+ | t, | ||
+ | pint, | ||
+ | z, | ||
+ | zf, | ||
+ | </ | ||
+ | |||
+ | In the first line it has the header that specifies the content of the following lines. | ||
+ | < | ||
+ | var, | ||
+ | </ | ||
+ | * var -> Name of the output variable following the conventions. | ||
+ | * var_cmaq -> Variable or List of variables of the CMAQ file to reduce. | ||
+ | * filename -> CMAQ file to reduce. | ||
+ | * factor -> Conversion factor to store the value in the correct units. | ||
+ | * unit -> Units to save the outputs. | ||
+ | * timeint_stat -> Type (or list of types) of the reduceds to do. the Reduced types will be explained in the REDUCED TYPES SECTION. | ||
+ | |||
+ | ===== Reduced types ===== | ||
+ | All the output types are saved following the NetCDF conventions with the lat lon localization and the datetime. | ||
+ | ==== 1h ==== | ||
+ | This output type is directly the hourly values. | ||
+ | |||
+ | The output type will have the same time steps of the input. | ||
+ | ==== 8h_max ==== | ||
+ | That's the most complex reduced type. | ||
+ | |||
+ | The result is one value for each cell and each day. | ||
+ | This result is the maximum daily 8 hour mean. | ||
+ | |||
+ | |||
+ | ==== day_mean ==== | ||
+ | The mean of each day | ||
+ | ==== day_max ==== | ||
+ | The maximum value of each day |