Metplus command to control ascii2nc hourly and daily input file processing #2017
-
I have 2 types of ascii2nc command for execution. One is hourly input files (hour 00 to hour 23) and one is daily input file How to provide the METplus command on the time information to process hourly and daily file? What I can find from user's guide are; Which one and how to specify hourly and daily? if DATE=YYYYMMDD Is there a similar ASCII2NC METplus command for processing frequency? What is the corresponding command for "export MET_AIRNOW_STATIONS=${idir}/Monitoring_Site_Locations_V2.dat" Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
To set an environment variable in a use case, you will add the variable and value to the [user_env_vars] section of the METplus config file. See User Environment Variables for more info.
If the filenames match the times you are trying to process, then you don't need to set ASCII2NC_FILE_WINDOW_BEGIN/END. The *_FILE_WINDOW_* variables are used to find files that are within a range of time around the valid time you are processing. The ASCII2NC_WINDOW_BEGIN/END variables specify the number of seconds before and after the valid time to process, which is the obs_window variable in the MET config file. If the files contain all of the data you want to process, then you don't need to set these. If you are trying to run 2 instances of ASCII2NC in the use case, then you will need to use instance identifiers to specify different settings for each call to ASCII2NC. See Instance Names in Process List for more information. Example:
If you are using METplus v5.0.0, then you should be able to set the VALID_INCREMENT differently for each instance. If not, then you would either have to process each hour and set ASCII2NC_SKIP_IF_OUTPUT_EXISTS to prevent redundant runs of the hourly data OR you would have to make 2 separate calls to run_metplus.py with different config files. |
Beta Was this translation helpful? Give feedback.
-
George, Is my understanding correct that for METplus 4.x.x I need to run a loop each processes an hour of input data ? e.g., hourly input file are HourlyAQObs_2023012200.dat
In users guide "5.10. Setting Config Variables with Environment Variables" Then I should use Thus, in the example above, should I use |
Beta Was this translation helpful? Give feedback.
-
Hi @Ho-ChunHuang-NOAA, you do not need to loop over the hours in your script. You can change the valid increment to 1 hour. If you are reading the date from the DATE environment variable, then you would set the following to process each hour of that day.
|
Beta Was this translation helpful? Give feedback.
-
Hi George, Thank you for clarification. You can close this discussion. |
Beta Was this translation helpful? Give feedback.
To set an environment variable in a use case, you will add the variable and value to the [user_env_vars] section of the METplus config file. See User Environment Variables for more info.
If the filenames match the times you are trying to process, then you don't need to set ASCII2NC_FILE_WINDOW_BEGIN/END. The *_FILE_WINDOW_* variables are used to find files that are within a range of time around the valid time you are processing. The ASCII2NC_WINDOW_BEGIN/END variables specify the number of seconds before and after the valid time to process, which is the obs_window variable in the MET config file. If the file…