Re: [gdal-dev] NITF creation

2009-07-30 Thread Chaitanya kumar CH
tunabalik, Try gdal_translate instead of gdalwarp. Best regards, -- Chaitanya kumar CH. On Fri, Jul 31, 2009 at 8:51 AM, tunabalik wrote: > I know this is very simple. I RTFMed as much as I could. > I have RPC as well as offset and scale values. I want to create NITF files > out of TIFFs. I s

[gdal-dev] NITF creation

2009-07-30 Thread tunabalik
I know this is very simple. I RTFMed as much as I could. I have RPC as well as offset and scale values. I want to create NITF files out of TIFFs. I sense gdalwarp is the command, but I really cannot figure out how to embed these coefficients to the header file. I am not asking for step by step

Re: [gdal-dev] open satellite image and display

2009-07-30 Thread Markus Neteler
On Thu, Jul 30, 2009 at 10:53 PM, python question wrote: > How can I open an ENVI image using python and display different band > combinations? > Is there some where I can go to see examples of this? python question, you need a GIS application for that which uses GDAL like GRASS or QGIS. See www.o

[gdal-dev] open satellite image and display

2009-07-30 Thread python question
How can I open an ENVI image using python and display different band combinations? Is there some where I can go to see examples of this? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Writing support for netCDF, HDF4, HDF5

2009-07-30 Thread Even Rouault
Le Thursday 30 July 2009 20:43:48 Mikhail Itkin, vous avez écrit : > Hi, > > Is it possible to write HDF5 files with gdal? No, this was an error in the format page. Rectified now. > Is it possible to create > NetCDF files without having a "prototype" file? Not sure what you mean by a prototype

Re: [gdal-dev] Dataset files

2009-07-30 Thread Javier Urien
On Thu, Jul 30, 2009 at 15:35, Frank Warmerdam wrote: > Javier, > > There are no immediate plans to implement this.  However, I would like to > think that if we eventually did a "grand unification" of GDAL and OGR, then > feature drivers would also have this method.  That is pretty long term > tho

[gdal-dev] Writing support for netCDF, HDF4, HDF5

2009-07-30 Thread Mikhail Itkin
Hi, Is it possible to write HDF5 files with gdal? Is it possible to create NetCDF files without having a "prototype" file? I am currently trying how GDAL works with python, to see if it can fit our research group needs. All three formats NetCDF, HDF4 and HDF5 have writing support according t

Re: [gdal-dev] merge with gdalwrap

2009-07-30 Thread Frank Warmerdam
steve.tout...@inspq.qc.ca wrote: gdalwarp -srcnodata -3.4028234663852886e+38 \ EstRN.img EstSh.img icu.tif I thought I must launch gdalwrap once for each file. Didn't know I could specify several input files Steve, This is a relatively new feature - likely new in 1.6.0. I think I

Re: [gdal-dev] merge with gdalwrap

2009-07-30 Thread Steve . Toutant
gdalwarp -srcnodata -3.4028234663852886e+38 \ EstRN.img EstSh.img icu.tif I thought I must launch gdalwrap once for each file. Didn't know I could specify several input files I think I need to specify the extent and the resolution. - Is the resolution is the pixel size get by gdalinfo?

Re: [gdal-dev] Dataset files

2009-07-30 Thread Frank Warmerdam
Javier Urien wrote: On Thu, Jul 30, 2009 at 14:46, Even Rouault wrote: Le Thursday 30 July 2009 19:32:48 Javier Urien, vous avez écrit : Is there an equivalent of GDALPamDataset::GetFileList for OGR? something like OGRDataSource::GetFileList. Short and long answer : no Are there any plans t

Re: [gdal-dev] Dataset files

2009-07-30 Thread Javier Urien
On Thu, Jul 30, 2009 at 14:46, Even Rouault wrote: > Le Thursday 30 July 2009 19:32:48 Javier Urien, vous avez écrit : >> Is there an equivalent of GDALPamDataset::GetFileList for OGR? >> something like OGRDataSource::GetFileList. > > Short and long answer : no > Are there any plans to add this fu

Re: [gdal-dev] merge with gdalwrap

2009-07-30 Thread Frank Warmerdam
steve.tout...@inspq.qc.ca wrote: Hi, I tried gdal_merge.py but I got a memory Error because I use the -n nodata value option. Several threads sugest that I must use gdalwrap instead. This behavior of gdal_merge.py is very important to me in this particular case "In areas of overlap, the last

[gdal-dev] merge with gdalwrap

2009-07-30 Thread Steve . Toutant
Hi, I tried gdal_merge.py but I got a memory Error because I use the -n nodata value option. Several threads sugest that I must use gdalwrap instead. This behavior of gdal_merge.py is very important to me in this particular case "In areas of overlap, the last image will be copied over earlier one

Re: [gdal-dev] Dataset files

