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

Home » Public Forums » archive » Re: Need help with map projection conversion in ENVI
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Need help with map projection conversion in ENVI [message #74520] Sun, 23 January 2011 19:22 Go to previous message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
On Jan 23, 7:08 pm, Robin Wilson <ro...@rtwilson.com> wrote:
>> I've been going back and forth on this with no success.  Any
>> suggestions would be most welcome.
>
> This could well be a bit of a long shot...but I noticed that the output
> filename was not defined properly in the code you gave. You had the code:
>
> oname=/temp.img'
>
> As far as I can see there may be two things wrong with that:
>
> 1) It needs a ' at the beginning to make it a valid string (although the
> compiler will probably catch that, so I guess that's a typo when copying
> to the newsgroup
>
> 2) A filename of "/temp.img" on a Linux/Unix/OS X machine may well not
> be able to be written to, as you are unlikely to have write access to
> the root of the root filesystem.
>
> ENVI_FILE_OPEN will give an rfid of -1 if it couldn't open the file, so
> if the file hadn't been written properly in the first place then that
> might explain why.
>
> It's just a crazy idea...but it can often be the simplest things that
> cause the major problems (I know I've done this before).
>
> Cheers,
>
> Robin

Thanks, Robin -- I wish it was that simple. The first ' got lost when
I did some editing. It is there in the code.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: listing all subroutines and paths used in a program.
Next Topic: How to speed up or remove this FOR loop

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

Current Time: Wed Oct 08 13:43:43 PDT 2025

Total time taken to generate the page: 0.00405 seconds