On Feb 27, 2012, at 10:29 PM, Kathleen Hirst <[email protected]> wrote:

> Dear List,
>  
> I have a NetCDF file with contains over 150 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 pass a variable 
> for the time or the band number.
>  
> Does anyone have any ideas?

Kathleen,

I wrote the following reply, and then realized that you may not be asking for 
this. Have you seen http://mapserver.org/ogc/wcs_format.html?

For completeness, I will leave my original response as well.

----


Kathleen,

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)

PROCESSING "BANDS=%band%"

and then past in the band via the query string ?band=1

http://mapserver.org/mapfile/variable_sub.html


--
Puneet Kishor 
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to