[gdal-dev] How to overlay a raster with shapes to calc statistics?

2012-03-18 Thread Andreas H.
Hi all, I have a GeoTiff file covering the whole globe at approx. 1km resolution. And I have a shapefile containing say 20 of polygons. For each of the 20 polygons, I want to know the mean value of the raster data falling inside the polygon, and possibly more statistics (max, min, medeian, std, .

Re: [gdal-dev] To to create HDF4 files for GDAL

2012-01-05 Thread Andreas H.
Hi again, I played around a bit and now it's working. I needed to add four global attributes to the HDF4 file: - TransformationMatrix - AREA_OR_POINT - Projection - Signature What I don't understand is why Signature is needed. I mean, even without Signature, the file contains all necessary infor

Re: [gdal-dev] To to create HDF4 files for GDAL

2012-01-05 Thread Andreas H.
Etienne, thanks for your input. > Why don't you simply use the netcdf api to create a GMT file (which > uses the netcdf file format)̣? The software which creates these HDF files is not developed by me, and its developer is unwilling to implement writing of netcdf files. However, if I'd tell him

[gdal-dev] To to create HDF4 files for GDAL

2012-01-05 Thread Andreas H.
Hi there, when creating HDF4 files outside of GDAL, which metadata do I have to write to the file such that GDAL can subsequently correctly read the data? In the docs I read that only HDF4 files created with GDAL or certain other HDF4 types are recognized. However, the files are created "by hand"

Re: [gdal-dev] re-gridding to a coarser grid

2011-12-15 Thread Andreas H.
anks for your insight, Andreas. > > Joaquim > > Sent from my iPadiola > > On 14/12/2011, at 18:32, "Andreas H." wrote: > >> Travis, >> >> yes, thanks, I had already found that in the documentation. I'm just >> wondering what e.g. 'bil

Re: [gdal-dev] re-gridding to a coarser grid

2011-12-14 Thread Andreas H.
> Yes gdalwarp support various resampling methods > > To use different resampling methods use the -r flag followed by the method > > eg > > gdalwarp -r near .. > gdalwarp -r bilinear . > > etc... > > > > > On 14 Decembe

[gdal-dev] Newbie question about gdal_grid for 3d data

2011-12-14 Thread Andreas H.
Hi again, another question which shows I'm just starting to see if GDAL can actually make my life easier :) I'm working with atmospheric trace gas profiles, so one data"point" consists of latitude, longitude (point or polygon, whichever is easier) and many vertical layers, say 60 floating point v

Re: [gdal-dev] re-gridding to a coarser grid

2011-12-14 Thread Andreas H.
input_1m.tif output_10m.tif > > You may have an issue determining the output resolution as I believe > the resolution will be in decimal degrees rather than arc-seconds. > > Regards > > On 13 December 2011 14:52, Andreas H. wrote: >> Hi, >> >> let's say I h

[gdal-dev] Which is the way to handle altitude layers within one file?

2011-12-14 Thread Andreas H.
Hi, the subject basically says it. What would be the way to go if I want to store multiple altitude layers within a file? The grid contains 64 latitudes, 128 longitudes, and 60 altitude levels. How do I need to create the file in order to be able to use tools like gdalwarp to modify the data/grid?

[gdal-dev] re-gridding to a coarser grid

2011-12-13 Thread Andreas H.
Hi, let's say I have a GeoTIFF file with a global grid in a 30 arc-second resolution. Which would be the appropriate GDAL command to spatially down-sample this file to say 0.125°? Thanks for your insight, Andreas. ___ gdal-dev mailing list gdal-dev@list

Re: [gdal-dev] Announcing significant changs to the netcdf driver

2011-12-13 Thread Andreas H.
> I would like to add many of these fixes and features to the stable 1.8 > series, but new features cannot be added there without explicit > permission of the PSC or an RFC (as per RFC 3). > If anyone would wish that to happen, please express yourself! That sounds great to me. I certainly wish thi

Re: [gdal-dev] HDF-Problems when compiling

2011-10-26 Thread Andreas H.
> I can see that it is trying to link to /usr/local/lib/libmfhdf.a > instead of your specified /hb/USER/lib/epd-7.1-1-x86_64, and something > similar for hdf5 > > Sometimes it's easier to use the default system libraries, or remove > them if you are using more recent ones avoid conflicts like the

[gdal-dev] HDF-Problems when compiling

2011-09-09 Thread Andreas H.
Hi everyone, I'm trying to compile GDAL 1.8.1 from source on a x86_64 machine, compiling against the libraries which come shipped with Enthought's Python distribution. So, what I'm doing is this: $ export CFLAGS="-I/hb/USER/lib/epd-7.1-1-x86_64/include -fPIC" $ export CXXFLAGS="-I/hb/USER/lib/ep