LAS caches the results of a given request. If you change the server code, but the LAS request is same, the new code will never be executed because LAS will just use the results in the cache. This might be the problem.
Unfortunately, there is currently no easy way of disabling LAS caching. Alternatives are:
- Delete all the files in the lasxml/server/output directory to clear
the cache between requests
- Change the LAS request -- use a slightly different region, for instance.
You can verify that LAS is using the script that you configured by putting an invalid command in the script. If you request data from LAS, a page will be returned indicating that there is an error.
Finally, you can get ideas on how to generalize your template files by looking at the .tmpl scripts that included with LAS. Take a look at std_gif.tmpl, or draw_2d.tmpl (documentation on the templating language that is used by LAS is available by typing perldoc Template). To solve your specific problem, you could use:
shade [% args.variable_name %], 'X','Y'
Steve Cousins wrote:
I am trying to get a set of scripts to run and I've been following the
example in the "Can I modify the scripts Ferret uses to generate output?"
but it doesn't seem to be working for me. I have been putting:
in the variables section for the salt variable and I have a script called
pom_salt_std_gif.tmpl in the jnls directory which has the same permissions
as std_gif.tmpl. When I go to plot the salt variable in LAS it seems to
ignore this though.
The reason I need the script to run is that I need LAS to use the
curvilinear version of SHADE like:
shade salt, 'X', 'Y'
If anyone has any experience doing this I'd be very interested in how it
was done. The way I'm thinking it needs to be done is that there would be
a ?_std_gif.tmpl script for each variable. Originally I was thinking that
there might be an environment variable or parameter being passed to the
script that would tell it which variable was being worked on but so far I
don't think that is the case. If it was being passed then there could
just be one script that had:
shade $1, 'X', 'Y'
or whatever. Any idea if there is such a variable?
Steve Cousins Email: email@example.com
Research Associate Phone: (207) 581-4302
Ocean Modeling Group
School of Marine Sciences 208 Libby Hall
University of Maine Orono, Maine 04469
-- Joe Sirott