Hello,
I have AMET output for a whole year and I can plot stacked_barplot from that output file. But I want to plot stacked_barplot for the specific months (for example Sept, Oct, and Nov).
I have added variable " AMET_ADD_QUERY" to the script. But It is giving the same output as whole year.
To plot specific months, you do indeed use the AMET_ADD_QUERY field. To plot just Sep, Oct, Nov, you would do the following
setenv AMET_ADD_QUERY “and (d.month=9 or d.month=10 or d.month=11)”
This tells AMET to only include data where the month field is equal to 9, 10, or 11 (Sep, Oct, or Nov). Pay close attention to the syntax of the query. You want to include the or statements within the and statement. If you don’t include the and statement, you’ll get a query of everything in the database. You don’t want that.