Changeset 3919 in Sophya for trunk


Ignore:
Timestamp:
Dec 2, 2010, 7:48:38 PM (15 years ago)
Author:
cmv
Message:

modif pour gestion satur et expo FFT shrink, reza+cmv 2/12/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/dspms.pic

    r3683 r3919  
    77set numf $2
    88
    9 set bdir /Raid/PittsNov09
     9set bdir /Raid/PittsDec10
    1010if ( $# > 2 ) then
    1111  set bdir $3
     
    1313
    1414delobjs *
    15 # openppf /Raid/PittsNov09/$dir/meanspec$numf.ppf
     15# openppf /Raid/PittsDec10/$dir/meanspec$numf.ppf
    1616set flnm $bdir/$dir/meanspec$numf.ppf
    1717echo '------ Opening file ' $flnm
     
    1919del myspec
    2020mv spectre  myspec
    21 # mv /home/meanspec$numf  myspec
    2221set nchan ${myspec.nrows}
    2322for i 0:$nchan
     
    2928zone 1
    3029
    31 set exfreq (n+2212)*250/4096+1250
     30# set exfreq (n+2212)*250/4096+1250
    3231# set exfreq (n*250/4096+1250)
     32##  Expression de la frequence pour FFT shrinke
     33set exfreq ((n+2049)*250/4096+1250)
    3334plot2d smV0 $exfreq 10*log10(val) val>1.e-6 'black nsta cpts notit'
    3435setaxelabels  ' Freq (MHz)' 'Spectra - dB' 'font=helvetica,bolditalic,16'
    3536 
    36 set cols ( black darkviolet blue navyblue red orange yellow green )
     37# set cols ( black darkviolet blue navyblue red orange yellow green )
     38set cols ( blue red green magenta black darkviolet navyblue orange yellow )
    3739
    3840for i 1:${myspec.nrows}
     
    8183endscript
    8284
     85defscript dexpo
     86  zone $znx $zny
     87  for i 0:$nchan
     88   disp hexpV$i "$cols[i]"
     89   n/plot hexpV$i.val%x val>0 ! "nsta same marker=fcircle,9 $cols[i]"
     90  end
     91endscript
     92
     93defscript dsatur
     94  zone $znx $zny
     95  for i 0:$nchan
     96    imag saturV$i "zoomx40"
     97  end
     98endscript
     99
     100defscript dsatur2
     101  zone $znx $zny
     102  for i 0:$nchan
     103    n/plot saturV$i.val%r+c r!=1||c!=1 ! "marker=fcircle,1 nsta $cols[i]"
     104    n/plot saturV$i.val%r+c (r!=1||c!=1)&&val>0.1 ! "marker=fcircle,9 nsta same $cols[i]"
     105  end
     106endscript
    83107
    84108set lines ( B1.V1 B1.V2 B1.V3 B1.V4 B2.V1 B2.V2 B2.V3 B2.V4 )
     
    95119newwin
    96120dh2
     121newwin
     122dexpo
     123newwin
     124dsatur
     125newwin
     126dsatur2
    97127
    98 echo '----> use dspec dhval and  dh2 scripts to check value histograms'
     128echo '----> use dspec dhval and  dh2 dexpo dsatur scripts to check value histograms'
    99129
    100130
Note: See TracChangeset for help on using the changeset viewer.