[Qgis-user] Intersecting NetCDF file attributes with vector layers

Steve Friedman skfglades at gmail.com
Mon Apr 14 11:31:53 PDT 2014


Yes I know that netcdf files store arrays of data and that each us treated
as a subset of the main file.

This is  not a case for raster calculator. NIR is it a case requiring a
hydrological plugin.

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.

Perhaps extracting each metric to its own file will yield a reasonable
method.

Thanks

On Apr 14, 2014 1:57 PM, "Etienne Tourigny" <etourigny.dev at gmail.com> wrote:
>
> 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.
>
> Have you tried loading the file in QGIS?
>
> 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].
>
> You could translate them to individual files in another format like gtiff
using gdal:
>
> gdal_translate -of gtiff -sds in.nc out
>
>
> [1] http://www.gdal.org/frmt_netcdf.html
>
>
>
> On Mon, Apr 14, 2014 at 1:28 PM, Steve Friedman <skfglades at gmail.com>
wrote:
>>
>> 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.
>>
>> Hope that make the problem clearer.  If not let me know and I'll try to
make it more explicit.
>>
>> Thanks
>> Steve
>>
>> On Apr 14, 2014 10:58 AM, "Etienne Tourigny" <etourigny.dev at gmail.com>
wrote:
>>>
>>> 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?
>>>
>>>
>>> On Mon, Apr 14, 2014 at 9:07 AM, Steve Friedman <skfglades at gmail.com>
wrote:
>>>>
>>>> Hello
>>>>
>>>> I have a netcdf file with 20+ attributes that I need to link to a
raster layer.
>>>>
>>>> I do not see a method for this.  I am hoping that I have just missed
something obvious.
>>>>
>>>> Can someone point me in the right direction.
>>>>
>>>> Thank you
>>>> Steve
>>>>
>>>> _______________________________________________
>>>> Qgis-user mailing list
>>>> Qgis-user at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140414/ad904be1/attachment.html>


More information about the Qgis-user mailing list