Top Banner
MATLAB and HDF-EOS The MathWorks, Inc. Dr. Steven L. Eddins Image Processing Specialist [email protected]
23

MATLAB and HDF-EOS

May 14, 2015

Download

Technology

HDF AND HDF-EOS WORKSHOP II (1998)

Source: http://hdfeos.org/workshops/ws02/presentations/eddins/eddins.ppt
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MATLAB and HDF-EOS

MATLAB and HDF-EOSThe MathWorks,

Inc.

Dr. Steven L. EddinsImage Processing Specialist

[email protected]

Page 2: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

2MATLAB and HDF-EOS

Overview

The MathWorks, Inc. MATLAB MATLAB support for HDF-EOS Examples and demos

Page 3: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

3MATLAB and HDF-EOS

The MathWorks, Inc. - The Company

Founded in 1984, privately held Based in Natick, Massachusetts 475 employees (150+ Developers) Annual growth > 30% Founders still active -- Jack Little, Cleve Moler,

and Steve Bangert

Page 4: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

4MATLAB and HDF-EOS

MATLAB MATLAB is the leading computational software for

Product design and development Research in industry and academia Technical education

Over 400,000 MATLAB users worldwide Used in over 100 countries

Page 5: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

5MATLAB and HDF-EOS

MATLAB is an integrated technical computing environment. Its capabilities include:

Mathematical computation Graphics and visualization Data analysis Algorithm development Simulation and modeling Programming and application development

“For the purposes of an engineer or scientist, MATLAB has the most features and is the best developed program in its class.” -IEEE Spectrum, Software Review, February 1997

Page 6: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

6MATLAB and HDF-EOS

Aerospace Customers

Commercial - USAllied SignalBell HelicopterBoeingHarrisHoneywellLockheed/MartinNorthrop-GrummanPratt and WhitneyRaytheon Sys. Co.SikorskyTRW

InternationalAerospatialeAirbus ConsortiumAleniaBritish AerospaceCASADERAIAIMatraSagemSpar AerospaceSNECMA

GovernmentAir Force (US and others)Canadian Space AgencyDoDEuropean Space AgencyMinistry of DefNASA (all facilities)Navy (US and others)NSA

Page 7: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

7MATLAB and HDF-EOS

Notable Projects Using MATLAB

Space Maneuvering Vehicle Deep Space Probe International Space Station Next Generation Space Telescope

“I have been amazed at how MATLAB can boost one’s productivity. Anything from simple analysis to complex modeling and simulation can be done in a fraction of the time it would take to write your own code.”

Gregory E. Chamitoff, Ph.D.NASA, Johnson Space Center

Page 8: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

8MATLAB and HDF-EOS

The MathWorks Products

ControlControl

Control SystemRobust ControlMu-AnalysisNonlinear ControlQuantitative FbackLMI ControlModel Predictive

Simulation& Code generation

Simulation& Code generation

SIMULINKStateflowReal-Time WorkshopFixed Point BlocksetRTW Ada Extension

Signal ProcessingSignal Processing

Signal ProcessingDSP BlocksetWaveletsCommunications

LanguageLanguage

MATLABMATLAB Compiler

SystemIdentification

SystemIdentification

System IDFrequency-Domain System ID

GeneralGeneral

OptimizationSpline Statistics Symbolic MathNAGDatabase

ApplicationsApplications

Image ProcessingMappingPower System Block SetFuzzy LogicFinancial ToolboxPartial Differential EqnsNeural Network

PartnersPartners

ADI (Beacon)dSPACE RTIVxWorks - Wind RiverSD/Fast - Symbolic DynamicsMaple V - Waterloo MapleSaber - AnalogyADAMS - MDIDADS - CADSITeamwork - CADRE

Page 9: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

9MATLAB and HDF-EOS

MATLAB HDF-EOS support

There is a one-to-one correspondence between HDF-EOS API functions and MATLAB syntaxes.

Example:

Crid = GDdefboxregion(gid,cornerlon,cornerlat);

MATLABrid = hdfgd('defboxregion',gid,cornerlon,cornerlat);

HDF-EOS will be supported in MATLAB 5.3.

Page 10: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

10MATLAB and HDF-EOS

