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

Home » Public Forums » archive » % error opening file
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
% error opening file [message #91188] Mon, 15 June 2015 05:57 Go to next message
Shaktivel Pillai is currently offline  Shaktivel Pillai
Messages: 16
Registered: June 2015
Junior Member
i am using idl and i am totally new,but want to learn IDL as soon as possible.
I have written this script file on gedit in IDL.

n=10
x=1.0+findgen(n)
y=ALOG10(x)
plot,x,y


and saved this file as log_plot.pro

but when i try to execute the script file from idl command promt by writting @log_plot

i am getting this message
error opening file




please some one help me out in this
Re: % error opening file [message #91189 is a reply to message #91188] Mon, 15 June 2015 06:51 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 6/15/15 6:57 AM, Shaktivel Pillai wrote:
> i am using idl and i am totally new,but want to learn IDL as soon as
> possible. I have written this script file on gedit in IDL.
>
> n=10 x=1.0+findgen(n) y=ALOG10(x) plot,x,y
>
>
> and saved this file as log_plot.pro
>
> but when i try to execute the script file from idl command promt by
> writting @log_plot
>
> i am getting this message error opening file
>
>
>
>
> please some one help me out in this
>

Works for me.

Are you in the same directory as log_plot.pro? Are you using the
Workbench or the command line?

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Re: % error opening file [message #91190 is a reply to message #91189] Mon, 15 June 2015 07:26 Go to previous messageGo to next message
Shaktivel Pillai is currently offline  Shaktivel Pillai
Messages: 16
Registered: June 2015
Junior Member
On Monday, June 15, 2015 at 6:51:47 PM UTC+5, Michael Galloy wrote:
> On 6/15/15 6:57 AM, Shaktivel Pillai wrote:
>> i am using idl and i am totally new,but want to learn IDL as soon as
>> possible. I have written this script file on gedit in IDL.
>>
>> n=10 x=1.0+findgen(n) y=ALOG10(x) plot,x,y
>>
>>
>> and saved this file as log_plot.pro
>>
>> but when i try to execute the script file from idl command promt by
>> writting @log_plot
>>
>> i am getting this message error opening file
>>
>>
>>
>>
>> please some one help me out in this
>>
>
> Works for me.
>
> Are you in the same directory as log_plot.pro? Are you using the
> Workbench or the command line?
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)

hiee Michael....
thanks a lot to the lord that i found a guide like you whom i was searching for.....
I am actually a Summer Research Student AT Indian Institute of Technology BHU.......
and i am actually working on detection of sunspots from the continnum images obtained from SDO for now...
I have actually noted down the algorithm for it but from past ten days im figuring out on how to procede in IDL syntax; as in how to write the programme in IDL...
Can you please guide me out a bit,as in just a start up on how to get start with and then I would get the way to do the remaining in the list...
Please do help me out as I need to finish up with this soon so that I could really work with my actual Problem .....




I am sending the link below...Please a humble request to you Michael...Please help me out in this........

http://download.springer.com/static/pdf/504/art%253A10.1007% 252Fs11207-013-0393-6.pdf?originUrl=http%3A%2F%2Flink.spring er.com%2Farticle%2F10.1007%2Fs11207-013-0393-6&token2=ex p=1434379501~acl=%2Fstatic%2Fpdf%2F504%2Fart%25253A10.1007%2 5252Fs11207-013-0393-6.pdf%3ForiginUrl%3Dhttp%253A%252F%252F link.springer.com%252Farticle%252F10.1007%252Fs11207-013-039 3-6*~hmac=2876aab1af8b66d8231c1199efa3478632987b6db50375af98 9b4ed43461778f
Re: % error opening file [message #91192 is a reply to message #91190] Mon, 15 June 2015 09:40 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 6/15/15 8:26 AM, Shaktivel Pillai wrote:
> On Monday, June 15, 2015 at 6:51:47 PM UTC+5, Michael Galloy wrote:
>> On 6/15/15 6:57 AM, Shaktivel Pillai wrote:
>>> i am using idl and i am totally new,but want to learn IDL as soon
>>> as possible. I have written this script file on gedit in IDL.
>>>
>>> n=10 x=1.0+findgen(n) y=ALOG10(x) plot,x,y
>>>
>>>
>>> and saved this file as log_plot.pro
>>>
>>> but when i try to execute the script file from idl command promt
>>> by writting @log_plot
>>>
>>> i am getting this message error opening file
>>>
>>>
>>>
>>>
>>> please some one help me out in this
>>>
>>
>> Works for me.
>>
>> Are you in the same directory as log_plot.pro? Are you using the
>> Workbench or the command line?
>>
>> Mike -- Michael Galloy www.michaelgalloy.com Modern IDL: A Guide to
>> IDL Programming (http://modernidl.idldev.com)
>
> hiee Michael.... thanks a lot to the lord that i found a guide like
> you whom i was searching for..... I am actually a Summer Research
> Student AT Indian Institute of Technology BHU....... and i am
> actually working on detection of sunspots from the continnum images
> obtained from SDO for now... I have actually noted down the algorithm
> for it but from past ten days im figuring out on how to procede in
> IDL syntax; as in how to write the programme in IDL... Can you please
> guide me out a bit,as in just a start up on how to get start with and
> then I would get the way to do the remaining in the list... Please do
> help me out as I need to finish up with this soon so that I could
> really work with my actual Problem .....
>
>
>
>
> I am sending the link below...Please a humble request to you
> Michael...Please help me out in this........
>

I would suggest getting a good book if you are starting out. There are a
lot of issues when starting to learn a programming language and it would
get tedious to ask and have to wait for an answer here. This is a great
forum to ask people very specific question.

So, did you get log_plot.pro to run?

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Re: % error opening file [message #91195 is a reply to message #91192] Mon, 15 June 2015 21:22 Go to previous messageGo to next message
Shaktivel Pillai is currently offline  Shaktivel Pillai
Messages: 16
Registered: June 2015
Junior Member
On Monday, June 15, 2015 at 9:38:38 PM UTC+5, Mike Galloy wrote:
> On 6/15/15 8:26 AM, Shaktivel Pillai wrote:
>> On Monday, June 15, 2015 at 6:51:47 PM UTC+5, Michael Galloy wrote:
>>> On 6/15/15 6:57 AM, Shaktivel Pillai wrote:
>>>> i am using idl and i am totally new,but want to learn IDL as soon
>>>> as possible. I have written this script file on gedit in IDL.
>>>>
>>>> n=10 x=1.0+findgen(n) y=ALOG10(x) plot,x,y
>>>>
>>>>
>>>> and saved this file as log_plot.pro
>>>>
>>>> but when i try to execute the script file from idl command promt
>>>> by writting @log_plot
>>>>
>>>> i am getting this message error opening file
>>>>
>>>>
>>>>
>>>>
>>>> please some one help me out in this
>>>>
>>>
>>> Works for me.
>>>
>>> Are you in the same directory as log_plot.pro? Are you using the
>>> Workbench or the command line?
>>>
>>> Mike -- Michael Galloy www.michaelgalloy.com Modern IDL: A Guide to
>>> IDL Programming (http://modernidl.idldev.com)
>>
>> hiee Michael.... thanks a lot to the lord that i found a guide like
>> you whom i was searching for..... I am actually a Summer Research
>> Student AT Indian Institute of Technology BHU....... and i am
>> actually working on detection of sunspots from the continnum images
>> obtained from SDO for now... I have actually noted down the algorithm
>> for it but from past ten days im figuring out on how to procede in
>> IDL syntax; as in how to write the programme in IDL... Can you please
>> guide me out a bit,as in just a start up on how to get start with and
>> then I would get the way to do the remaining in the list... Please do
>> help me out as I need to finish up with this soon so that I could
>> really work with my actual Problem .....
>>
>>
>>
>>
>> I am sending the link below...Please a humble request to you
>> Michael...Please help me out in this........
>>
>
> I would suggest getting a good book if you are starting out. There are a
> lot of issues when starting to learn a programming language and it would
> get tedious to ask and have to wait for an answer here. This is a great
> forum to ask people very specific question.
>
> So, did you get log_plot.pro to run?
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)

no sir i still didnt get it.
I didnt get your question as in I am using workbench or Command line..
i am actually using IDL with Solar SOft Ware sswidl..
My question is when i write the programme in gedit.. where to save it and how to go to same directory of log_plot from idl Command promt
Re: % error opening file [message #91198 is a reply to message #91192] Tue, 16 June 2015 06:22 Go to previous messageGo to next message
Shaktivel Pillai is currently offline  Shaktivel Pillai
Messages: 16
Registered: June 2015
Junior Member
On Monday, June 15, 2015 at 9:38:38 PM UTC+5, Mike Galloy wrote:
> On 6/15/15 8:26 AM, Shaktivel Pillai wrote:
>> On Monday, June 15, 2015 at 6:51:47 PM UTC+5, Michael Galloy wrote:
>>> On 6/15/15 6:57 AM, Shaktivel Pillai wrote:
>>>> i am using idl and i am totally new,but want to learn IDL as soon
>>>> as possible. I have written this script file on gedit in IDL.
>>>>
>>>> n=10 x=1.0+findgen(n) y=ALOG10(x) plot,x,y
>>>>
>>>>
>>>> and saved this file as log_plot.pro
>>>>
>>>> but when i try to execute the script file from idl command promt
>>>> by writting @log_plot
>>>>
>>>> i am getting this message error opening file
>>>>
>>>>
>>>>
>>>>
>>>> please some one help me out in this
>>>>
>>>
>>> Works for me.
>>>
>>> Are you in the same directory as log_plot.pro? Are you using the
>>> Workbench or the command line?
>>>
>>> Mike -- Michael Galloy www.michaelgalloy.com Modern IDL: A Guide to
>>> IDL Programming (http://modernidl.idldev.com)
>>
>> hiee Michael.... thanks a lot to the lord that i found a guide like
>> you whom i was searching for..... I am actually a Summer Research
>> Student AT Indian Institute of Technology BHU....... and i am
>> actually working on detection of sunspots from the continnum images
>> obtained from SDO for now... I have actually noted down the algorithm
>> for it but from past ten days im figuring out on how to procede in
>> IDL syntax; as in how to write the programme in IDL... Can you please
>> guide me out a bit,as in just a start up on how to get start with and
>> then I would get the way to do the remaining in the list... Please do
>> help me out as I need to finish up with this soon so that I could
>> really work with my actual Problem .....
>>
>>
>>
>>
>> I am sending the link below...Please a humble request to you
>> Michael...Please help me out in this........
>>
>
> I would suggest getting a good book if you are starting out. There are a
> lot of issues when starting to learn a programming language and it would
> get tedious to ask and have to wait for an answer here. This is a great
> forum to ask people very specific question.
>
> So, did you get log_plot.pro to run?
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)

finally i got it sir thanks a lot
Re: % error opening file [message #91206 is a reply to message #91198] Wed, 17 June 2015 06:42 Go to previous message
kpaapu123 is currently offline  kpaapu123
Messages: 2
Registered: June 2015
Junior Member
On Tuesday, June 16, 2015 at 6:22:29 PM UTC+5, Shaktivel Pillai wrote:
> On Monday, June 15, 2015 at 9:38:38 PM UTC+5, Mike Galloy wrote:
>> On 6/15/15 8:26 AM, Shaktivel Pillai wrote:
>>> On Monday, June 15, 2015 at 6:51:47 PM UTC+5, Michael Galloy wrote:
>>>> On 6/15/15 6:57 AM, Shaktivel Pillai wrote:
>>>> > i am using idl and i am totally new,but want to learn IDL as soon
>>>> > as possible. I have written this script file on gedit in IDL.
>>>> >
>>>> > n=10 x=1.0+findgen(n) y=ALOG10(x) plot,x,y
>>>> >
>>>> >
>>>> > and saved this file as log_plot.pro
>>>> >
>>>> > but when i try to execute the script file from idl command promt
>>>> > by writting @log_plot
>>>> >
>>>> > i am getting this message error opening file
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > please some one help me out in this
>>>> >
>>>>
>>>> Works for me.
>>>>
>>>> Are you in the same directory as log_plot.pro? Are you using the
>>>> Workbench or the command line?
>>>>
>>>> Mike -- Michael Galloy www.michaelgalloy.com Modern IDL: A Guide to
>>>> IDL Programming (http://modernidl.idldev.com)
>>>
>>> hiee Michael.... thanks a lot to the lord that i found a guide like
>>> you whom i was searching for..... I am actually a Summer Research
>>> Student AT Indian Institute of Technology BHU....... and i am
>>> actually working on detection of sunspots from the continnum images
>>> obtained from SDO for now... I have actually noted down the algorithm
>>> for it but from past ten days im figuring out on how to procede in
>>> IDL syntax; as in how to write the programme in IDL... Can you please
>>> guide me out a bit,as in just a start up on how to get start with and
>>> then I would get the way to do the remaining in the list... Please do
>>> help me out as I need to finish up with this soon so that I could
>>> really work with my actual Problem .....
>>>
>>>
>>>
>>>
>>> I am sending the link below...Please a humble request to you
>>> Michael...Please help me out in this........
>>>
>>
>> I would suggest getting a good book if you are starting out. There are a
>> lot of issues when starting to learn a programming language and it would
>> get tedious to ask and have to wait for an answer here. This is a great
>> forum to ask people very specific question.
>>
>> So, did you get log_plot.pro to run?
>>
>> Mike
>> --
>> Michael Galloy
>> www.michaelgalloy.com
>> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>
> finally i got it sir thanks a lot

sir
i have opened a jpeg image in idl using
tv,image,true=1

now i want to crop only the central region of the sun where sunspots are present.... for these i used the cursor command and placed it in low left and right---got the co-ordinates----and then placed the cursor at right top--got the x and y......then i used image=image[low x:topx,lowy:topy]

but im not getting the image croped....instead getting
% subscript range values of the form low:high must be >=0,<size,with low<=high:image



please help me in this
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: help with cgDrawVectors
Next Topic: IDL_IDLBRIDGE across several computers

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

Current Time: Wed Oct 08 15:27:03 PDT 2025

Total time taken to generate the page: 0.00737 seconds