Re: [gdal-dev] Loading a scaled rawfile via VRT

2012-02-16 Thread Solomon Gibbs
Sure. Here is what I am trying to do. The raw data has some junk on the front end of the file that needs to be skipped: xxx 9587 2 2952 MSB Then, apply the scaling factor: xxx.vrt 1 0 0.707 So, I'm not clear if the SourceProperties tag can be used

Re: [gdal-dev] Loading a scaled rawfile via VRT

2012-02-16 Thread anton . korosov
Hi Solomon, I believe you can just specify the following tag within the ComplexSource: (of course setting the correct values) In this tag you can explicitly indicate the type of the source. For a more definite answer can you please give an example of the two VRT files that you create. Anton >

[gdal-dev] Loading a scaled rawfile via VRT

2012-02-16 Thread Solomon Gibbs
I have raw data stored as UInt16 that needs to be scaled by a (floating point) calibration factor and presented as Float32. I can successfully load the UInt data using VRTRawRasterBand and scale it using VRT ComplexSource. However, this seems to mean creating two separate VRT datasets and files. I