2009-07-30 Thread Even Rouault
Le Thursday 30 July 2009 19:32:48 Javier Urien, vous avez écrit : > Is there an equivalent of GDALPamDataset::GetFileList for OGR? > something like OGRDataSource::GetFileList. Short and long answer : no > > I need to know which files are part of a dataset. > > Thanks in Advance! > ___

Re: [gdal-dev] Programmatically writing VRT files

2009-07-30 Thread Even Rouault
Le Thursday 30 July 2009 16:35:35 Andrew Brooks, vous avez écrit : > Hello > > I'm trying to write a program to create a VRT file that represents > raw data held in separate files by following the example in > http://www.gdal.org/gdal_vrttut.html > > I put a SimpleSource or a VRTRasterBand piece of

[gdal-dev] Dataset files

2009-07-30 Thread Javier Urien
Is there an equivalent of GDALPamDataset::GetFileList for OGR? something like OGRDataSource::GetFileList. I need to know which files are part of a dataset. Thanks in Advance! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mail

[gdal-dev] Calculate image band values within a vector

2009-07-30 Thread python question
I am very much a beginner at python and programming altogether. I have read an introductory book, attempted many exercises and even attended a python course. Although without applying it to something I am doing I don’t seem to be picking it up. I would like to jump straight in and start doing so

Re: [Gdal-dev] gdaladdo for large RPF

2009-07-30 Thread Even Rouault
Charles, sorry for the late answer. Given the dimension of the RPF dataset, 366028x 466944, the overview file should be around 57 GB ( the total size of the overviews of factor 1/2, 1/4, 1/8, 1/2^n is the size of the full resolution dataset divided by 3), which cannot fit into a tradition

Re: [gdal-dev] Programmatically writing VRT files

2009-07-30 Thread Frank Warmerdam
Andrew Brooks wrote: Hello I'm trying to write a program to create a VRT file that represents raw data held in separate files by following the example in http://www.gdal.org/gdal_vrttut.html I put a SimpleSource or a VRTRasterBand piece of XML into xml_string then, as per the example, I call

Re: [gdal-dev] Error in GDAL compiling with HDF4

2009-07-30 Thread Frank Warmerdam
Limei Ran wrote: Hi Frank: I tried setting -fPIC based on the web site. But, it failed as well. I checked config.log file and it has errors like: == /nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/HDF4.2r4/local/lib/libdf.a(cszip.o): In function `HCIcszip_term': cszip.c:

Re: [gdal-dev] Error in GDAL compiling with HDF4

2009-07-30 Thread Limei Ran
Hi Frank: I tried setting -fPIC based on the web site. But, it failed as well. I checked config.log file and it has errors like: == /nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/HDF4.2r4/local/lib/libdf.a(cszip.o): In function `HCIcszip_term': cszip.c:(.text+0x2ae): und

Re: [gdal-dev] Numeric package SOLVEd

2009-07-30 Thread Steve . Toutant
Thanks Scott The numpy version installed on the server wasn't for win32. I download the correct version and it is working. Thanks again for your help, Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Inst

[gdal-dev] Programmatically writing VRT files

2009-07-30 Thread Andrew Brooks
Hello I'm trying to write a program to create a VRT file that represents raw data held in separate files by following the example in http://www.gdal.org/gdal_vrttut.html I put a SimpleSource or a VRTRasterBand piece of XML into xml_string then, as per the example, I call GDALRasterBand *poBand

Re: [gdal-dev] Numeric package

2009-07-30 Thread Mateusz Loskot
steve.tout...@inspq.qc.ca wrote: Hello, In a script I have this try: import numpy as Numeric except ImportError: import Numeric I got this error when running the script import Numeric ImportError: No module named Numeric I'm on windows Under C:\Python26\Lib\site-pac

[gdal-dev] Help Understanding Building Geo Transformation from scratch.

2009-07-30 Thread Cassanova, Bill
Hi all, I am looking for some advice. I have a netcdf file that contains meteorology information. I know the number of rows and columns of the data as well as the corner points. The data is cylindrical-equidistant and un-projected. I need to be able to extract data from the grid based on lat-lo

Re: [gdal-dev] Numeric package

2009-07-30 Thread Scott Sinclair
>2009/7/30 : > In a script I have this >     try: >         import numpy as Numeric >     except ImportError: >         import Numeric > > I got this error when running the script >     import Numeric > ImportError: No module named Numeric > > I'm on windows > Under C:\Python26\Lib\site-packages >

[gdal-dev] Numeric package

2009-07-30 Thread Steve . Toutant
Hello, In a script I have this try: import numpy as Numeric except ImportError: import Numeric I got this error when running the script import Numeric ImportError: No module named Numeric I'm on windows Under C:\Python26\Lib\site-packages I have this I though numpy

Re: [Gdal-dev] gdaladdo for large RPF

2009-07-30 Thread Charles Chung
Does anyone know about how to work with large RPF? Any help is appreciated. Thanks. Charles Chung wrote: > > When I try to build an overview of a.toc file that is associated with 10 > GB (38K files) NITF files, I get the following error message. > > c:\>gdaladdo --config COMPRESS_OVERVIEW DEF