Re: I have a problem! [message #82407] |
Wed, 12 December 2012 07:05 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jonathan Reboucas writes:
> "The image is in variable 'im'. I also extracted the longitudes and latitudes every 10 pixels in range and 10 pixels in azimuth
> (grid_spacing) under TABLAT and TABLON. info and str are information structures that you can check with help, info, /str for example."
> i didnt understand this very well but...
Yes, I don't understand it either. Maybe you should ask
him to clarify it. If you measure latitude and longitude
every 10 pixels, wouldn't your lat/lon arrays be something
like 205x205. Where in the world do 881x849 come from!?
As I say, these numbers don't seem to make any sense.
You need to find out how the values in your lat/lon
arrays are related to your image pixels. Once we know
that, we might be able to make a start on this problem.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: I have a problem! [message #82408 is a reply to message #82407] |
Wed, 12 December 2012 07:00  |
Fabzi
Messages: 305 Registered: July 2010
|
Senior Member |
|
|
On 12/12/2012 02:51 PM, David Fanning wrote:
> Well, these numbers don't make any sense in this
> context, so you are going to have to explain to
> us your theory on how this is suppose to work.:-)
I love this newsgroup ;-)
One of the things that helps when you're thinking of changing to another
cheaper language.
Fab
(The python newsgroup is active but by far not so nice. There are even
some real mean comments sometimes, nothing to do with the nice -often
critical- ones from David ;-)
|
|
|
Re: I have a problem! [message #82409 is a reply to message #82408] |
Wed, 12 December 2012 06:51  |
Jonathan Reboucas
Messages: 2 Registered: December 2012
|
Junior Member |
|
|
Em quarta-feira, 12 de dezembro de 2012 11h51min42s UTC-2, David Fanning escreveu:
> Jonathan Reboucas writes:
>
>
>
>> i have this variables into my project:
>
>> GRID_SPACING INT = Array[2]
>
>> IM UINT = Array[2048, 2048]
>
>> INFO STRUCT = -> <Anonymous> Array[1]
>
>> STR STRUCT = -> <Anonymous> Array[1]
>
>> TABLAT FLOAT = Array[881, 849]
>
>> TABLON FLOAT = Array[881, 849]
>
>>
>
>> im is a image, tablon is longitude and tablot is latitude. i have the spacing grid(gri_spacing), its 10. i want use this variables for create a georeferencing image. can be any raster format.
>
>
>
> Well, these numbers don't make any sense in this
>
> context, so you are going to have to explain to
>
> us your theory on how this is suppose to work. :-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
ok.
i have a radarsat image. xcellsize and ycellsize equal to 6.25 meters. my IM variable has the value for each pixel. the guy has send me the file with this variables say me this:
"The image is in variable 'im'. I also extracted the longitudes and latitudes every 10 pixels in range and 10 pixels in azimuth
(grid_spacing) under TABLAT and TABLON. info and str are information structures that you can check with help, info, /str for example."
i didnt understand this very well but...
i need restore this radarsat image georeferenced, its mean i need create file with thats variables for open inside envi or arcgis.
|
|
|
Re: I have a problem! [message #82410 is a reply to message #82409] |
Wed, 12 December 2012 05:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jonathan Reboucas writes:
> i have this variables into my project:
> GRID_SPACING INT = Array[2]
> IM UINT = Array[2048, 2048]
> INFO STRUCT = -> <Anonymous> Array[1]
> STR STRUCT = -> <Anonymous> Array[1]
> TABLAT FLOAT = Array[881, 849]
> TABLON FLOAT = Array[881, 849]
>
> im is a image, tablon is longitude and tablot is latitude. i have the spacing grid(gri_spacing), its 10. i want use this variables for create a georeferencing image. can be any raster format.
Well, these numbers don't make any sense in this
context, so you are going to have to explain to
us your theory on how this is suppose to work. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|