I often create overlay plots for climate data I analyze and need to be able to quickly change the naming of the column variables used so that I can plot data from different sites. My column naming conventions are such that column names are the same except for a Site Identifier in the name. E.g.,
Tair, FCO (C) Tair, FCF (C) Tair, CH3 (C)
Since I have multiple summary tables and/or overlay plots that refer to the same column variables, I would like to be able write the JSL code such that I can change the variable name used in the summary table and overlay plot one time at the top of the program rather than at each separate location.
In the example below I summarize and plot data from sites FCO & FCF. I would like to be able to quickly change to sites FCO and CH3 without changing this code at each location. Any suggestions on how to accomplish this would be greatly appreciated.
I'm giving a talk at the UK user group next week, to present a pattern of code that allows you to "wrap" JMP generated script into a reusable code. It creates a callable function that can be parsed arguments. If you contact me at firstname.lastname@example.org I can send you the script.