<p dir="ltr">My mistake.  The shape file is the raster vegetation map and the netcdf file contains the hydrological metrics.<br>
Sorry for the confusion.</p>
<p dir="ltr">Thank you for the help.<br>
Steve</p>
<div class="gmail_quote">On Apr 14, 2014 4:34 PM, "Etienne Tourigny" <<a href="mailto:etourigny.dev@gmail.com">etourigny.dev@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 3:31 PM, Steve Friedman <span dir="ltr"><<a href="mailto:skfglades@gmail.com" target="_blank">skfglades@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Yes I know that netcdf files store arrays of data and that each us treated as a subset of the main file.  </p>


<p dir="ltr">This is  not a case for raster calculator. NIR is it a case requiring a hydrological plugin. </p>
<p dir="ltr">In ArcGis, which is no longer available to me, I used a built in tool to overlay the raster vegetation map with the netcdf shape file representing the hydrological metric of interest.</p></blockquote><div><br>

</div><div>netcdf shape file? Never heard of such a thing - QGIS and GDAL only support netcdf *raster* files.</div><div><br></div><div>cheers</div><div>Etienne</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p dir="ltr"> </p>
<p dir="ltr">Perhaps extracting each metric to its own file will yield a reasonable method.</p>
<p dir="ltr">Thanks<br></p><div><div>
<p dir="ltr">On Apr 14, 2014 1:57 PM, "Etienne Tourigny" <<a href="mailto:etourigny.dev@gmail.com" target="_blank">etourigny.dev@gmail.com</a>> wrote:<br>
><br>
> You should use the raster calculator to do any calculations on rasters, or some of the tools in processing. But your use case seems a bit complicated - perhaps there is a hydrological plugin or processing algorithm that can help.<br>



><br>
> Have you tried loading the file in QGIS?<br>
><br>
> But be aware that netcdf files with many variables are a bit tricky - each variable is a subdataset, which is treated as a separate file. See the gdal netcdf page for more details [1].<br>
><br>
> You could translate them to individual files in another format like gtiff using gdal:<br>
><br>
> gdal_translate -of gtiff -sds <a href="http://in.nc" target="_blank">in.nc</a> out<br>
><br>
><br>
> [1] <a href="http://www.gdal.org/frmt_netcdf.html" target="_blank">http://www.gdal.org/frmt_netcdf.html</a><br>
><br>
><br>
><br>
> On Mon, Apr 14, 2014 at 1:28 PM, Steve Friedman <<a href="mailto:skfglades@gmail.com" target="_blank">skfglades@gmail.com</a>> wrote:<br>
>><br>
>> No.  The Netcdf file has 20+ variables. It is a spatially explicit data for hydrological metrics in a large wetland.  I want to associate these variables with a vegetation map of the same area.  Then I will conduct a GLM multinomial statistical analysis to derive probabilities of vegetation community based on the spatial distribution of the hydrologic metrics.<br>



>><br>
>> Hope that make the problem clearer.  If not let me know and I'll try to make it more explicit.<br>
>><br>
>> Thanks<br>
>> Steve<br>
>><br>
>> On Apr 14, 2014 10:58 AM, "Etienne Tourigny" <<a href="mailto:etourigny.dev@gmail.com" target="_blank">etourigny.dev@gmail.com</a>> wrote:<br>
>>><br>
>>> I don't understand what you mean. You have a netcdf file with 1 variable that has 20+ attributes, and you want to copy them to another raster as metadata? What is the format of your raster?<br>
>>><br>
>>><br>
>>> On Mon, Apr 14, 2014 at 9:07 AM, Steve Friedman <<a href="mailto:skfglades@gmail.com" target="_blank">skfglades@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Hello<br>
>>>><br>
>>>> I have a netcdf file with 20+ attributes that I need to link to a raster layer.<br>
>>>><br>
>>>> I do not see a method for this.  I am hoping that I have just missed something obvious.  <br>
>>>><br>
>>>> Can someone point me in the right direction.<br>
>>>><br>
>>>> Thank you<br>
>>>> Steve<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Qgis-user mailing list<br>
>>>> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
>>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>>><br>
>>><br>
><br>
</p>
</div></div></blockquote></div><br></div></div>
</blockquote></div>