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

Home » Public Forums » archive » Re: Tips for IDL-istic file transfer...? Please help me.
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: Tips for IDL-istic file transfer...? Please help me. [message #70908 is a reply to message #70828] Wed, 12 May 2010 04:23 Go to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Tue, 11 May 2010 00:05:53 -0700 (PDT), Harry Kim
<kim4ecohydro@gmail.com> wrote:

> Thank you very much for your suggestion. However I still got stuck.
>
> Everytime I tried this way, I got this error message.
>
> % Attempt to subscript SOURCE with IND is out of range.
> % Execution halted at: MOVEFILE_051110 5 D:\MODIS11\MOD11_Workspace
> \Default\movefile_051110.pro
> % $MAIN$


Mind the double "\\" in the stregex input. Also "200[7]" can just be
written "2007". The square brackets indicate a range (e.g. from 0 to
8). Since you one have one number, you can omit the range:


Pro Movefile_051110
source=file_search('D:\MODIS11\Data\MYD11A1.005\2007.??.??\' ,'*.*')
ind=where(stregex(source,'D:\\MODIS11\\Data\\MYD11A1.005\\20 07')
ne-1,n)
source=source[ind]
path='D:\MODIS11\Data\\MYD11A1.005\2007\'
file_mkdir,path
file_move,source,path+file_basename(source)
end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Possible to get name of current procedure from within procedure?
Next Topic: SST data

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

Current Time: Wed Oct 08 19:37:07 PDT 2025

Total time taken to generate the page: 0.14717 seconds