[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

[gdal-dev] Re: Strange things with gdalwarp ...

2009-08-18 Thread Hermann Peifer
Jukka wrote From: Hermann Peifer gmx.eu> A promising approach seemed to be to warp/resample the ASTER files one by one and create 1500 separate tiles in LAEA projection, as an intermediate step. Then I created a vrt file with gdalbuildvrt and gdal_translated it into tiff format. The result d

Re: [gdal-dev] Converting to J2K

2009-08-18 Thread Greg Coats
According to http://www.gdal.org/formats_list.html , GDAL supports four flavors of JPEG2000, four different implementations of wavelet compression, based on JasPer, Kakadu, ECW, and MrSID. Two of these four are available to me gdal_translate | grep 2000 JP2KAK: JPEG-2000 (based on Kakadu)

RE: [gdal-dev] Converting to J2K

2009-08-18 Thread Smart, Gary
I have tried just about all the standard J2K extensions - none appear to work. This is the output from... gdal_translate -of JPEG2000 image.ntf image.jp2 Input file size is 4008, 2672 0...10...20...30...40...50...60...70...80...90...100 - done. ERROR 4: `image.jp2' not recognised as a

Re: [gdal-dev] Converting to J2K

2009-08-18 Thread Greg Coats
$ gdal_translate --version GDAL 1.6.2, released 2009/07/31 $ gdal_translate -of JPEG2000 18stj940125.tif 18stj940125.jp2 Input file size is 5000, 5000 0...10...20...30...40...50...60...70...80...90...100 - done. FYI The convention for JPEG2000 image files is to use the extension .jp2. Greg On

Re: [gdal-dev] Re: C# Nad27 to WGS 84

2009-08-18 Thread Tamas Szekeres
2009/8/18 Tomas R > Ah, thanks. Been away some time from the list and no email regarding this > answer. Will try it but am happy with the binaries I currently have. > > Another Q... > On my Vista machine when I compile GDAL/Swig-links it is compiled for the > .Net 3.5 platform. Would like to ta

[gdal-dev] Re: C# Nad27 to WGS 84

2009-08-18 Thread Tomas R
Ah, thanks. Been away some time from the list and no email regarding this answer. Will try it but am happy with the binaries I currently have. Another Q... On my Vista machine when I compile GDAL/Swig-links it is compiled for the .Net 3.5 platform. Would like to target .Net 2 instead. How? Am

Re: [gdal-dev] Converting to J2K

2009-08-18 Thread Frank Warmerdam
Smart, Gary wrote: Can someone quickly tell me how to convert a ntf file into J2K format? I am trying *‘gdal_translate –of JPEG2000 thingy.ntf thingy.j2k’ *but GDAL complains that it doesn’t understand the format /thingy.j2k/ I think its getting the arguments confused. What am I doing

[gdal-dev] Converting to J2K

2009-08-18 Thread Smart, Gary
Can someone quickly tell me how to convert a ntf file into J2K format? I am trying 'gdal_translate -of JPEG2000 thingy.ntf thingy.j2k' but GDAL complains that it doesn't understand the format thingy.j2k I think its getting the arguments confused. What am I doing wrong? Gary __