[GRASS-user] r.univar.zonal qn

Hi all,

I would like to extract only the average from r.univar.zonal, into a
table(csv file). Is there a flag to do that?

i'm trying a workflow that will extract from a netcdf file (54787
bands) the average of polygons that are in a vector layer. Assuming i
can extract only the average, that would be 54787 columns added at the
end.

FYI, my workflow is inefficient and i know it:
1. Using gdal_translate and gdalwarp to assign a coord system, save as
gtiff, and flip it,
2. importing the gtiffs into Grass
3. using r.univar.zonal

I'm on Grass65.

Someday i'd like to use the spatiotemporal framework to make this mode
efficient..or if anybody can point me to some other netcdf tools,
that's be great.

Thanks,
Vishal

--
Vishal K. Mehta, PhD
Sr. Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616
www.sei-us.org

On Thu, Apr 10, 2014 at 11:17 PM, Vishal Mehta <vishalm1975@gmail.com> wrote:

Hi all,

I would like to extract only the average from r.univar.zonal, into a
table(csv file). Is there a flag to do that?

I suppose you refer to the GRASS 6 Addon.

It has been integrated into GRASS 6.4 and 7, along with a flag for CSV export:

http://grass.osgeo.org/grass64/manuals/r.univar.html
-t Table output format instead of standard output format

Or here:
http://grass.osgeo.org/grass70/manuals/r.univar.html

Markus