Path: news.mathworks.com!not-for-mail
From: "Joaquim Luis" <jluis@--ualg--.pt>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to assign lat/lon to a 2D Earth image
Date: Fri, 4 Jan 2008 02:40:19 +0000 (UTC)
Organization: Univ do Algarve
Lines: 19
Message-ID: <flk6aj$srf$1@fred.mathworks.com>
References: <flheik$l3b$1@fred.mathworks.com> <flho0f$a44$1@fred.mathworks.com> <fljqls$ian$1@fred.mathworks.com>
Reply-To: "Joaquim Luis" <jluis@--ualg--.pt>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1199414419 29551 172.30.248.35 (4 Jan 2008 02:40:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 4 Jan 2008 02:40:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 594262
Xref: news.mathworks.com comp.soft-sys.matlab:444283


"Roy Chang" <tigermacross@yahoo.com> wrote in message 
<fljqls$ian$1@fred.mathworks.com>...
> Hi,
> Could you please show me which commands I can use to load
> the image file, assign the lat/lon, draw the figure, and
> plot the result as I mentioned?
> Thanks a lot. 
> 

Normally the operation you want (image registration or 
georeferencing) is more complicated but in this case it's 
trivial since the image is simply in lon-lat covering the 
whole earth. So something like this should work

I = imread('the image');         % 'the image' is obviously 
the image file name
image([-180 180],[-90 90],I)

J. Luis