Ejemplo n.º 1
0
# Author: Sara Mirzaee
#######################

import os
import sys
import glob
from rsmas_logging import loglevel
import argparse
import subprocess
from _process_utilities import get_project_name, send_logger
from _process_utilities import remove_zero_size_or_length_error_files, concatenate_error_files 
from _process_utilities import move_error_files_except_first, move_stdout_files
from _processSteps import create_or_update_template


logger_exec_run  = send_logger()

##############################################################################
EXAMPLE = """example:
  execute_stacksentinel_run_files.py LombokSenAT156VV.template 
"""

def create_parser():
    """ Creates command line argument parser object. """

    parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, epilog=EXAMPLE)
    parser.add_argument('-v', '--version', action='version', version='%(prog)s 0.1')
    parser.add_argument('custom_template_file', nargs='?',
                        help='custom template with option settings.\n')

    return parser
Ejemplo n.º 2
0
###############################################################################

import os
import sys

import argparse
import time
import shutil
import subprocess
from rsmas_logging import RsmasLogger, loglevel
import _process_utilities as putils
from _process_utilities import _remove_directories, clean_list
from dataset_template import Template
import messageRsmas

logger = putils.send_logger()

####################################################################

EXAMPLE = '''example:
  process_rsmas.py  DIR/TEMPLATEFILE [options] [--submit]

  InSAR processing using ISCE Stack and RSMAS processing scripts

  Process directory is /projects/scratch/insarlab/$USER. Can be adjusted e.g. with TESTBENCH1,2,3 alias
  options given on command line overrides the templatefile (not verified)

  --startmakerun       skips data downloading using SSARA
  --startprocess       skips data downloading and making run files
  --startpysar         skips InSAR processing (needs a 'merged','baselines', 'master' directories)
  --startinsarmaps     skips pysar  processing (needs a PYSAR directory)
Ejemplo n.º 3
0
#######################

import os
import subprocess
import sys
import glob

import argparse
from rsmas_logging import loglevel
import messageRsmas

from _processSteps import create_or_update_template, create_or_copy_dem
from _process_utilities import get_work_directory, get_project_name
from _process_utilities import _remove_directories, send_logger

logger = send_logger()

##############################################################################
EXAMPLE = """example:
  create_squeesar_run_files.py LombokSenAT156VV.template 
"""


def create_parser():
    """ Creates command line argument parser object. """

    parser = argparse.ArgumentParser(
        formatter_class=argparse.RawTextHelpFormatter, epilog=EXAMPLE)
    parser.add_argument('-v',
                        '--version',
                        action='version',
Ejemplo n.º 4
0
# Created: 10/2018
#
###############################################################################
# Backwards compatibility for Python 2
from __future__ import print_function

import os
import sys
import time
import messageRsmas
from _process_utilities import get_work_directory, get_project_name, send_logger, _remove_directories
import _processSteps as prs
import create_batch as cb
from rsmas_logging import loglevel

logger_process_rsmas = send_logger()

###############################################################################


def process(inps):

    #########################################
    # Initiation
    #########################################
    start_time = time.time()

    inps.project_name = get_project_name(inps.custom_template_file)
    inps.work_dir = get_work_directory(None, inps.project_name)
    inps.slc_dir = os.path.join(inps.work_dir, 'SLC')