comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » converting map projections using ENVI
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
converting map projections using ENVI [message #50106] Wed, 13 September 2006 12:57 Go to next message
surajchem is currently offline  surajchem
Messages: 10
Registered: September 2006
Junior Member
i have a simusoidal map which i want to convert into lambert conformal
conic projection.
i made a customize lambert conformal conic projection. but when ever i
tried to convert it it would give the following error" array dimensions
must exceed 0"
but when i tried to convert a world demo inbuilt in ENVI and using the
customized projection it worked!!
i dont know where i am going wrong

any help would be appreciated
thanks
sunny
Re: converting map projections using ENVI [message #50158 is a reply to message #50106] Fri, 15 September 2006 13:54 Go to previous messageGo to next message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
surajchem@hotmail.com wrote:
> I did not write any code i just use ENVI software to do the conversion,
> i had obtain the data from any ftp site where they mention about using
> ENVI software to use it.

Sorry - I read your message too quickly, and didn't notice that it was
ENVI, rather than code that you wrote, which produced this message.
Without knowing which line of code is failing, it's going to be
difficult to figure out which array has the wrong dimensions.

At the very least, could you provide an explanation of the exact steps
you took, including the values of all relevant projection parameters
that you set?
Re: converting map projections using ENVI [message #50216 is a reply to message #50158] Mon, 18 September 2006 08:46 Go to previous message
surajchem is currently offline  surajchem
Messages: 10
Registered: September 2006
Junior Member
i had a earth data that is a IS projection with 4 km resolution which
i downloaded from the site which had this header of the file
*****************************************************
ENVI
description = {
File Imported into ENVI.}
samples = 10800
lines = 5400
bands = 1
header offset = 0
file type = ENVI Standard
data type = 1
interleave = bsq
sensor type = Unknown
byte order = 0
map info = {Sample IS, 5400.5000, 2700.5000, 0.0000, 0.0000,
3.7065017090e+003, 3.7065017090e+003, , units=Meters}
projection info = {38, 6371007.2, 0.000000, 0.0, 0.0, 86400, 1, Sample
IS, units=Meters}
wavelength units = Unknown
geo points = {
1.0000, 2700.0000, 0.00000000, -180.00000000,
5400.0000, 300.0000, 80.00000000, 0.00000000,
10500.0000, 2700.0000, 0.00000000, 170.00000000,
5400.0000, 3600.0000, -30.00000000, 0.00000000}
pixel size = {3.70650171e+003, 3.70650171e+003, units=Meters}
************************************************************ *******************************

after editing the header in the ENVI with the above data i could view
the map .

then i went on to create a customized map projection which comes under
'map' in the envi tool bar.
customized lambert conformal conic projection (which shows china in
front)
with 0 E, 0 N , cental meridian: 110 E, latitude of projection origin :
0 N
and the two std parallels 25 N and 40 N.
after which i would select maps>> convert map projections>>
i would select the projection and it would make automatic changes to
the input/ output pixels size, then i would select 'rigorus' in the
'conversion parameter' and then choose nearest neighbor and then press
OK.
then it would give the error ' matrix dimension must exceed zero'

but then i tried using the inbuilt Lambert CC in ENVI still gave me the
same error
but when i used Geographic Lat/Long as map projection it worked i again
tired to use envi to convert from this projection into LCC , gave me
the same error.

so then i tried a demo geo lat/lon world map inbuilt in ENVI and tried
to use my customised LCC and the inbuilt LCC and it worked for both
so now i am stuck!!!!!

do u use envi?
> surajchem@hotmail.com wrote:
>> I did not write any code i just use ENVI software to do the conversion,
>> i had obtain the data from any ftp site where they mention about using
>> ENVI software to use it.
>
> Sorry - I read your message too quickly, and didn't notice that it was
> ENVI, rather than code that you wrote, which produced this message.
> Without knowing which line of code is failing, it's going to be
> difficult to figure out which array has the wrong dimensions.
>
> At the very least, could you provide an explanation of the exact steps
> you took, including the values of all relevant projection parameters
> that you set?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: calculating rotations from a transformation matrix
Next Topic: Re: Yo Mama....IDL Humor Re: Newsgroup Decorum

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 01:30:50 PDT 2025

Total time taken to generate the page: 0.72012 seconds