<html><head></head><body bgcolor="#FFFFFF"><div><div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">On Feb 27, 2012, at 10:29 PM, Kathleen Hirst &lt;<a href="mailto:K.Hirst@bom.gov.au">K.Hirst@bom.gov.au</a>&gt; wrote:</span><br></div><div><br></div><div></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="MSHTML 6.00.6000.17095" name="GENERATOR">

<div><font face="Arial" size="2"><span class="263130703-28022012">Dear 
List,</span></font></div>
<div><font face="Arial" size="2"><span class="263130703-28022012"></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span class="263130703-28022012">I have a NetCDF file 
with contains over 150&nbsp;timesteps. I can create a WMS for each timestep 
using PROCESSING "BANDS=1", which means I have to define over 150 layers. I was 
hoping to only define the layer once and&nbsp;pass a variable for the time or 
the band number. </span></font></div>
<div><font face="Arial" size="2"><span class="263130703-28022012"></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span class="263130703-28022012">Does anyone have any 
ideas?</span></font></div></div></blockquote><div><br></div><div>Kathleen,</div><div><br></div><div>I wrote the following reply, and then realized that you may not be asking for this. Have you seen&nbsp;<a href="http://mapserver.org/ogc/wcs_format.html?">http://mapserver.org/ogc/wcs_format.html?</a></div><div><br></div><div>For completeness, I will leave my original response as well.</div><div><br></div><div>----</div><div><br></div><div><br></div>Kathleen,<div><br></div><div>Neither have I done this before nor do I know the answer, but I *am* interested in how you solve it since I have interest in munging a bunch of netCDF data. I am wondering, couldn't you use the standard variable substitution as Mapserver supports that for stuff like layer names and class names? Something like (do check the exact syntax)</div><div><br></div><div>PROCESSING "BANDS=%band%"</div><div><br></div><div>and then past in the band via the query string ?band=1</div><div><br></div><a href="http://mapserver.org/mapfile/variable_sub.html">http://mapserver.org/mapfile/variable_sub.html</a><div><br><br>--<div>Puneet Kishor&nbsp;</div></div></div><div></div></div></body></html>