Re: [gdal-dev] What is the maximum '-wm' I can use with 64bit gdalwarp?

2014-12-25 Thread Simen Langseth
Rouault wrote: > Le mercredi 24 décembre 2014 11:19:14, Simen Langseth a écrit : > > Dear Even Rouault > > > > Thanks for your answer. > > > > When I used more than 1024 mb for sub-sampling an image, strangely with > in > > few minutes, a completely black im

[gdal-dev] What is the maximum '-wm' I can use with 64bit gdalwarp?

2014-12-23 Thread Simen Langseth
What is the maximum '-wm' I can use with 64bit gdalwarp? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Maximum compression parameters

2014-12-17 Thread Simen Langseth
Dear GDAL developers: I want to compress 32bit Geotiff file with maximum compression method available with out lossing data. What are the best parameters? ['COMPRESS=LZW', 'PREDICTOR=3'] Please suggest me. Simen ___ gdal-dev mailing list gdal-dev@lists

Re: [gdal-dev] ECW support for GDAL binding

2014-12-17 Thread Simen Langseth
Dear Jean-Claude: I am looking for both read and write support. On Wed, Dec 17, 2014 at 10:02 PM, wrote: > > Selon Simen Langseth : > > > Dear GDAL developers: > > I have been using the following GDAL binding: > > http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal >

[gdal-dev] ECW support for GDAL binding

2014-12-17 Thread Simen Langseth
Dear GDAL developers: I have been using the following GDAL binding: http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal Lately I required to use ECW driver. But the current binding is not supported for that. What should I do to use ECW driver with this binding? Thanks. Simen

Re: [gdal-dev] gdal_calc.py: produce median raster

2014-11-25 Thread Simen Langseth
s Yesson* > *Institute of Zoology, Zoological Society of London* > *Tel: 020 7449 6267* > > *email: chris.yes...@ioz.ac.uk **web: > http://www.zsl.org/chrisyesson/ > <http://www.zsl.org/chrisyesson/>* > *Note: I work Mon-Thurs and do not check email on Fri* > > On 25

Re: [gdal-dev] gdal_calc.py: produce median raster

2014-11-24 Thread Simen Langseth
Dear Respected Authors: I would be grateful if you could share any hints on it. On Tue, Nov 25, 2014 at 4:33 PM, Simen Langseth wrote: > Dear Marius Jigmond: > > Thanks for your attempt. > > Unfortunately, it is producing 3 band outfile, rather than 1 band median > imag

Re: [gdal-dev] gdal_calc.py: produce median raster

2014-11-24 Thread Simen Langseth
Dear Marius Jigmond: Thanks for your attempt. Unfortunately, it is producing 3 band outfile, rather than 1 band median image. I could not figure out what this code computed, all the resulted 3 bands images are also different. I hope someone can help me. On Tue, Nov 25, 2014 at 12:09 PM, Marius

[gdal-dev] gdal_calc.py: produce median raster

2014-11-24 Thread Simen Langseth
I have one GeoTiff file with 3 bands. I want to produce a raster file computing pixel wise median value for the three raster bands. How can I do that? I tried as follows: gdal_calc.py -A infile --allBands --outfile outfile --calc median(A) But could not get any out file.

Re: [gdal-dev] Value Error While Writing the File in Chunks

2014-11-23 Thread Simen Langseth
Even Rouault, Thank you! Now the program is working. On Mon, Nov 24, 2014 at 2:15 AM, Even Rouault wrote: > Le dimanche 23 novembre 2014 17:04:05, Simen Langseth a écrit : > > import gdal, numpy as np > > from gdalconst import * > > > > infile = r"D:\given.tif&

[gdal-dev] Value Error While Writing the File in Chunks

2014-11-23 Thread Simen Langseth
import gdal, numpy as np from gdalconst import * infile = r"D:\given.tif" inraster = gdal.Open(infile, GA_ReadOnly) x_total,y_total=refraster.RasterXSize,refraster.RasterYSize n_chunks=10 x_offsets=np.linspace(0,x_total,n_chunks).astype(int) x_offsets=zip(x_offsets[:-1],x_offsets[1:]) y_offsets=np

[gdal-dev] Unable to Mosaic Rasters Using Maximum Values

2014-11-22 Thread Simen Langseth
Dear GDAL Developers: I want to mosaic several geo-refereced rasters using maximum value for the overlapping areas. I looked for buildvrt and gdaltranslate but could not find the way to use maximum values. Is not it possible to modify the buildvrt method to do so or any other means for it? I can't

Re: [gdal-dev] gdal_calc.py and NoData issues

2014-11-19 Thread Simen Langseth
I saw the symbol <> first time in gdal calc what is meaning of it? Thanks On Wed, Nov 19, 2014 at 10:21 PM, Even Rouault wrote: > Le mercredi 19 novembre 2014 14:16:05, Andreas Neumann a écrit : > > Hi Even, > > > > Thank you for trying to help. Unfortunately, the --overwrite option does > > no

[gdal-dev] georeferencing raster data using vector polygon

2014-11-19 Thread Simen Langseth
I wanted to georeference the raster image in UTM coordinates into the boundry of red polygon with geographic coordinate system. https://drive.google.com/file/d/0B2RqG9tSAAIUc3J5ZDN6V01IcG8/view?usp=sharing I tried as follows: gdalwarp,-t_srs wgs84 -srcnodata 0 -dstnodata 0 -r near -te -96.75234

Re: [gdal-dev] Aligning Raster Over the Polygon

2014-11-18 Thread Simen Langseth
x27;s an tutorial here. > <http://www.digital-geography.com/qgis-tutorial-i-how-to-georeference-a-map/#.VGu9qslNf7U> > > > On 11/18/2014 11:29 AM, Simen Langseth wrote: > > Dear GDAL Users: > > I have a raster image which have to be aligned over the polygon. > Both the

[gdal-dev] Aligning Raster Over the Polygon

2014-11-18 Thread Simen Langseth
Dear GDAL Users: I have a raster image which have to be aligned over the polygon. Both the raster and polygon have the same coordinate system. The figure shows the raster image which has to be fitted over the RED polygon. https://drive.google.com/file/d/0B2RqG9tSAAIUc3J5ZDN6V01IcG8/view?usp=shar