Changeset 30 for trunk/TOOLS/AMRslice.pro
- Timestamp:
- 07/30/10 13:16:33 (22 months ago)
- File:
-
- 1 edited
-
trunk/TOOLS/AMRslice.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/TOOLS/AMRslice.pro
r27 r30 696 696 if STOPIT then begin 697 697 stopit = 0 698 break698 return 699 699 endif 700 700 … … 970 970 endfor 971 971 end else begin 972 while ofname ne file_namedo begin972 while ofname ne strmid(file_name, 0, strpos(file_name,'.',/reverse_search)) do begin 973 973 select_current_grids 974 974 check_cancel, stopit=stopit … … 985 985 if last_was eq 5 then j_event, 'PROJECTHII' 986 986 if verbose then print, 'memory use in Gb', memory()/1024./1e6 987 ofname = file_name 987 988 print, 'ofname:', $ 989 ofname 990 print, strmid(file_name, 0, strpos(file_name,'.',/reverse_search)) 991 ofname = strmid(file_name, 0, strpos(file_name,'.',/reverse_search)) 992 993 988 994 for i=0,astep-1 do j_event, 'NEXT TIME STEP' 989 wait, 1995 wait, .2 990 996 endwhile 991 997 endelse … … 1079 1085 if parti.myturn eq 1 then begin 1080 1086 pdata = render_particle_data() 1081 ind = where(pdata ne min(pdata)) > 0 1082 data[ind] = max(data) 1087 ; data[ind] = max(data) 1088 ; data[ind] = pdata[ind] 1083 1089 last_was = 2 1084 1090 end 1085 endelse 1091 1086 1092 if (size(data))[0] eq 2 then begin 1087 1093 construct_image, data 1094 if N_elements(pdata) eq N_elements((*image_stack[image_index].image_d)) then begin 1095 ; combine particles with projection 1096 imi = min(pdata[where(pdata gt min(pdata))], max=ima) 1097 dmi = min((*image_stack[image_index].image_d), max=dma) 1098 ; dma = sqrt(dmi*dma) ; stop particle colors in the geometric mean of min and max of grid data 1099 im = (pdata-imi)/(ima-imi)*(dma-dmi)+dmi 1100 ind = where(im gt dmi, count) > 0 1101 if count eq 0 then ind = lindgen(N_elements(im)) 1102 print, imi, ima, dmi, dma 1103 if parti.myturn eq 1 then (*image_stack[image_index].image_d)[ind] = im[ind] 1104 im = 0. 1105 endif 1088 1106 show_image 1107 1089 1108 endif 1090 1109 if (vel.myturn) then j_event, 'VELPlot' 1091 1110 fresh_image = 1 1111 1112 endelse 1092 1113 END 1093 1114 … … 1338 1359 help = ['PICK PEAK FILE', 'Select existing peak file or', $ 1339 1360 'specify a new file name to create your own list of peaks'] 1340 peak_file_name = dialog_pickfile(GROUP=TOP_BASE, FILTER = '*.peaks ', $1341 Path=data_dir , $1361 peak_file_name = dialog_pickfile(GROUP=TOP_BASE, FILTER = '*.peaks;*.dat', $ 1362 Path=data_dir+'../FOF', $ 1342 1363 TITLE = 'Choose peak file', $ 1343 1364 GET_PATH = peak_in_dir) … … 1845 1866 UVALUE='BASE2') 1846 1867 1847 BASE2 = WIDGET_BASE(parent, $ 1848 /COLUMN, MAP=1, $ ; SCR_XSIZE=350,Y_SCROLL_SIZE=wxysize+100, $ 1849 UVALUE='BASE2') 1850 1868 ; BASE2 = WIDGET_BASE(parent, /COLUMN, MAP=1, SCR_XSIZE=350,Y_SCROLL_SIZE=wxysize+100, UVALUE='BASE2') ; projector 1869 BASE2 = WIDGET_BASE(parent, /COLUMN, MAP=1, UVALUE='BASE2') 1870 1851 1871 ISO_BASE = WIDGET_BASE(parent, /COLUMN, MAP=0, UVALUE = 'VALUE_BASE') 1852 1872
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)