Re: [gdal-dev] GEOGRID projection question

2017-08-03 Thread Brad Hards
Looks somewhat like it came from WRF/ARW forecast software. Brad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] GEOGRID projection question

2017-08-03 Thread Michael Sumner
Thanks! That looks right to me, I'm exploring here and it also seems to be an ob_tran rotation, knowing that is probably enough for me to be able to fix. http://www2.mmm.ucar.edu/wrf/users/docs/user_guide_V3/users_guide_chap3.htm#_Description_of_GEOGRID.TBL If anyone has direct experience with

[gdal-dev] GEOGRID projection question

2017-08-03 Thread Michael Sumner
Hello, I have this output in the global attributes of a NetCDF, seemingly originating with USGS and a program called "GEOGRID" - see print below. Does anyone happen to know what MAP_PROJ = 6 and GRIDTYPE = "C" stands for? The CEN_LAT/CEN_LON are sensible but TRUELAT1/TRUELAT2 look like filler,

Re: [gdal-dev] Vector only GDAL build?

2017-08-03 Thread Kurt Schwehr
What Even said or alternatives: #if 1 int ThingIDoNotWant() { return 0; } #else int ThingIDoNotWant() { normal body } #endif Or place an abort(); call in any place where you absolutely don't want to go but can't easily get rid of. Better to have a program go down than to run something you

Re: [gdal-dev] Vector only GDAL build?

2017-08-03 Thread Even Rouault
On jeudi 3 août 2017 21:16:30 CEST Jim Walseth wrote: > Does anyone have experience or information about building GDAL without > LibTIFF? > > We are using GDAL only for vector data conversions, yet are faced with > updating GDAL a second time due to reported security vulnerabilities in > libTIFF.

[gdal-dev] Vector only GDAL build?

2017-08-03 Thread Jim Walseth
Does anyone have experience or information about building GDAL without LibTIFF? We are using GDAL only for vector data conversions, yet are faced with updating GDAL a second time due to reported security vulnerabilities in libTIFF. Thanks. -Jim

Re: [gdal-dev] Raster statistics

2017-08-03 Thread Paul Meems
Thanks Chris for your reply. I forgot to mention I'm not using GDAL with Python. I use it with C++ and/or C#. Paul *Paul Meems * Release manager, configuration manager and forum moderator of MapWindow GIS. www.mapwindow.org Owner of MapWindow.nl - Support for Dutch speaking users.

Re: [gdal-dev] Raster statistics

2017-08-03 Thread Chris Waigl
I would not use gdal for this particular task. I presume you have the band data in a 2D numpy array. Then I’d get the 80th percentile for example with np.percentile() and use a boolean expression to generate a mask for the array (droneraster > perc80value ). Chris -- Christine (Chris) Waigl

[gdal-dev] Raster statistics

2017-08-03 Thread Paul Meems
I have a drone raster file which I want to use for some calculation. Before the calculation, I need to loose some extreme values. I want to do something like a percentile calculation where you get all values, order them and loose the top 10%. For this, I need to get all values first which can be