Re: [gdal-dev] numpy array to raster

2012-02-01 Thread questions anon
its fo each pixel. It is not > supported by simple viewers but should be read with ArcGIS. > > > On 02/01/2012 03:31 AM, questions anon wrote: > >> no I quickly checked that! >> myarray is: >> [[ 16.15035553 16.14380074 16.15581551 ..., 18.06388149 18.08930

Re: [gdal-dev] empty Gtiff from Python

2012-01-31 Thread questions anon
Was this problem solved? I have tried both dst_ds.GetRasterBand(1).WriteArray(myarray) gdal.Band.WriteArray(dst_ds.GetRasterBand(1), myarray) but my tiff still results in zeros. Any feedback will be greatly appreciated. On Fri, Oct 28, 2011 at 7:23 PM, Tom van der Putte wrote: > Hi List, > > I'm

Re: [gdal-dev] numpy array to raster

2012-01-31 Thread questions anon
1:25 PM, Kyle Shannon wrote: > Is 'myarray' full of zeros? > > /** > * > * Kyle Shannon > * ksshan...@gmail.com > * > */ > > > > On Tue, Jan 31, 2012 at 19:20, questions anon wrote: > >> thanks Frank, following your instructions wit

Re: [gdal-dev] numpy array to raster

2012-01-31 Thread questions anon
y) I do not receive any error messages but the tiff produced are all just zeros. Is there a step I am missing? thanks On Wed, Feb 1, 2012 at 12:07 PM, Frank Warmerdam wrote: > On Tue, Jan 31, 2012 at 4:38 PM, questions anon > wrote: > > I need to output my numpy array as a raster s

[gdal-dev] numpy array to raster

2012-01-31 Thread questions anon
I need to output my numpy array as a raster so that someone else can access the data in ArcGIS. So basically the steps I need are: read numpy array into gdal convert to raster use latitude and longitude and array size to set projection I am really struggling with gdal because I can't seem to find

[gdal-dev] calculate raster values within a vector

2009-08-20 Thread questions anon
Can anyone get me started on a script that can - -Open a shapefile -Open many rasters -Calculate the mean and standard deviation of those rasters within the shapefile region, but is able to ignore areas of zeros or NoData -Output the mean and standard deviation to a table Otherwise any tu

[gdal-dev] calculate values within a vector

2009-08-18 Thread questions anon
Does anyone have a script using Python that can: -Open a shapefile -Open many rasters -Calculate the mean and standard deviation of those rasters within the shapefile region, but is able to ignore areas of zeros or NoData -Output the mean and standard deviation to a table Any help is greatly a