Examples

15 sample HDF-EOS utilities:

What objects are in a file? What does an object contain? Where is the data located? Extracting a Grid region Exporting to a SQL database

Page 11: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

11MATLAB and HDF-EOS

What objects are in a file?

Sample functionsGRIDS Names of Grid objects in an HDF-EOS file.

SWATHS Names of Swath objects in an HDF-EOS file.

POINTS Names of Point objects in an HDF-EOS file.

Code fragment[ngrids,gridlist] = hdfgd('inqgrid',filename);

Example» grids dem30arc.eos

ans =

'demGRID'

'qualityGRID'

Page 12: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

12MATLAB and HDF-EOS

What does an object contain?

Sample functionsGRIDINFO Information about a Grid object.

SWATHINFO Information about a Swath object.

POINTINFO Information about a Point object.

Code fragment fv = hdfsw('getfillvalue',swath_id,fieldname);

Example» swathinfo asttahoe.eos TIR_Band10

Page 13: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

13MATLAB and HDF-EOS

What does an object contain?

ans =

FileName: 'asttahoe.eos'

SwathName: 'TIR_Band10'

DimensionName: {1x4 cell}

DimensionSize: {[11] [11] [688] [638]}

DimensionMap: {'GeoTrack/ImageLine' ...

DimensionMapOffset: {[0] [0]}

DimensionMapIncrement: {[69] [64]}

IndexMap: {0x1 cell}

IndexMapSize: {}

FieldName: {'ImageData' 'Latitude' ...

FieldRank: {[2] [2] [2]}

FieldSize: {[688 638] [11 11] [11 ...

...

Page 14: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

14MATLAB and HDF-EOS

MATLAB Demo: Point utilities

Page 15: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

15MATLAB and HDF-EOS

Where is the data located?

Sample functionsSHOWGRIDLOC Show Grid location on a world map.

SHOWSWATHLOC Show Swath location on a world map.

SHOWPOINTLOC Show Point location on a world map.

Code fragmentlat = hdfsw('readfield',swath_id, 'Latitude', ...

start,stride,edge);

Examples» showswathloc mop01day.eos

» showgridloc ssmi.eos

Page 16: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

16MATLAB and HDF-EOS

Where is the data located?

Page 17: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

17MATLAB and HDF-EOS

Extracting a Grid region

Sample functionsGRIDREGSIZE Size of Grid region.

GRIDREGEXTRACT Extract a Grid region.

GRIDEXAMPLE1 Display Grid region as image.

GRIDEXAMPLE2 Display Grid region as shaded lit relief

Code fragmentregion_id = hdfgd('defboxregion',grid_id,...

cornerlon,cornerlat);

Examples» gridexample1

» gridexample2

Page 18: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

18MATLAB and HDF-EOS

MATLAB demo: Grid utilities

Page 19: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

19MATLAB and HDF-EOS

Page 20: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

20MATLAB and HDF-EOS

Exporting to a SQL database

Code fragmentconn = database('BalloonDB','','');

leveldata1 = hdfpt('readlevel',point_id,0,... 'StationID,StationLat,StationLon',0:numrecords1-1);

insert(conn, 'Station', colnames, rows);

close(conn)

Example» balloondb

Page 21: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

21MATLAB and HDF-EOS

MATLAB demo: Database utilities

Page 22: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

22MATLAB and HDF-EOS

Application Development

Rapid prototyping

Mathematics Data analysis Graphics & visualization Rich, interactive

language Many domain-specific

products (e.g, image processing, fuzzy logic, neural networks, wavelets, control, …)

HDF-EOS support

Application deployment

Multiplatform GUI tools Runtime server MATLAB compiler

(automatic MATLAB-to-C translation)

Page 23: MATLAB and HDF-EOS

Copyright 1984 - 1998 by The MathWorks, Inc.

23MATLAB and HDF-EOS

Summary

The power of MATLAB’s mathematics, graphics, data analysis, algorithm development, and application development, combined with the complete HDF-EOS API.

No-hassle interpreted environment; no libraries or program compilation to worry about

HDF-EOS functionality to be available in MATLAB 5.3; contact Steve Eddins ([email protected]) to inquire about receiving a beta or prerelease version.