code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/bash function trickResample(){ local rMaster=${1} local dorisStep=`pn2rs "${2}"` local rFile=`canonicalPath ${3}` local rFFormat=`pn2rs "${4}"` #User can change the resampleFolder if they like. if [ "${resampleFolder:-isEmpty}" == "isEmpty" ]; then local rFolder=${outputFolder}/resample/${rM...
Shell
#!/bin/bash function scrop_regular() { #preprocess the drs file pp ${dorisProcess} #rm -f ${outputFolder}/${dorisProcess}.drs #cat "${ADOREFOLDER}/drs/${dorisProcess}.drs" | while read line; do # newline=`eval echo -E ${line}` # echo $newline >> ${outputFolder}/${dorisProcess}.drs #done # remove und...
Shell
#!/bin/bash pp ${dorisProcess} doris ${outputFolder}/${dorisProcess}.drs if [ "${bistatic}" == "on" ]; then #openInIpython "${ADOREFOLDER}/lib/python/fun/subtrrefdem_bistatic.py" floatmult ${crd_out_dem} 0.5 mv ${crd_out_dem}.floatmult0.5 ${crd_out_dem} fi [ $? -eq 0 ] && echo "${dorisProcess}: SUCCESS"
Shell
#!/bin/bash dem2slant2h [ $? -eq 0 ] && echo "${dorisProcess}: SUCCESS"
Shell
#!/bin/bash pp ${dorisProcess} doris ${outputFolder}/${dorisProcess}.drs # We do not use the *.srp file but we need the srph2ph and # correct output in the result file. So we run it anyway. if [ "${bistatic}" == "on" ]; then openInIpython "${ADOREFOLDER}/lib/python/fun/subtrrefpha_bistatic.py" fi [ $? -eq 0 ] ...
Shell
#!/bin/bash pp ${dorisProcess} if [ -z ${fc_in_pos} ]; then #if the input file is not defined remove the line grep -v -i -w "fc_in_pos" ${outputFolder}/${dorisProcess}.drs > ${outputFolder}/${dorisProcess}.drs.new mv ${outputFolder}/${dorisProcess}.drs.new ${outputFolder}/${dorisProcess}.drs fi doris ${outputF...
Shell
#!/bin/bash pp ${dorisProcess} if [ -z ${pf_in_file} ]; then #if the input file is not defined remove the line grep -v -i -w "pf_in_file" ${outputFolder}/${dorisProcess}.drs > ${outputFolder}/${dorisProcess}.drs.new mv ${outputFolder}/${dorisProcess}.drs.new ${outputFolder}/${dorisProcess}.drs fi if [ -z ${pf_...
Shell
#!/bin/bash pp ${dorisProcess} if [ -z ${fe_in_pos} ]; then #if the input file is not defined remove the line grep -v -i -w "fe_in_pos" ${outputFolder}/${dorisProcess}.drs > ${outputFolder}/${dorisProcess}.drs.new mv ${outputFolder}/${dorisProcess}.drs.new ${outputFolder}/${dorisProcess}.drs fi doris ${outputF...
Shell
#!/bin/bash function coarsecorr_manual(){ #get width of m_crop ##check if reading ovs or crop if [ `readRes.sh $m_resfile process "oversample"` == "1" ]; then mwidth=`readRes.sh $m_resfile $(pn2rs m_ovs) "Number of pixels"` mcrop=`readRes.sh $m_resfile $(pn2rs m_ovs) "Data_output_file"` mfrmt=`readRe...
Shell
#!/bin/bash # # USAGE: # m_readfiles # # DESCRIPTION: # m_readfiles is a builtin ADORE process. # It runs the DORIS step with the same name. # # This is the first step if the ERS1/2 SLC images are processed. # The SLC leader, volume and (header of the) data file are read, and relevant parameters are written to the...
Shell
#!/bin/bash # # USAGE: # s_readfiles # # DESCRIPTION: # s_readfiles is a builtin ADORE process. # It runs the DORIS step with the same name. # # It is the same as step M_READFILES but then for the slave image. See M_READFILES (? m_readfiles) for more information on this step. # # In order to be compatible with off...
Shell
#!/bin/bash args=$# if [ ${args} -lt 3 ] then echo " USAGE: ${0} lat lon dist [dist2]" echo " " echo " lat: Decimal Degree Latitude of center coordinate" echo " lon: Decimal Degree Longitude of center coordinate" echo " dist: Distance in [km] to be converted to decimal degrees" echo " dist2: Optional parameter. ...
Shell
#!/bin/bash # USAGE: # rs2pn resultfileSection resultfile # # DESCRIPTION: # RS2PN is an external ADORE command. # It outputs the process name for the given DORIS result file section. # # INPUT: # resultfileSection: DORIS resultfile section to lookup. # Optional: # resultfile: Name of the resultfile to define...
Shell
#!/bin/bash if [ "${s_in_method}" == "ALOS" ]; then s_bandwidth=`readRes.sh ${s_resfile} readfiles "Total_range_band_width (MHz)"` if [ "${s_bandwidth}" == "14" ]; then if [ `readRes.sh $s_resfile process "oversample"` == "0" ]; then echo "Range oversampling master." sfrmt=`readRes.sh $s_resfile $(pn2rs s_cr...
Shell
#!/bin/bash # USAGE: # waitjob hostname.jobid # waitjob (hostname.jobid1 hostname.jobid2 ...) # # DESCRIPTION: # WAITJOB is an internal ADORE command. # It loops over the given jobs and returns upon their completion. # # This script is compatible with the Torque-PBS system. # # INPUT: # hostname.jobid: host...
Shell
#!/bin/bash # # USAGE: # archive create [path/to/folder] [archiveName] # # DESCRIPTION: # archive is an ADORE function. # It creates a tar archive for the given folder, as well as creating # checksums (md5sum) for each file. The md5sums are verified during # extraction. # # INPUT: # path/to/folder: Relative (or ...
Shell
#!/bin/bash # ADORE # Automatic Doris Environment # # USAGE: # deramp dorisStep # deramp dorisStep:filename [-o ORDER -e ESTIMATEFILE] # # DESCRIPTION: # DERAMP is an internal ADORE command. # It removes a first or second order plane from DORIS results using python, numpy, scipy. # # The deramp module is locat...
Shell
#!/bin/bash # # USAGE: # crops dorisProcesses # # DESCRIPTION: # crops is an ADORE function. # # INPUT: # # OUTPUT: # # EXAMPLES: # crops "m_readfiles;m_crop_m_ovs" ####################################################### function processCropSteps(){ # reload original settings settings load ${originalSettings...
Shell
#!/bin/bash # USAGE: # pn2rs processName # pnr2rs -f processName # # DESCRIPTION: # PN2RS is an internal ADORE function. # It outputs the resultfile section name or the # result file name for the given processName. # # INPUT: # -f: Flag for filename. If present corresponding filename # is returned. # processN...
Shell
#!/bin/bash dorisProcess2OutputFile_outputs=(_filename _resfile _format _numpixels _numlines); function dorisProcess2OutputFile(){ # Usage: # dorisProcess2OutputFile dorisStep [searchparameter] # ex: # call (filename resfile format numpixels numlines)=dorisProcess2OutputFile subttrefpha # call (filename resfile fo...
Shell
#!/bin/bash function visualize_fine(){ ${ADOREFOLDER}/lib/python/plot_fine.py ${i_resfile} } function visualize_coarsecorr(){ ${ADOREFOLDER}/lib/python/plot_coarsecorr.py ${i_resfile} } function visualize_map(){ ${ADOREFOLDER}/lib/python/matshowclick_geocode.py ${i_resfile} ${@} } ################# ## MAIN ##...
Shell
#!/bin/bash # USAGE: # saveas exportFormat [optionalParameters] processName # # DESCRIPTION: # SAVEAS is an internal ADORE command. # It prepares DORIS results so that they can be opened by other programs. # Currently ENVI and ArcGIS are supported. # # INPUT: # exportFormat: envi, arcgis, gdal, grd. # processN...
Shell
#!/bin/bash # ADORE # Automatic Doris Environment # # USAGE: # raster a|p|m dorisStep cpxfiddleOptions # raster a|p|m dorisStep:filename cpxfiddleOptions # # DESCRIPTION: # RASTER is an internal ADORE command. # It creates sunraster images of the DORIS products using # cpxfiddle. # # ADORE variable raster_fo...
Shell
#!/bin/bash # # USAGE: # giant step # # DESCRIPTION: # GIANT is an ADORE function which calls GIAnT package for # timeseries analysis. # # INPUT: # step: prepxml_SBAS, PrepIgramStack, ProcessStack, SBASInvert # OUTPUT: # # EXAMPLES: # ####################################################### function prepxml_SB...
Shell
#!/bin/bash # ADORE # Automatic Doris Environment # # USAGE: # view a|p|m dorisStep cpxviewOptions # view a|p|m dorisStep:filename cpxviewOptions # # DESCRIPTION: # VIEW is an internal ADORE command. # It displays the DORIS image files using python-pylab (cpxview). # # The input parameters are almost identical t...
Shell
#!/bin/bash if [ "${m_in_method}" == "ALOS" ]; then m_bandwidth=`readRes.sh ${m_resfile} readfiles "Total_range_band_width (MHz)"` if [ "${m_bandwidth}" == "14" ]; then if [ `readRes.sh $m_resfile process "oversample"` == "0" ]; then echo "Range oversampling master." mfrmt=`readRes.sh $m_resfile $(...
Shell
#!/bin/bash function gnuplot_baseline(){ # local parameterR # echo "Generating ${1}.ps" # parameterR=`minmax -I100/400 ${1}` # psxy -JX6.5i -R${parameterR} -Bg200a200:"Btemp [days]":/g200a200:"Bperp [m]":WSne:."Baselines": -K > ${1}.ps # cat ${1} | while read x y label # do # psxy -J -R -Sc0.125i -G0/0/0 -...
Shell
#!/bin/bash # # USAGE: # s dorisProcess # s variableName # # DESCRIPTION: # s is a builtin ADORE command. # It can show the input file for the given DORIS processing step. It can # also be used to display ADORE variables. # # INPUT: # dorisProcess: Name of the DORIS processing step to run. List of available # ...
Shell
#!/bin/bash # USAGE: # scenes # scenes exclude orbitFolder1 orbitFolder2 ... # scenes include orbitFolder1 orbitFolder2 ... # scenes init /path/to/data [/path/to/output/data/folder/] # scenes add /path/to/data # scenes rescan # # DESCRIPTION: # SCENES is an internal ADORE command. # It has the following usag...
Shell
#!/bin/bash # # USAGE: # tutorial start [tutorialName] # tutorial list # tutorial ?|h [tutorialName] # # DESCRIPTION: # TUTORIAL is an ADORE function which starts a pre-recorded tutorial. # # INPUT: # start: Start a given tutorial # list: List available tutorials. # OUTPUT: # interactive. # EXAMPLES: # ##...
Shell
#!/bin/bash # # USAGE: # p dorisProcess # p adoreScript.adr # # DESCRIPTION: # p is a builtin ADORE command. # It runs the given DORIS processing step or the ADORE script. # # INPUT: # dorisProcess: Name of the DORIS processing step to run. List of available # processes can be found at the end of this help messa...
Shell
#!/usr/bin/env bash function runIpython(){ local cmd="${@}" mkdir -p ${tmpFolder} settings list &> ${tmpFolder}/settings.set echo "[_ipy_]" &>> ${tmpFolder}/settings.set s _ipy_ |sed 's/_ipy_//g' &>> ${tmpFolder}/settings.set #check ipython version local ipv parameters ipv=`ipython -V|cut -d. -f1-2` if [ "${ipv}" ==...
Shell
#!/bin/bash if [ "${m_in_method}" == "ALOS" ]; then m_bandwidth=`readRes.sh ${m_resfile} readfiles "Total_range_band_width (MHz)"` if [ "${m_bandwidth}" == "14" ]; then if [ `readRes.sh $m_resfile process "oversample"` == "0" ]; then echo "Range oversampling master." mfrmt=`readRes.sh $m_resfile $(...
Shell
#!/bin/bash # # USAGE: # archive create [path/to/folder] [archiveName] # # DESCRIPTION: # archive is an ADORE function. # It creates a tar archive for the given folder, as well as creating # checksums (md5sum) for each file. The md5sums are verified during # extraction. # # INPUT: # path/to/folder: Relative (or ...
Shell
#!/bin/bash # USAGE: # dem operation parameters # dem make [SRTM1/SRTM3] [extraBufferPercentage] [name] # dem load path/to/demfile.dem # dem unload # dem check # dem import path/to/demfile.dem "gdalOptions" # dem extent # dem expand path/to/big.dem [merged.bil] # dem view # # DESCRIPTION: # DEM is an inte...
Shell
#!/bin/bash # ADORE # Automatic Doris Environment # # USAGE: # deramp dorisStep # deramp dorisStep:filename [-o ORDER -e ESTIMATEFILE] # # DESCRIPTION: # DERAMP is an internal ADORE command. # It removes a first or second order plane from DORIS results using python, numpy, scipy. # # The deramp module is locat...
Shell
#!/bin/bash # USAGE: # settings option [argument] # settings apply variableName # settings apply [-rq] variableName1=variableValue1 [variableName2 variableName3=...] # settings check # settings fix [-q] # settings init [-q] # settings list # settings raw # settings save [fileName] # settings load [fileName] # settings ...
Shell
#!/bin/bash # # USAGE: # ? commandName # # DESCRIPTION: # ? is a builtin ADORE command. # It displays the help for given adore command. # # # INPUT: # commandName: ADORE command name to get help. A list of commands # can be found at the end of this help message. # # OUTPUT: # Help message for the specified...
Shell
#!/bin/bash # # USAGE: # superMasterResample # # DESCRIPTION: # superMasterResample is an ADORE function. # # INPUT: # # OUTPUT: # # EXAMPLES: # superMasterResample function processResampleSteps(){ # reload original settings settings load ${originalSettingsFile} master=${resampleMaster} local scene=$...
Shell
#!/bin/bash # ADORE # Automatic Doris Environment # # USAGE: # raster a|p|m dorisStep cpxfiddleOptions # raster a|p|m dorisStep:filename cpxfiddleOptions # # DESCRIPTION: # RASTER is an internal ADORE command. # It creates sunraster images of the DORIS products using # cpxfiddle. # # ADORE variable raster_fo...
Shell
#!/bin/bash function gnuplot_baseline(){ # local parameterR # echo "Generating ${1}.ps" # parameterR=`minmax -I100/400 ${1}` # psxy -JX6.5i -R${parameterR} -Bg200a200:"Btemp [days]":/g200a200:"Bperp [m]":WSne:."Baselines": -K > ${1}.ps # cat ${1} | while read x y label # do # psxy -J -R -Sc0.125i -G0/0/0 -...
Shell
#!/bin/bash # # USAGE: # report [i12sFolder] "dorisSteps" # Example: # report "interfero;coherence" function create(){ generateRandomString curSetFile=${randomString} settings save ${curSetFile} local rFolder iFolder rSteps if [ $# -eq 2 ]; then rFolder="./report" iFolder=${1} rSteps=${2} elif [ $# -eq 1 ];...
Shell
#!/bin/bash # USAGE: # saveas exportFormat [optionalParameters] processName # # DESCRIPTION: # SAVEAS is an internal ADORE command. # It prepares DORIS results so that they can be opened by other programs. # Currently ENVI and ArcGIS are supported. # # INPUT: # exportFormat: envi, arcgis, gdal, grd. # processN...
Shell
#!/bin/bash # USAGE: # undo processName [fileName] # undo processName # undo only processName # # DESCRIPTION: # UNDO is an internal ADORE command. It removes the # given processName from the result files. # # INPUT: # only: if specified undo removes only a single step and keep # the information for the fol...
Shell
#!/bin/bash # # USAGE: # tutorial start [tutorialName] # tutorial list # tutorial ?|h [tutorialName] # # DESCRIPTION: # TUTORIAL is an ADORE function which starts a pre-recorded tutorial. # # INPUT: # start: Start a given tutorial # list: List available tutorials. # OUTPUT: # interactive. # EXAMPLES: # ##...
Shell
#!/bin/bash # # USAGE: # p dorisProcess # p adoreScript.adr # # DESCRIPTION: # p is a builtin ADORE command. # It runs the given DORIS processing step or the ADORE script. # # INPUT: # dorisProcess: Name of the DORIS processing step to run. List of available # processes can be found at the end of this help messa...
Shell
#!/bin/bash # USAGE: # s_crop2resample # # DESCRIPTION: # S_CROP2RESAMPLE is an internal ADORE command. # It is used in creating interferograms coregistered to a different scene, # as needed in Small Baselines (SBAS) interferometry. # # s_crop2resample copies the result of m_ovs or the m_crop as s_resample # an...
Shell
#!/bin/bash # USAGE: # . initialize # # DESCRIPTION: # INITIALIZE is an internal ADORE command. # It is used to load and check user settings. Regular users will probably not # need to use it. For saving and loading user settings see "? settings" # # INPUT: # No input parameters are required. # # OUTPUT: # Outpu...
Shell
#!/bin/bash # USAGE: # waitjob hostname.jobid # waitjob (hostname.jobid1 hostname.jobid2 ...) # # DESCRIPTION: # WAITJOB is an internal ADORE command. # It loops over the given jobs and returns upon their completion. # # This script is compatible with the Torque-PBS system. # # INPUT: # hostname.jobid: host...
Shell
#!/bin/bash dorisProcess2OutputFile_outputs=(_filename _resfile _format _numpixels _numlines); function dorisProcess2OutputFile(){ # Usage: # dorisProcess2OutputFile dorisStep [searchparameter] # ex: # call (filename resfile format numpixels numlines)=dorisProcess2OutputFile subttrefpha # call (filename resfile fo...
Shell
#!/bin/bash # USAGE: # scenes # scenes exclude orbitFolder1 orbitFolder2 ... # scenes include orbitFolder1 orbitFolder2 ... # scenes init /path/to/data [/path/to/output/data/folder/] # scenes add /path/to/data # scenes rescan # # DESCRIPTION: # SCENES is an internal ADORE command. # It has the following usag...
Shell
#!/bin/bash # ADORE # Automatic Doris Environment # # USAGE: # view a|p|m dorisStep cpxviewOptions # view a|p|m dorisStep:filename cpxviewOptions # # DESCRIPTION: # VIEW is an internal ADORE command. # It displays the DORIS image files using python-pylab (cpxview). # # The input parameters are almost identical t...
Shell
#!/bin/bash # USAGE: # cpDorisFiles sourceFolder destinationFolder # # DESCRIPTION: # This script modifies Doris Result Files (*.res) and Doris Input Files # (*.drs) by changing locations of the output files to their current locations. # It is a mere string replacement utility. It does not check for errors. # Ea...
Shell
#!/bin/bash # # USAGE: # s dorisProcess # s variableName # # DESCRIPTION: # s is a builtin ADORE command. # It can show the input file for the given DORIS processing step. It can # also be used to display ADORE variables. # # INPUT: # dorisProcess: Name of the DORIS processing step to run. List of available # ...
Shell
#!/bin/bash if [ "${s_in_method}" == "ALOS" ]; then s_bandwidth=`readRes.sh ${s_resfile} readfiles "Total_range_band_width (MHz)"` if [ "${s_bandwidth}" == "14" ]; then if [ `readRes.sh $s_resfile process "oversample"` == "0" ]; then echo "Range oversampling master." sfrmt=`readRes.sh $s_resfile $(pn2rs s_cr...
Shell
#!/bin/bash # USAGE: # exclude # exclude orbitFolder1 orbitFolder2 ... # # DESCRIPTION: # EXCLUDE is an internal ADORE command. # It shows and creates the list of excluded orbits. # # INPUT: # exclude: with no input parameters, currently excluded files are shown. # # exclude orbitFolder1 orbitFolder2 ...: # ...
Shell
#!/bin/bash # # USAGE: # crops dorisProcesses # # DESCRIPTION: # crops is an ADORE function. # # INPUT: # # OUTPUT: # # EXAMPLES: # crops "m_readfiles;m_crop_m_ovs" ####################################################### function processCropSteps(){ # reload original settings settings load ${originalSettings...
Shell
#!/bin/bash # # USAGE: # quejob adore_command [outputFolder] -- [qsub options] # # DESCRIPTION: # quejob is an internal ADORE command. # It runs the given adore command in the Torque-PBS system. # Quejob uses the Torque-PBS system to distribute jobs to other computers. # # INPUT: # adore_command: commands to...
Shell
#!/bin/bash # USAGE: # addrefpha2crop # # DESCRIPTION: # ADDREFPHA2CROP is an internal ADORE command. # It is used in creating interferograms coregistered to a different scene, # as needed in Small Baselines (SBAS) interferometry. The command adds the # reference phase dumped by subtrrefpha (srp_dumprefpha=on) ...
Shell
#!/bin/bash function previousMasterSteps(){ local steps="" for p in m_readfiles m_porbits m_crop m_simamp m_timing m_ovs do check -p ${p} ${1} &>> /dev/null [ $? -eq 1 ] && steps="${steps};${p}" if [ ${p} == "m_crop" ]; then local outputFile=`readRes.sh ${1} $(pn2rs m_crop) "Data_output_file"` ...
Shell
#!/bin/bash function visualize_fine(){ ${ADOREFOLDER}/lib/python/plot_fine.py ${i_resfile} } function visualize_coarsecorr(){ ${ADOREFOLDER}/lib/python/plot_coarsecorr.py ${i_resfile} } function visualize_map(){ ${ADOREFOLDER}/lib/python/matshowclick_geocode.py ${i_resfile} ${@} } ################# ## MAIN ##...
Shell
#!/bin/bash # USAGE: # mvDorisFiles sourceFolder destinationFolder # mvDorisFiles -s "/exact/path/to/source/Folder" destinationFolder # # DESCRIPTION: # This script modifies Doris Result Files (*.res) and Doris Input Files # (*.drs) by changing locations of the output files to their current locations. # It is a ...
Shell
#!/bin/bash # USAGE: # pn2rs processName # pnr2rs -f processName # # DESCRIPTION: # PN2RS is an internal ADORE function. # It outputs the resultfile section name or the # result file name for the given processName. # # INPUT: # -f: Flag for filename. If present corresponding filename # is returned. # processN...
Shell
#!/bin/bash # USAGE: # dem2slant2h # # DESCRIPTION: # DEM2SLANT2H is an internal ADORE command. # It creates DORIS slant2h output from comprefdem. # # INPUT: # There are no required input parameters for this command. # # OUTPUT: # Adds slant2h step to ${i_resfile}. # # # # Author: Mahmut Arikan # # TUDelft ...
Shell
#!/usr/bin/env bash function runIpython(){ local cmd="${@}" mkdir -p ${tmpFolder} settings list &> ${tmpFolder}/settings.set echo "[_ipy_]" &>> ${tmpFolder}/settings.set s _ipy_ |sed 's/_ipy_//g' &>> ${tmpFolder}/settings.set #check ipython version local ipv parameters ipv=`ipython -V|cut -d. -f1-2` if [ "${ipv}" ==...
Shell
#!/bin/bash # USAGE: # check # check setup # check resultFile # check -p processName [filename] # check -j jobid # check productSize # # DESCRIPTION: # CHECK is an internal ADORE command. # It shows the process control list from the result files. # # Using the -p option it can be used to check whether a giv...
Shell
#!/bin/bash # # USAGE: # i12s dorisProcesses # # DESCRIPTION: # i12s is an ADORE function. # # INPUT: # # OUTPUT: # # EXAMPLES: # i12s "coarseorb;coarsecorr" ####################################################### function processInterferoSteps(){ local scenes=${1} # load original settings in case some sett...
Shell
#!/bin/bash # # USAGE: # giant step # # DESCRIPTION: # GIANT is an ADORE function which calls GIAnT package for # timeseries analysis. # # INPUT: # step: prepxml_SBAS, PrepIgramStack, ProcessStack, SBASInvert # OUTPUT: # # EXAMPLES: # ####################################################### function prepxml_SB...
Shell
#!/bin/bash #Source other function files source ${ADORESCR}/fun/resfile.fun source ${ADORESCR}/fun/plotting.fun ###### SOME FUNCTIONS function ? { h "$@" } function addrefpha2s_crop(){ . ${ADORESCR}/fun/addrefpha2s_crop "${@}" } function archive(){ . ${ADORESCR}/fun/archive ${@} } function ask() # See...
Shell
#!/bin/bash # # USAGE: # superMasterResample # # DESCRIPTION: # superMasterResample is an ADORE function. # # INPUT: # # OUTPUT: # # EXAMPLES: # superMasterResample function processResampleSteps(){ # reload original settings settings load ${originalSettingsFile} master=${resampleMaster} local scene=$...
Shell
#!/bin/bash # USAGE: # settings option [argument] # settings apply variableName # settings apply [-rq] variableName1=variableValue1 [variableName2 variableName3=...] # settings check # settings fix [-q] # settings init [-q] # settings list # settings raw # settings save [fileName] # settings load [fileName] # settings ...
Shell
#!/bin/bash # # USAGE: # i12s dorisProcesses # # DESCRIPTION: # i12s is an ADORE function. # # INPUT: # # OUTPUT: # # EXAMPLES: # i12s "coarseorb;coarsecorr" ####################################################### function processInterferoSteps(){ local scenes=${1} # load original settings in case some sett...
Shell
#!/bin/bash # USAGE: # dem2slant2h # # DESCRIPTION: # DEM2SLANT2H is an internal ADORE command. # It creates DORIS slant2h output from comprefdem. # # INPUT: # There are no required input parameters for this command. # # OUTPUT: # Adds slant2h step to ${i_resfile}. # # # # Author: Mahmut Arikan # # TUDelft ...
Shell
#!/bin/bash # USAGE: # check # check setup # check resultFile # check -p processName [filename] # check -j jobid # check productSize # # DESCRIPTION: # CHECK is an internal ADORE command. # It shows the process control list from the result files. # # Using the -p option it can be used to check whether a giv...
Shell
#!/bin/bash # # USAGE: # quejob adore_command [outputFolder] -- [qsub options] # # DESCRIPTION: # quejob is an internal ADORE command. # It runs the given adore command in the Torque-PBS system. # Quejob uses the Torque-PBS system to distribute jobs to other computers. # # INPUT: # adore_command: commands to...
Shell
#!/bin/bash # USAGE: # addrefpha2crop # # DESCRIPTION: # ADDREFPHA2CROP is an internal ADORE command. # It is used in creating interferograms coregistered to a different scene, # as needed in Small Baselines (SBAS) interferometry. The command adds the # reference phase dumped by subtrrefpha (srp_dumprefpha=on) ...
Shell
#!/bin/bash # USAGE: # s_crop2resample # # DESCRIPTION: # S_CROP2RESAMPLE is an internal ADORE command. # It is used in creating interferograms coregistered to a different scene, # as needed in Small Baselines (SBAS) interferometry. # # s_crop2resample copies the result of m_ovs or the m_crop as s_resample # an...
Shell
#!/bin/bash # USAGE: # dem operation parameters # dem make [SRTM1/SRTM3] [extraBufferPercentage] [name] # dem load path/to/demfile.dem # dem unload # dem check # dem import path/to/demfile.dem "gdalOptions" # dem extent # dem expand path/to/big.dem [merged.bil] # dem view # # DESCRIPTION: # DEM is an inte...
Shell
#!/bin/bash # USAGE: # cpDorisFiles sourceFolder destinationFolder # # DESCRIPTION: # This script modifies Doris Result Files (*.res) and Doris Input Files # (*.drs) by changing locations of the output files to their current locations. # It is a mere string replacement utility. It does not check for errors. # Ea...
Shell
#!/bin/bash # USAGE: # . initialize # # DESCRIPTION: # INITIALIZE is an internal ADORE command. # It is used to load and check user settings. Regular users will probably not # need to use it. For saving and loading user settings see "? settings" # # INPUT: # No input parameters are required. # # OUTPUT: # Outpu...
Shell
#!/bin/bash # USAGE: # mvDorisFiles sourceFolder destinationFolder # mvDorisFiles -s "/exact/path/to/source/Folder" destinationFolder # # DESCRIPTION: # This script modifies Doris Result Files (*.res) and Doris Input Files # (*.drs) by changing locations of the output files to their current locations. # It is a ...
Shell
#!/bin/bash # # USAGE: # ? commandName # # DESCRIPTION: # ? is a builtin ADORE command. # It displays the help for given adore command. # # # INPUT: # commandName: ADORE command name to get help. A list of commands # can be found at the end of this help message. # # OUTPUT: # Help message for the specified...
Shell
#!/bin/bash # USAGE: # undo processName [fileName] # undo processName # undo only processName # # DESCRIPTION: # UNDO is an internal ADORE command. It removes the # given processName from the result files. # # INPUT: # only: if specified undo removes only a single step and keep # the information for the fol...
Shell
#!/bin/bash # # USAGE: # report [i12sFolder] "dorisSteps" # Example: # report "interfero;coherence" function create(){ generateRandomString curSetFile=${randomString} settings save ${curSetFile} local rFolder iFolder rSteps if [ $# -eq 2 ]; then rFolder="./report" iFolder=${1} rSteps=${2} elif [ $# -eq 1 ];...
Shell
#!/bin/bash function previousMasterSteps(){ local steps="" for p in m_readfiles m_porbits m_crop m_simamp m_timing m_ovs do check -p ${p} ${1} &>> /dev/null [ $? -eq 1 ] && steps="${steps};${p}" if [ ${p} == "m_crop" ]; then local outputFile=`readRes.sh ${1} $(pn2rs m_crop) "Data_output_file"` ...
Shell
#!/bin/bash #Source other function files source ${ADORESCR}/fun/resfile.fun source ${ADORESCR}/fun/plotting.fun ###### SOME FUNCTIONS function ? { h "$@" } function addrefpha2s_crop(){ . ${ADORESCR}/fun/addrefpha2s_crop "${@}" } function archive(){ . ${ADORESCR}/fun/archive ${@} } function ask() # See...
Shell
#!/bin/bash # USAGE: # exclude # exclude orbitFolder1 orbitFolder2 ... # # DESCRIPTION: # EXCLUDE is an internal ADORE command. # It shows and creates the list of excluded orbits. # # INPUT: # exclude: with no input parameters, currently excluded files are shown. # # exclude orbitFolder1 orbitFolder2 ...: # ...
Shell
#!/bin/bash # USAGE: # copyRes.sh fromResultFile fromDorisStep [toResultFile toDorisStep] # # INPUT: # fromResultFile: is the input DORIS result file (*.res). fromDorisStep will be # read from this file. # fromDorisStep: is the processing step to copy. # # OPTIONAL INPUT: # toResultFile: is the output DORIS ...
Shell
#!/bin/bash nargs=$# if [ $nargs -ne 2 ] then echo " " echo " findorbits.sh - Part of ADORE package" echo " Batuhan Osmanoglu - CSTARS 2005" echo " Usage: " echo " findorbits.sh ResFile OrbitRoot" echo " ResFile - Doris result file after successful M_READ" echo " OrbitRoot - Root directory ...
Shell
#!/bin/bash # USAGE: # construct_aster_dem.sh -n projectName -u username -p password -c category -f Localfolder -s stitchMethod W E S N # # DESCRIPTION: # -n projectName: Specify a projectname for this DEM. The DEM will be generated inside a # folder with this name. (default="dem") # -u username: Your username for ...
Shell
#!/bin/bash ############################################### ############################################### # prepPSinput.sh # Part of Adore Project # Batuhan Osmanoglu, Sep 2007 CSTARS, Miami # # # This function reads interferogram folders # and generates the file list required for PS. # # # Requires: # - Location of...
Shell
#!/bin/bash ############################################### nargs=$# if [ ${nargs} -lt 3 ] then cat<<_EOF getI12sArea.sh Part of Adore Project Batuhan Osmanoglu, Aug 2007 CSTARS, Miami This function reads the master.res file and dumps first-last line, first last pixel. Calculation is simply done by: LINELO = Fir...
Shell
#!/bin/bash nargs=$# if [ ${nargs} -lt 4 ] then cat<<_EOF USAGE: modifyRes.sh resultFile dorisStep parameter newValue INPUT: resultFile: is the DORIS result file (*.res) dorisStep: is the processing step to look for the parameter. parameter: field to be read in the result file. The column character should no...
Shell
#!/bin/bash ## ## construct_dem.sh ## v1.2, 18-12-2009 ## v1.1, 17-12-2008 ## v1.0, 22-08-2006 ## ## Made by Freek van Leijen and Zbigniew Perski ## Delft Institute of Earth Observation and Space Systems ## Delft University of Technology ## ## Started on Wed May 17 10:00:00 2006 Freek van Leijen ## Previous update M...
Shell
#!/bin/bash function getLastProcess { resfile=${1} #echo ${resfile} startLine=`grep -n "Start_process_control" ${resfile} | cut -d: -f1` #echo ${startLine} endLine=`grep -n "End_process_control" ${resfile} | cut -d: -f1` #echo ${endLine} if [ "${endline}" != "${startLine}" ]; then length=`echo ${endLine} - ...
Shell
#!/bin/bash ############################################### ############################################### # dumpbaseline.sh # Part of Adore Project # Batuhan Osmanoglu, Aug 2007 CSTARS, Miami # # # This function reads the *.par files and # renames the data folder with Orbit Numbers. # # Requires: (Run in data folder...
Shell
#!/bin/bash nargs=$# if [ ${nargs} -lt 2 ] then cat<<_EOF USAGE: readDrs.sh drsFile parameter INPUT: drsFile: is the DORIS input file (*.drs) parameter: field to be read in the file. OUTPUT: parameter value LIMITATIONS: If the value of the parameter has ":" character the returned field might be wrong. EXAM...
Shell
#!/bin/sh export PATH = $PATH:/usr/lib/doris exec python /usr/share/adore-doris/gui/cpxview
Shell
#!/bin/sh export PATH = $PATH:/usr/lib/doris exec python /usr/share/adore-doris/gui/cpxview
Shell
#!/bin/sh export PATH = $PATH:/usr/lib/doris exec python /usr/share/adore-doris/gui/agooey
Shell