Giter Site home page Giter Site logo

tandemxformatlab's Introduction

TerraSAR-X/TanDEM-X Toolbox for MATLAB

MATLAB tools to read TerraSAR-X/TanDEM-X datasets.

Copyright 2013 Florian Behner and Simon Reuter.

This file is part of the TerraSAR-X/TanDEM-X Toolbox for MATLAB.

The TerraSAR-X/TanDEM-X Toolbox for MATLAB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The TerraSAR-X/TanDEM-X Toolbox for MATLAB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with The TerraSAR-X/TanDEM-X Toolbox for MATLAB. If not, see http://www.gnu.org/licenses/.

What is provided by this toolset

The TerraSAR-X/TanDEM-X Toolbox provides an MATLAB interface to read the data and annotation information delivered by the TanDEM-X mission operated by the German Aerospace Center (DLR). This dataset is specified as Level1b and COSSC product in the following documents which are reffered in the code as:

Further information can be found at the operators websites:

Installation/Basic Usage

Most users will add the folder structure for this package to their MATLAB path or their default workspace. Most modules are provided as MATLAB classes or Java classes with MATLAB wrapper functions. The toolbox makes use of MATLAB packages to create namespaces.

For usage of the toolbox consider the script getStarted.m.

Function Overview

###Reading TanDEM-X mission interferometric data### ####COSSC XML#### Read COSSC annotation files specified in TD-GS-PS-3028 using:

cosscDocument = util.io.tdm.readCosscProduct(fileName);

The function returns a Java Object representing the file content. ####Image Layer Info Text#### Read Image Layer Info annotation file specified in TD-GS-PS-3028 using:

iliDocument = util.io.tdm.readImageLayerInfo(fileName);

The function returns a Matlab struct representing the file content. ####Spectral Filter Frequency XML#### Read Spectral Filter Frequency annotation file specified in TD-GS-PS-3028 using:

sffDocument = util.io.tdm.readSpectralFilterFrequency(fileName);

The function returns a Matlab struct representing the xml tree. ####SUN raster data#### Read the SUN raster format as specified in TD-GS-PS-3028 using:

[rasFile, rasColorTable] = util.io.tdm.readImageRasterFile(fileName);

The function returns the indexed or floating point image and the colortable if available.

###Reading TerraSAR-X/TanDEM-X mission Level1b monostatic data### ####Level1b XML#### Read Level1b xml annotation files specified in TX-GS-DD-3307 using:

level1bDocument = util.io.tdm.readLevel1Product(fileName);

The function returns a Java Object representing the file content. ####Geo Reference XML#### Read Geo Reference annotation files specified in TX-GS-DD-3307 using:

georefDocument = util.io.tdm.readGeoReference(fileName);

The function returns a Java Object representing the file content. ####Antenna Phase Pattern XML#### Read Antenna Phase Pattern annotation files specified in TX-GS-DD-3307 using:

rfAntPatDocument = util.io.tdm.readAntennaPhasePattern(fileName);

The function returns a Java Object representing the file content. ####COSAR Image data#### Read COSAR image data files specified in TX-GS-DD-3307 using:

cosarFile = util.io.tdm.CosarFile(fileName);
% Get Information about the file
cosarFile.getNbrBursts
cosarFile.getNbrAzimuthSamples
cosarFile.getNbrRangeSamples
% Get the whole dataset of the first burst
imageData=cosarFile.readRangeLines();
% Get a portion of the dataset
[imageSection,imageInvalid]=cosarFile.readRangeLines(burstId,azimuthStartRead,nbrAzimuthRead);

The function returns a Matlab Object representing the file. The data is read through the readRangeLines() method.

Recompiling the Java class binaries

To recompile the binaries used to read the xml based annotion data you can invoke the skript util.io.tdm.make.m. Be sure that you have installed the xjc jaxb compiler and the javac Java compiler both provided by the JDK. Further you have to provide the xml stylesheets (xsl) included in the TanDEM-X datasets, for the xml files you want to read. The stylesheets are configured in the make script. The precompiled classes are Java version 1.6, which is the current version shipped by MATLAB.

tandemxformatlab's People

Contributors

flobehner avatar simonreuter avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.