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 #70828 is a reply to message #70821] Tue, 11 May 2010 00:05 Go to previous messageGo to previous message
Harry Kim is currently offline  Harry Kim
Messages: 16
Registered: April 2010
Junior Member
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$

Any other suggestions?


This is what I have done so far based on your suggestion. Thanks
again, in advance.
-----------------------------
Pro Movefile_051110

source=file_search('D:\MODIS11\Data\MYD11A1.005\2007.??.??\' ,'*.*')
ind=where(stregex(source,'D:\MODIS11\Data\MYD11A1.005\200[7] ') 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 15:16:10 PDT 2025

Total time taken to generate the page: 0.01868 seconds