[gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector

2012-10-17 Thread Peter Willis
Hello, Is it possible to use ESRI SHP polygon file to mask ENVI BSQ img format files with more than 1 band? I can mask a GTiff file using the SHP but ENVI file does not appear to work. Gdal version is 1.6.3 . The documentation appears unclear for any raster that is not specifically GTiff.

Re: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector

2012-10-17 Thread Peter Willis
in another /usr/local directory. Perhaps I should use the more recent revision for attempting this. Thanks for the pointers, Peter From: fwarmer...@gmail.com [mailto:fwarmer...@gmail.com] On Behalf Of Frank Warmerdam Sent: October-17-12 3:22 PM To: Peter Willis Cc: gdal-dev

Re: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector

2012-10-17 Thread Peter Willis
within the output ENVI BSQ file ) Perhaps I'm missing something. Peter From: fwarmer...@gmail.com [mailto:fwarmer...@gmail.com] On Behalf Of Frank Warmerdam Sent: October-17-12 3:22 PM To: Peter Willis Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Using gdal_rasterize to mask

Re: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector [SEC=UNCLASSIFIED]

2012-10-18 Thread Peter Willis
either way. Thanks again, Peter From: Pinner, Luke [mailto:luke.pin...@environment.gov.au] Sent: October-17-12 4:11 PM To: Peter Willis; gdal-dev@lists.osgeo.org Subject: RE: [gdal-dev] Using gdal_rasterize to mask ENVI file Using ESRI SHP format Vector [SEC=UNCLASSIFIED] Perhaps

[gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, I have a curious problem with 'gdalinfo' (gdal version 1.9.0 ). I have an input ENVI file with the following .HDR entry: data ignore value = -9.9900e+002 gdalinfo for the IMG file provides stats that exclude all values -999.0 as expected. I then create a masked output file

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
], UNIT[Meter, 1.0]]} -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: October-19-12 11:53 AM To: gdal-dev@lists.osgeo.org Cc: Peter Willis Subject: Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header Le vendredi 19 octobre 2012 20

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Willis Subject: Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header Le vendredi 19 octobre 2012 22:23:49, Peter Willis a écrit : Hello, I am providing the failed example followed by a working example. Let me know if there is any additional information you need. With both

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
-12 2:08 PM To: gdal-dev@lists.osgeo.org Cc: Peter Willis Subject: Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header Le vendredi 19 octobre 2012 22:57:13, Peter Willis a écrit : Hello, The one listed as 'failed' actually fails for me as it is sent . Just to be sure we

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, I am seeing that you are correct that the 'no data value' is being read in each case. Perhaps my interpretation of the problem appears incorrect. Look, however at the 'Metadata:' statistics. Both files have assigned -999 to 'No Data Value' but'STATISTICS_MINIMUM' for one file

Re: [gdal-dev] gdalinfo -stats Misses invalid data value in ENVI header

2012-10-19 Thread Peter Willis
Hello, Good news. Removing the '.aux.xml ' file and again running gdalinfo -statsindeed fixes the problem. I now get the expected statistics values. Thank you for your help. Best Regards, Peter Le vendredi 19 octobre 2012 23:57:01, Peter Willis a écrit : Hello, At step #6

[gdal-dev] Is it possible to ehance input channels separately with gdal_translate ?

2012-10-26 Thread Peter Willis
Hello, I have some input data where the dynamic range and offset of each channel are distinct. This means that applying the same linear enhancement based on data range to my selected RGB output bands will not produce an optimal visual enhancement. -scale smin smax dmin dmax only provides the

[gdal-dev] How Can I gdalwarp From One Image to a Larger Spatial Area While Leaving Missing Data Blank in the Destination?

2014-02-04 Thread Peter Willis
Hello, Sorry about the title but it's a bit of a bear finding answers if the headers don't show the actual topic. But I digress. My Issue: I have an input image that covers coordinates 0,0 to 450,350 UTM zone 13 North and the pixel size is 1 meter. I want to mosaic pixels 0,0 to 25,25 into a

Re: [gdal-dev] How Can I gdalwarp From One Image to a Larger Spatial Area While Leaving Missing Data Blank in the Destination?

2014-02-05 Thread Peter Willis
To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] How Can I gdalwarp From One Image to a Larger Spatial Area While Leaving Missing Data Blank in the Destination? Peter Willis pwillis at aslenv.com writes: Hello, Sorry about the title but it's a bit of a bear finding answers

[gdal-dev] What Statistics Are Returned By GDAL.Dataset.GetRasterBand(...).GetStatistics(...) ?

2019-10-03 Thread Peter Willis
Hello, I am using osgeo.gdal python module to load and get stats from image bands. While working with the, python, 'GetStatistics(...)' function I noticed that the returned values seemed a bit off. A snippet of code is shown below. I compared the statistics returned in python by the function