Since our High Performance Computational Platform does not allow to use mySQL server, I need to analyze the CMAQ outputs without mySQL. I have downloaded the 2014 observational data, so there is no need to obtain observation data from other networks.
Could you share me some thoughts of using AMET R scripts without installing mySQL, if possible?
I download and installed AMET_v14. What script shall I run to compare observation and model results only using the R analysis in AMET? The issue stuck me is I don’t have mySQL in the system.
First, I should say that only the air quality side of AMET currently will function without a database present. So, you won’t be able to use AMET to process and analyze meteorological data with the database.
You can use AMET-AQ without a database present. The AMET User’s Guide explains how to do this. I suggest referring to that guide for more detailed instructions of what I will explain here.
In short, to analyze air quality data without the database, you’ll skip any steps that require a database. That includes initial setup of the AMET database, creating an AMET database user, etc. In the AMET-AQ example run scripts in the scripts_db directory, you’ll want to set the LOAD_SITEX flag in those scripts to “F”. This will tell AMET not to load any data into the database. In the analysis scripts in the scripts_analysis directory, you need to set the AMET_DB flag to “F”. This tells AMET to read the observed/modeled data directly from the site compare csv files and not the database.
Note that not all AQ analysis scripts will currently work without the database present, but many will. Please report any issues you run into. This is a new feature in AMETv1.4 and I’m looking for feedback.
Yes, AMET can be used outside the US. It does not have a geographical limitation. If you plan to use AMET for China, you will however need to obtain AQ observation data as there are currently no AQ data available to provide for China. Meteorological data are available outside the US however.
I am also trying to use AMET-AQ without mySQL. Based on your suggestion, I set LOAD_SITEX
to T when running aqProject_post_only.csh. But I still got errors related to mySQL. Is there anythig else I need to change? Really appreciate your help!
To use AMET-AQ without the database you should actually set LOAD_SITEX to F, not T. Where was it suggested that LOAD_SITEX should be set to T to use AMET-AQ without the database? I may need to correct that if that is the case.
I agree there is an issue here. It appears this script will attempt to execute some MySQL commands regardless of the setting of the LOAD_SITEX flag. So, I’ve modified your script slightly (new version attached) to include a new flag AMET_DB which, when set to F, should eliminate the execution of the MySQL commands. Please try the new script and report back to me with the result.
I’ll admit I have not tested the changes yet, so I apologize if you run into any issues. But we’ll work those out quickly I’m sure. Thanks.
Thanks, Wyat! However, when I tried to use the new script, I got the error “./aqProject_post_only.csh: Command not found.”. Not sure what it means.
Ah, sorry. That’s my fault. Let me know if you’re not able to get it to work. I’m attaching a version that was created in linux just in case.aqProject_post_only_new.csh (7.5 KB)
I can run the script now but still got some issues. It seems the program is still using something related to MySQL. Should I run amet_config.R before running aqProject_post_only.csh? I am a little bit confused about how to configure AMET to set up the AMET environment as there is no detailed guidance in the Quick Start Guide.
Thanks, Wyat. Moving the command solved this issue. However, new errors occurred. It seems to be related to the netCDF libraries settings but I do not know which file I should check.