-
Hello Could you check what I did wrong in the configuration copied below ? SeriesAnalysis.gefsv12.conf and related files are available at https://drive.google.com/drive/folders/1XjYk0BrfyAiIj8NtddtMIt-2PZOSHzYu I am trying to compute statistics using SeriesAnalysis with the GEFSv12 daily precip ensemble mean grid (=output from GenEnsProd) and the AORC data. In the example file used in the configuration below, VALID time should be 2018010500 = INIT_BEG 2018010400 + 24 LEAD HOUR ERROR : get_series_entry() -> Could not find data for tp(20180101_000000,,) in file list: ncdump -h gen_ens_prod_20180104I_20180105V_ens.nc showed 2018010500_000000, not 20180101_000000 I tried to plot the map using plot_data_plane but failed: plot_data_plane gen_ens_prod_20180104I_20180105V_ens.nc testmem.ps 'name="tp"; level="(0,,)";' plot_data_plane gen_ens_prod_20180104I_20180105V_ens.nc testmem.ps 'name="tp"; level="(20180101_000000,,)";' -v 5 Thank you [config] #SERIES_ANALYSIS_RUNTIME_FREQ = RUN_ONCE_PER_INIT_OR_VALID LOOP_BY = INIT INIT_BEG=2018010400 #INIT_BEG=2017100500 #SERIES_ANALYSIS_CUSTOM_LOOP_LIST = c00, p01, p02, p03, p04 #LEAD_SEQ = 12, 9, 6 SERIES_ANALYSIS_RUN_ONCE_PER_STORM_ID = False SERIES_ANALYSIS_CUSTOM_LOOP_LIST = File I/O#FCST_SERIES_ANALYSIS_INPUT_DIR = {INPUT_BASE}/met_test/data/sample_fcst #FCST_SERIES_ANALYSIS_INPUT_DIR = {INPUT_BASE}/aggregated_precip_v12_1-5day #gec00.t00z.pgrb2.0p25.f006 #OBS_SERIES_ANALYSIS_INPUT_DIR = {INPUT_BASE}/met_test/new #OBS_SERIES_ANALYSIS_INPUT_DIR = {INPUT_BASE}/aorc_regridded/{valid?fmt=%Y%m} OBS_SERIES_ANALYSIS_INPUT_DIR = {INPUT_BASE}/aggregated_precip_AORC_1day/{valid?fmt=%Y%m} SERIES_ANALYSIS_TC_STAT_INPUT_DIR = SERIES_ANALYSIS_OUTPUT_DIR = {OUTPUT_BASE}/SeriesAnalysis SERIES_ANALYSIS_CLIMO_MEAN_INPUT_DIR = SERIES_ANALYSIS_CLIMO_STDEV_INPUT_DIR = Field Info#FCST_CAT_THRESH = #FCST_VAR1_NAME = APCP FCST_VAR1_NAME = tp #SERIES_ANALYSIS_MET_CONFIG_OVERRIDES = fcst = {file_type = NETCDF_NCCF;} #OBS_VAR1_NAME = APCP_03 OBS_VAR1_NAME = APCP_surface BOTH_VAR1_THRESH = gt12.7, gt25.4, gt50.8, gt76.2 SeriesAnalysis Settings#MODEL = WRF LOG_SERIES_ANALYSIS_VERBOSITY = 5 SERIES_ANALYSIS_CONFIG_FILE = {PARM_BASE}/met_config/SeriesAnalysisConfig_wrapped SERIES_ANALYSIS_IS_PAIRED = False #SERIES_ANALYSIS_DESC = #SERIES_ANALYSIS_CAT_THRESH = #SERIES_ANALYSIS_VLD_THRESH = #SERIES_ANALYSIS_BLOCK_SIZE = #SERIES_ANALYSIS_REGRID_TO_GRID = #SERIES_ANALYSIS_CLIMO_MEAN_FILE_NAME = #SERIES_ANALYSIS_CLIMO_STDEV_FILE_NAME = #SERIES_ANALYSIS_CLIMO_CDF_BINS = #SERIES_ANALYSIS_HSS_EC_VALUE = #FCST_SERIES_ANALYSIS_PROB_THRESH = #SERIES_ANALYSIS_OUTPUT_STATS_FHO = #SERIES_ANALYSIS_OUTPUT_STATS_CNT = TOTAL, RMSE, FBAR, OBAR, PR_CORR #SERIES_ANALYSIS_OUTPUT_STATS_SL1L2 = #SERIES_ANALYSIS_MASK_GRID = SeriesAnalysis PlottingSERIES_ANALYSIS_GENERATE_PLOTS = no PLOT_DATA_PLANE_TITLE = SERIES_ANALYSIS_GENERATE_ANIMATIONS = no |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 17 replies
-
I am trying to compute gridded statistics including MAE, MSE, correlation, etc for each lead time separately (day1, day2, ..., day5) by pairing GEFSv12 ensemble mean grid and AORC daily precip observation. |
Beta Was this translation helpful? Give feedback.
-
Hi: The output files you are using from Gen-Ens-Prod do not have a time dimension for the variables. What I mean by this is that the netCDF header shows: dimensions: And for the ensemble mean variable: So, the variable is in 2 dimensions (lat and lon), and does not have a third dimension or a time dimension. When setting the level for netCDF variables, the values inside the parentheses should directly correspond to the dimensions of the netCDF file. For your level, you have:
This would indicate 3 dimensions with the first dimension being a time and then 2 more dimensions. However, all variables in that file, only have 2 dimensions, and none of those dimensions are time. So, the level needs to be changed to the following, to indicate that your data is 2 dimensions and does not have a time dimension:
The second problem I see is that the Gen-Ens-Prod output doesn't have a variable called tp. The ensemble mean is called tp_20180105_000000_all_all_ENS_MEAN. If you want to run the statistics on the ensemble mean, you would need
I tried the following command in Plot-Data-Plane, and it produced output as expected. Note that time templates don't work as input to plot-data-plane so I have to list the actual date here:
Does your Series-Analysis data run when you make the above changes? Christina |
Beta Was this translation helpful? Give feedback.
-
Hi Christina Thanks, plot_data_plane worked, but SeriesAnalysis still errored out. I used FCST_VAR1_NAME = tp_{valid?fmt=%Y%m%d}_000000_all_all_ENS_MEAN in the config file, based on FCST_VARNAME at https://metplus.readthedocs.io/en/main_v6.0/Users_Guide/glossary.html log messages and the config file used are available at https://drive.google.com/drive/folders/1URAa0l8f5ba-KcItvxC22yjRDTbaWffG |
Beta Was this translation helpful? Give feedback.
-
Based on your comment "The output files you are using from Gen-Ens-Prod do not have a time dimension for the variables. ", I guess I have to add a time dimension to the output files from Gen-Ens-Prod. How can I do that? |
Beta Was this translation helpful? Give feedback.
-
Hi Haksulee: After talking to the engineers here, we determined we need a fix so that Series-Analysis can read data with time templates specified in the FCST_VAR1_NAME. We are working on merging this fix into METplus at the moment. If you are able to download the most recent develop version of METplus and run using that, it will be the easiest solution. As I said above, that fix is not in place yet, but we are close and it should be ready by the end of the day. I can post here when the fix is available as well as which branch to use. If you are able to wait for the fix and use this version of METplus, then it should work with the specifications we have above. If you are not able to download and use this updated version of METplus (when it becomes available), or if you need to move forward with verification rather than waiting for this change, then you will need to rename your variables inside the netCDF files to omit the date and time stamp. I can think of two ways to accomplish this. The first would be to use NCO tools to edit the variable names. The second would be to use MET's PCP-Combine. You can rename a variable by running the PCP-Combine tool with the add option, inputting a single file and then using FCST_PCP_COMBINE_OUTPUT_NAME to rename the output variable. I can provide more information on downloading the new version of METplus or on running PCP-Combine to rename variables if you want to proceed with either of those directions. Questions on NCO would need to be directed to their discussion forum. Christina |
Beta Was this translation helpful? Give feedback.
-
Hi @haksulee, The fix is available in the metplus-dev/develop Docker image on DockerHub. You can use this version to test. However, we recommend against using the develop version long term because it changes often and has potential to break things. When a stable release is available, you should switch to using that version instead of develop. I have not used podman personally, but from what I understand you should be able to use podman to pull images from DockerHub. Something like this may work: I hope that helps! |
Beta Was this translation helpful? Give feedback.
The fix is now available in the develop version of METplus (https://github.com/dtcenter/METplus/tree/develop). I don't think there is a docker version of this, as I think we only do that for official releases.
Christina