Last change
on this file since 162 was
162,
checked in by pinsard, 15 years ago
|
start to modify unformal header to idldoc 2. header syntax
|
File size:
845 bytes
|
Rev | Line | |
---|
[162] | 1 | ;+ |
---|
| 2 | ; |
---|
| 3 | ; get remote file |
---|
| 4 | ; |
---|
| 5 | ; @version |
---|
| 6 | ; $Id$ |
---|
| 7 | ; |
---|
| 8 | ;- |
---|
[2] | 9 | PRO get_file, file_name, ncdf_db |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | @common |
---|
| 13 | @com_eg |
---|
| 14 | |
---|
[64] | 15 | str = strsplit(ncdf_db, ':', /EXTRACT) |
---|
| 16 | machine = str[0] |
---|
| 17 | path_remote = str[1] |
---|
[2] | 18 | |
---|
| 19 | IF machine NE 'local' THEN BEGIN |
---|
| 20 | |
---|
| 21 | print, ' Data base = '+ncdf_db |
---|
| 22 | print, ' ' |
---|
| 23 | |
---|
| 24 | ; check if file is in default directory |
---|
| 25 | |
---|
[64] | 26 | local_dir = (strsplit(data_bases[0], ':', /EXTRACT))[1] |
---|
[2] | 27 | |
---|
| 28 | list = findfile(local_dir+file_name, count = nb_file) |
---|
| 29 | |
---|
| 30 | IF nb_file EQ 0 THEN BEGIN |
---|
| 31 | |
---|
| 32 | print, ' '+machine+'.get '+file_name+' '+path_remote+' '+local_dir |
---|
| 33 | spawn, hom_def+'remote/'+machine+'.get '+file_name+' '+path_remote+' '+local_dir, result |
---|
| 34 | print, result |
---|
| 35 | |
---|
| 36 | ENDIF ELSE print, ' File '+file_name+' already in ',local_dir & print, '' |
---|
| 37 | |
---|
| 38 | ncdf_db = data_bases[0] |
---|
| 39 | |
---|
| 40 | ENDIF |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.