Re: [gdal-dev] Get Metadata from VRT file, store 4D Dataset into VRT

2016-07-21 Thread hannesd
Hi Even, thanks for your quick answer! I have done the second suggestion you made: First made mosaik vrt files and then performed gdalbuiltvrt -separate to merge them into a multi band raster. Again two issues: 1. Is there a way to retrieve the metadata from the mosaik vrt files without actual

Re: [gdal-dev] Get Metadata from VRT file, store 4D Dataset into VRT

2016-07-14 Thread Even Rouault
Hannes, > > 1st Question: How can I get the metadata from each band e.g. the > "SourceFilename"? > I tried the following: > /band1=ds.GetRasterBand(1) > metadata_band1=band1.GetMetadata()/ > Unfortunately, there is not output, although /gdalinfo/ (outside python) > provides all the metadata of th

[gdal-dev] Get Metadata from VRT file, store 4D Dataset into VRT

2016-07-14 Thread hannes.diedr...@gfz-potsdam.de
Hello, I just started to use virtual raster bands with gdal (python) and have two questions (see below). My aim: I like to manage Sentinel 2 data with VRB preferably in an 4D environment (x,y,time, spectral band) This is what I have done so far: I managed to build a vrt file by adding multiple j