7.7.43. uhdaspy_demodir_cheatsheet.txtΒΆ

cd
cd ~/my_adcp_py3demos/adcp_pyproc/km1001c_uhdas
pwd
mkdir config
cd config

uhdas_proc_gen.py -s km
cat <<EOF >  km1001c_manual_proc.py
uhdas_dir = '/home/adcpproc/my_adcp_py3demos/uhdas_data/km1001c'
yearbase = 2010                  # usually year of first data logged
shipname = 'Kilo Moana' # for documentation
cruiseid = 'km1001c'
EOF


cat km_proc.py >>  km1001c_manual_proc.py


cd ..


adcptree.py  os38nb_fullproc --datatype uhdas --cruisename km1001c_manual



cd  os38nb_fullproc


cat << EOF > q_py.cnt
         #
         ####----- begin q_py.cnt------------
         ## all lines after the first "#" sign are ignored
          --yearbase    2010
          --cruisename  km1001c_manual   # used to identify configuration files
                                  #  *must* match prefix of files in config dir
                                  #
          --update_gbin   ## NOTE: You should generally remake gbins
                      ## - you are not sure
                      ## - if parameters for averaging changed
                      ## - various other reasons.
                      ##
                      ## ==> MAKE SURE you move the original gbin directory
                      ##     to another name first!!  Default directory
                      ##     to make gbins is in uhdas_dir
                      ##
          --configtype python  ## use km1001c_manual_proc.py for configuration
          --sonar       os38nb
          --dbname      aship
          --datatype    uhdas
          --ens_len     300
          --ping_headcorr    ## applies heading correction.
                             ## this ONLY works if there is a heading
                             ##     correction device specified in the
                             ##     config/km1001c_manual_proc.py file
                             ##
          --max_search_depth 3000  #if the topography says the ocean is deeper
                               # than this, do not autodetect the bottom.
                               # (reduces likelihood of shallow scattering
                               # layers being identified as the bottom)
EOF


quick_adcp.py --cntfile q_py.cnt --auto


catwt
catxy