Changeset 4
- Timestamp:
- 06/30/09 10:49:35 (3 years ago)
- Location:
- trunk/TOOLS
- Files:
-
- 2 edited
-
hdf5_read_routines.pro (modified) (1 diff)
-
read_peaks.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TOOLS/hdf5_read_routines.pro
r3 r4 26 26 endelse 27 27 secondslash = strpos(lines[0], '/', 1) 28 firstgrid = strmid(lines[0], 0, secondslash+1) 29 lines = lines[where(strmatch(lines, firstgrid+'*'))] 28 ;firstgrid = strmid(lines[0], 0, secondslash+1) 29 lastgrid = strmid(lines[n_elements(lines)-1], 0, secondslash+1) 30 lines = lines[where(strmatch(lines, lastgrid+'*'))] 30 31 lines = strmid(lines, secondslash+1) 31 32 ec = strpos(lines, 'Dataset')-1 -
trunk/TOOLS/read_peaks.pro
r1 r4 14 14 ; read file 15 15 i = 0 16 nst = strarr(100) 16 maxlines = 100 17 nst = strarr(maxlines) 17 18 while (not EOF(unit)) DO BEGIN 18 19 line = '' 19 20 readf,unit,line 20 21 ; lines that contain a # are comment lines ! 21 if ( strpos(line,'#') eq -1) then BEGIN22 if ((strpos(line,'#') eq -1) and (strpos(line,'datavar') eq -1)) then BEGIN 22 23 nst(i) = strtrim(strcompress(line),2) 23 24 i = i + 1 25 if (i ge maxlines) then break 24 26 ENDIF ELSE PRINT, 'line',i,' is a comment line' 25 27 END
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)