code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
#
# Cuenta las concesiones activas en este momento...
if [ "" = "$1" ]
then
echo "ERROR: No has pasado el fichero de Leases de WDOC"
exit 2
fi
cuenta=$(cat $1 | wc -l )
n=$(( $cuenta - 1 ))
echo -n "$n"
| Shell |
#!/bin/bash
#
# Obtiene el numero maximo de leases para la red de
# gestion.
#
if [ "" = "$1" ]
then
echo "ERROR: Debes indicar la red"
exit 1
fi
# Obtener el rango
range=$( grep -h range /etc/dhcp/*conf | grep "$1" )
Val1=$(echo "$range" | perl -ne 'print "$1" if($_=~m/range\s+\d+\.\d+\.\d+\.(\d+)\s+/);' )
Va... | Shell |
#!/bin/bash
#
# Obtiene la LAN de Gestion
#
/sbin/ip a | grep br0 | grep inet | head -1 | perl -ne 'print "$1" if($_=~m/inet\s+(\d[^\/]+)\.1\//);'
| Shell |
#!/bin/bash
#
#
# Saber si esta configurada una targeta de red o no...
# Argumento: eth0 | eth1
#
# Devuelve:
# [OK] => Si esta configurado para la ethX que se argumenta
# [FAIL] => No esta configurado
#
# Para saber si esta configurado, cargamos la configuracion
# del servicio...
. /etc/default/isc-dhcp-serv... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el
# servicio de DHCP
#
# Devuelve:
# [DESCONFIGURADO] => No esta activo el servicio.
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Para saber si esta configurado, cargamos la configuracion
# del servic... | Shell |
#!/bin/bash
#
# Este script muestra las concesiones activas en este momento
# para la RED 192.168.128.0/23
#
# Argumentos:
# 1) Fichero del DHCP con las IPs fijadas (/etc/dhcp/dhcpd_WIFI_IPSFIJAS_MACs_Asignadas.conf)
# 2) Lista de IPs activas (/var/log/squid/WDOC_IPS_ACTIVE_NOW.db.txt)
# 3) Concesiones del hook (... | Shell |
#!/bin/bash
#
# Obtiene el numero maximo de leases para la red de
# gestion.
#
if [ "" = "$1" ]
then
echo "ERROR: Debes indicar la red"
exit 1
fi
# Obtener el rango
range=$( grep -h range /etc/dhcp/*conf | grep "$1" )
Val1=$(echo "$range" | perl -ne 'print "$1" if($_=~m/range\s+\d+\.\d+\.\d+\.(\d+)\s+/);' )
Va... | Shell |
#!/bin/bash
#
#
# Saber si esta configurada una targeta de red o no...
# Argumento: eth0 | eth1
#
# Devuelve:
# [OK] => Si esta configurado para la ethX que se argumenta
# [FAIL] => No esta configurado
#
# Para saber si esta configurado, cargamos la configuracion
# del servicio...
. /etc/default/isc-dhcp-serv... | Shell |
#!/bin/bash
#
# Este script muestra las concesiones activas en este momento
# para la RED 192.168.128.0/23
#
# Argumentos:
# 1) Fichero del DHCP con las IPs fijadas (/etc/dhcp/dhcpd_WIFI_IPSFIJAS_MACs_Asignadas.conf)
# 2) Lista de IPs activas (/var/log/squid/WDOC_IPS_ACTIVE_NOW.db.txt)
# 3) Concesiones del hook (... | Shell |
#!/bin/bash
#
# Cuenta las concesiones activas en este momento...
if [ "" = "$1" ]
then
echo "ERROR: No has pasado el fichero de Leases de WDOC"
exit 2
fi
cuenta=$(cat $1 | wc -l )
n=$(( $cuenta - 1 ))
echo -n "$n"
| Shell |
#!/bin/bash
#
# Este script actualiza alguna de las zonas directas...
#
# Argumentos...
# NOMBRE IP ZONA [delete|add] [host|alias]
#
if [ "" = "$5" ]
then
echo "ERROR: Numero de argumentos incorrecto"
echo " updateDNS-directa.sh <NOMBRE> <IP> <ZONA> [delete|add] [host|alias]"
exit 2
fi
# Para tempor... | Shell |
#!/bin/bash
#
# Este script lista los shares de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Copyright 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#
java -cp lib/Ab.jar Main bot=alice2 action=chat trace=false morph=false
| Shell |
#!/bin/sh
/usr/local/appengine-java-sdk/bin/appcfg.sh update web-app
| Shell |
#!/bin/sh
# To use this script install the Google App Engine SDK for Java in the directory
# /usr/local/appengine-java-sdk
/usr/local/appengine-java-sdk/bin/dev_appserver.sh --address=0.0.0.0 web-app
| Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs_resampled_parallel.adr inputFile resample_master
#
# DESCRIPTION:
# multiplePairs_resampled.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file. All interferograms are resampled according to the r... | Shell |
#!/bin/bash
#
# USAGE:
# p baselines.adr
#
# DESCRIPTION:
# baselines.adr is an ADORE script.
# It generates a single master stack baseline information using the ADORE settings.
#
# INPUT:
# There are no input parameters.
#
# OUTPUT:
# Creates ${projectFolder}/process/${runName}/baselines
# It runs the... | Shell |
#!/bin/bash
#
# USAGE:
# p preparePsiInput.adr
# p preparePsiInput.adr outputFileName i12sType
#
# DESCRIPTION:
# preparePsiInput.adr is an ADORE script.
# It prepares the psi-input file for the TU-DELFT PSI-Toolbox.
#
# INPUT:
# outputFileName: File name for the output. (Default: psi_input.txt)
# i1... | Shell |
#!/bin/bash
#
# USAGE:
# p singleMasterStack_Parallel.adr
#
# DESCRIPTION:
# singleMasterStack_Parallel.adr is an ADORE script.
# It generates a single master stack interferograms using the ADORE settings.
# It is very similar to the singleMasterStack.adr script. However, this script
# uses the Torque-PBS... | Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs.adr inputFile
#
# DESCRIPTION:
# multiplePairs.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file.
#
# INPUT:
# inputFile: A comma-separated-value file where each line indicates an
# interfe... | Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs_resampled.adr inputFile resample_master
#
# DESCRIPTION:
# multiplePairs_resampled.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file.
#
# The rs_dbow or rs_dbow_geo settings must be set befo... | Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs_Parallel.adr inputFile
#
# DESCRIPTION:
# multiplePairs_Parallel.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file.
# This script uses the Torque-PBS system to distribute jobs to other compute... | Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs.adr inputFile
#
# DESCRIPTION:
# multiplePairs.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file.
#
# INPUT:
# inputFile: A comma-separated-value file where each line indicates an
# interfe... | Shell |
#!/bin/bash
#
# USAGE:
# p singleMasterStack_Parallel.adr
#
# DESCRIPTION:
# singleMasterStack_Parallel.adr is an ADORE script.
# It generates a single master stack interferograms using the ADORE settings.
# It is very similar to the singleMasterStack.adr script. However, this script
# uses the Torque-PBS... | Shell |
#!/bin/bash
#
# USAGE:
# p preparePsiInput.adr
# p preparePsiInput.adr outputFileName i12sType
#
# DESCRIPTION:
# preparePsiInput.adr is an ADORE script.
# It prepares the psi-input file for the TU-DELFT PSI-Toolbox.
#
# INPUT:
# outputFileName: File name for the output. (Default: psi_input.txt)
# i1... | Shell |
#!/bin/bash
#
# USAGE:
# p baselines.adr
#
# DESCRIPTION:
# baselines.adr is an ADORE script.
# It generates a single master stack baseline information using the ADORE settings.
#
# INPUT:
# There are no input parameters.
#
# OUTPUT:
# Creates ${projectFolder}/process/${runName}/baselines
# It runs the... | Shell |
#!/bin/bash
#
# USAGE:
# p singleMasterStack.adr
#
# DESCRIPTION:
# singleMasterStack.adr is an ADORE script.
# It generates a single master stack interferogram using the ADORE settings.
#
# If resampling window is not given, it calculates a common area from all images
# and sets rs_dbow (resampling window... | Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs_Parallel.adr inputFile
#
# DESCRIPTION:
# multiplePairs_Parallel.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file.
# This script uses the Torque-PBS system to distribute jobs to other compute... | Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs_resampled_parallel.adr inputFile resample_master
#
# DESCRIPTION:
# multiplePairs_resampled.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file. All interferograms are resampled according to the r... | Shell |
#!/bin/bash
#
# USAGE:
# p multiplePairs_resampled.adr inputFile resample_master
#
# DESCRIPTION:
# multiplePairs_resampled.adr is an ADORE script.
# It generates several interferograms whose master and slave orbits are defined
# by the input file.
#
# The rs_dbow or rs_dbow_geo settings must be set befo... | Shell |
#!/bin/bash
#
# USAGE:
# p singleMasterStack.adr
#
# DESCRIPTION:
# singleMasterStack.adr is an ADORE script.
# It generates a single master stack interferogram using the ADORE settings.
#
# If resampling window is not given, it calculates a common area from all images
# and sets rs_dbow (resampling window... | Shell |
#!/bin/bash
#!/bin/bash
# USAGE:
# lsprocess
#
# DESCRIPTION:
# lsprocess is an internal/external ADORE command. It shows the
# list of doris steps to run. List is in column order (read down then right).
#
# INPUT:
# No input option.
#
# OUTPUT:
# List of doris steps as recognized by adore.
#
cat << _EOF
Availa... | Shell |
#!/bin/bash
# Modif. Batu 2006/11/17 02:03pm
# baseline.fast
#%// BK 27-Oct-2000
#%// $Revision: 3.5 $ $Date: 2003/04/14 06:35:15 $
######################################################################
#set -v on
#set -x on
PRG=`basename "$0"`
VER="v1.1, FMR software"
AUT="Bert Kampes, (c)2000 \n Batuhan Osmanoglu, ... | Shell |
#!/bin/bash
echo "This function is deprecated. Please use settings function"
<<_COMMENTOUT
#. "${ADOREFOLDER}/set/default.set" #use defaults to fill in the rest.
# Above line does not work because everything is already set.
#######################################
### ADORE-BASH Run-Time Settings ###
#############... | Shell |
#!/bin/bash
#Modified By
##Batuhan Osmanoglu
###CSTARS 2007
# DO not forget to generate a slave_list file, using something like:
# ls -F ../../data/ | grep "/" | tr -d "/" > slave_list
# And do not forget to remove the master from slave_list.
frame=FRAME_NAME
crop=CROP_NAME
raid=RAID_DRV
username=USERNAME
master=MAS... | Shell |
#!/bin/bash
function addrefpha2resample(){
bold "This function is deprecated."
echo "Please use the following command to get help: ? addrefpha2resample"
. ${ADORESCR}/fun/addrefpha2resample "${@}"
}
| Shell |
#!/bin/bash
# USAGE:
# addrefpha2resample
#
# DESCRIPTION:
# ADDREFPHA2RESAMPLE 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_dumpref... | Shell |
#!/bin/bash
function addrefpha2resample(){
bold "This function is deprecated."
echo "Please use the following command to get help: ? addrefpha2resample"
. ${ADORESCR}/fun/addrefpha2resample "${@}"
}
| Shell |
#!/bin/bash
# USAGE:
# addrefpha2resample
#
# DESCRIPTION:
# ADDREFPHA2RESAMPLE 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_dumpref... | Shell |
#!/bin/bash
#backup variables
singleStackMaster=${master}
#end backup
outputFolder=${baselinesFolder}
mkdir -p ${outputFolder}
logFile=${outputFolder}/baselines.log
#
for folder in ${dataFolder}/*
do
if [ -d "${folder}" ]; then #check if it is a folder
master=${folder##*/}
if [ -e ${excludesFile} ]; then #if e... | Shell |
#!/bin/bash
#backup variables
singleStackMaster=${master}
#end backup
outputFolder=${baselinesFolder}
mkdir -p ${outputFolder}
logFile=${outputFolder}/baselines.log
#
for folder in ${dataFolder}/*
do
if [ -d "${folder}" ]; then #check if it is a folder
master=${folder##*/}
if [ -e ${excludesFile} ]; then #if e... | Shell |
#!/bin/bash
# Usage:
# $0 FileNameRegExp CPXFIDDLEoptions
`ls $1 > temporary.file`
for file in `cat temporary.file`
do
len=${#file}
res_file=`echo ${file:0:$((${len}-3))}res`
num_of_pixels=`cat ${res_file} | grep "Number of pixels (multilooked):" | tail -n1 | cut -f 2 -d :| tr -d [:blank:]`
cmd="/RAID6/insar_lab/d... | Shell |
#!/bin/bash
###############################################
###############################################
# setinterfarea.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 ... | Shell |
#!/bin/bash
# Modif Batu 2006/11/17 02:03pm
# baseline.fast
#%// BK 27-Oct-2000
#%// $Revision: 3.5 $ $Date: 2003/04/14 06:35:15 $
######################################################################
#set -v on
#set -x on
PRG=`basename "$0"`
VER="v1.1, FMR software"
AUT="Bert Kampes, (c)2000"
echo "$PRG $VER, $AUT"... | Shell |
#!/bin/bash
###############################################
###############################################
# dumpbaseline.sh
# Part of Adore Project
# Batuhan Osmanoglu, Aug 2007 CSTARS, Miami
#
#
# This function reads the *.res files and dumps
# the perpendicular and temporal baselines as
# well as the doppler center... | Shell |
#!/bin/bash
# ADORE
# Automatic Doris Environment
#
# USAGE:
# adore adoreCommand
# adore -u user.set adoreCommand
# adore -u user.set -p dorisProcess
# adore -u user.set -p dorisProcess adoreCommand
# adore -v -p dorisProcess -d "adoreVariable1=Value1;adoreVariable2=Value2"
# adore -i
# adore -g filename
# adore -... | Shell |
#!/bin/bash
function findGetorb(){
#this function is used to find the location of real getorb.
wgetorbPath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
which -a getorb | grep -v ${wgetorbPath} | head -n1
}
function helpMsg(){
cat << _EOF
wgetorb -- a program to interpolate the ODR files
usage: wgetorb [t... | Shell |
#!/bin/bash
nargs=$#
if [ ${nargs} -lt 3 ]
then
cat<<_EOF
USAGE: readRes.sh resultFile dorisStep parameter [notify]
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. If the parameter includes a column(... | 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
#Modified By
##Batuhan Osmanoglu
###CSTARS 2007
# DO not forget to generate a slave_list file, using something like:
# ls -F ../../data/ | grep "/" | tr -d "/" > slave_list
# And do not forget to remove the master from slave_list.
frame=FRAME_NAME
crop=CROP_NAME
raid=RAID_DRV
username=USERNAME
master=MAS... | 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
##
## 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
# Modif. Batu 2006/11/17 02:03pm
# baseline.fast
#%// BK 27-Oct-2000
#%// $Revision: 3.5 $ $Date: 2003/04/14 06:35:15 $
######################################################################
#set -v on
#set -x on
PRG=`basename "$0"`
VER="v1.1, FMR software"
AUT="Bert Kampes, (c)2000 \n Batuhan Osmanoglu, ... | 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
###############################################
###############################################
# 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
# 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
###############################################
###############################################
# dumpbaseline.sh
# Part of Adore Project
# Batuhan Osmanoglu, Aug 2007 CSTARS, Miami
#
#
# This function reads the *.res files and dumps
# the perpendicular and temporal baselines as
# well as the doppler center... | 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/bash
###############################################
###############################################
# setinterfarea.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 ... | 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
function findGetorb(){
#this function is used to find the location of real getorb.
wgetorbPath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
which -a getorb | grep -v ${wgetorbPath} | head -n1
}
function helpMsg(){
cat << _EOF
wgetorb -- a program to interpolate the ODR files
usage: wgetorb [t... | Shell |
#!/bin/bash
echo "This function is deprecated. Please use settings function"
<<_COMMENTOUT
#. "${ADOREFOLDER}/set/default.set" #use defaults to fill in the rest.
# Above line does not work because everything is already set.
#######################################
### ADORE-BASH Run-Time Settings ###
#############... | 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
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
nargs=$#
if [ ${nargs} -lt 3 ]
then
cat<<_EOF
USAGE: readRes.sh resultFile dorisStep parameter [notify]
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. If the parameter includes a column(... | 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
# ADORE
# Automatic Doris Environment
#
# USAGE:
# adore adoreCommand
# adore -u user.set adoreCommand
# adore -u user.set -p dorisProcess
# adore -u user.set -p dorisProcess adoreCommand
# adore -v -p dorisProcess -d "adoreVariable1=Value1;adoreVariable2=Value2"
# adore -i
# adore -g filename
# adore -... | Shell |
#!/bin/bash
# Usage:
# $0 FileNameRegExp CPXFIDDLEoptions
`ls $1 > temporary.file`
for file in `cat temporary.file`
do
len=${#file}
res_file=`echo ${file:0:$((${len}-3))}res`
num_of_pixels=`cat ${res_file} | grep "Number of pixels (multilooked):" | tail -n1 | cut -f 2 -d :| tr -d [:blank:]`
cmd="/RAID6/insar_lab/d... | Shell |
#!/bin/bash
#!/bin/bash
# USAGE:
# lsprocess
#
# DESCRIPTION:
# lsprocess is an internal/external ADORE command. It shows the
# list of doris steps to run. List is in column order (read down then right).
#
# INPUT:
# No input option.
#
# OUTPUT:
# List of doris steps as recognized by adore.
#
cat << _EOF
Availa... | 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
# Modif Batu 2006/11/17 02:03pm
# baseline.fast
#%// BK 27-Oct-2000
#%// $Revision: 3.5 $ $Date: 2003/04/14 06:35:15 $
######################################################################
#set -v on
#set -x on
PRG=`basename "$0"`
VER="v1.1, FMR software"
AUT="Bert Kampes, (c)2000"
echo "$PRG $VER, $AUT"... | 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
function mcrop_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 unde... | Shell |
#!/usr/bin/env bash
function runSnaphuWithOptions(){
local snaphuCmd uw_snaphu_dumponlyconf_orig
local opt=${@}
# run doris to generate the snaphu.conf
uw_snaphu_dumponlyconf_orig="${uw_snaphu_dumponlyconf}"
uw_snaphu_dumponlyconf=on
runSnaphu
uw_snaphu_dumponlyconf="${uw_snaphu_dumponlyconf_orig}"
#... | Shell |
#!/bin/bash
if [ ${mte_method} == "manual" ]; then
#get width of simamp
call "(fileName resFile format width numlines)=dorisProcess2OutputFile m_crop"
#width=`readRes.sh $m_resfile $(pn2rs m_simamp) "Number of pixels (multilooked)"`
${ADOREFOLDER}/lib/python/cpxoffset.py -w ${width} -f r4/${format} -q normal/... | 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
if [ ${mte_method} == "manual" ]; then
#get width of simamp
call "(fileName resFile format width numlines)=dorisProcess2OutputFile m_crop"
#width=`readRes.sh $m_resfile $(pn2rs m_simamp) "Number of pixels (multilooked)"`
${ADOREFOLDER}/lib/python/cpxoffset.py -w ${width} -f r4/${format} -q normal/... | Shell |
#!/bin/bash
#check if dinsar
if [ "${s2h_method}" == "trick" ]; then
#echo "I guess you are using external DEM for geocoding."
echo "I'll run the dem2slant2h (slant2hTrick)."
dem2slant2h
[ $? -eq 0 ] && echo "${dorisProcess}: SUCCESS"
else
echo "I guess you are trying differential interferometry."
echo... | 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 ${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
#
# 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
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
if [ "${m_orbdir:-isEmpty}" == "isEmpty" ]; then
bold "Orbit directory (m_orbdir) is not defined."
echo "Can not run precise orbits step. You may continue with HDR orbits."
echo "HDR orbits are already in the result file. No action necessary."
echo "${dorisProcess}: FAIL"
else
#preprocess the drs... | Shell |
#!/bin/bash
function mcrop_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 unde... | 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
dem2slant2h
[ $? -eq 0 ] && echo "${dorisProcess}: SUCCESS"
| Shell |
#!/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
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
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
function coarseorb_alos_check(){
if [ "${m_in_method}" == "ALOS" ]; then
m_bandwidth=`readRes.sh ${m_resfile} readfiles "Total_range_band_width (MHz)"`
s_bandwidth=`readRes.sh ${s_resfile} readfiles "Total_range_band_width (MHz)"`
if [ "${m_bandwidth}" != "${s_bandwidth}" ]; then
bold "F... | Shell |
#!/usr/bin/env bash
function runSnaphuWithOptions(){
local snaphuCmd uw_snaphu_dumponlyconf_orig
local opt=${@}
# run doris to generate the snaphu.conf
uw_snaphu_dumponlyconf_orig="${uw_snaphu_dumponlyconf}"
uw_snaphu_dumponlyconf=on
runSnaphu
uw_snaphu_dumponlyconf="${uw_snaphu_dumponlyconf_orig}"
#... | 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
#check if dinsar
if [ "${s2h_method}" == "trick" ]; then
#echo "I guess you are using external DEM for geocoding."
echo "I'll run the dem2slant2h (slant2hTrick)."
dem2slant2h
[ $? -eq 0 ] && echo "${dorisProcess}: SUCCESS"
else
echo "I guess you are trying differential interferometry."
echo... | Shell |
#!/bin/bash
if [ "${m_orbdir:-isEmpty}" == "isEmpty" ]; then
bold "Orbit directory (m_orbdir) is not defined."
echo "Can not run precise orbits step. You may continue with HDR orbits."
echo "HDR orbits are already in the result file. No action necessary."
echo "${dorisProcess}: FAIL"
else
#preprocess the drs... | Shell |
#!/bin/bash
function coarseorb_alos_check(){
if [ "${m_in_method}" == "ALOS" ]; then
m_bandwidth=`readRes.sh ${m_resfile} readfiles "Total_range_band_width (MHz)"`
s_bandwidth=`readRes.sh ${s_resfile} readfiles "Total_range_band_width (MHz)"`
if [ "${m_bandwidth}" != "${s_bandwidth}" ]; then
bold "F... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.