Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • d299aa8
  • /
  • compare_velocity_with_diff_tropo.sh
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:a7030ba4ff9ac2448ad0cc4cf1363533d733b378
directory badge Iframe embedding
swh:1:dir:d299aa89c28b45d5525efd3746d487d4ecf4f14f
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
compare_velocity_with_diff_tropo.sh
#! /bin/sh
## Compare the estimated velocities from time-series with different troposphric delay corrections
## Created by Zhang Yunjun, Sep 6th, 2018

## Run Control: change to 0 to skip the part
run_proc=1
run_plot=1

## Run Customized Processing
if [ $run_proc -eq 1 ]; then
    generate_mask.py temporalCoherence.h5 -m 0.8 -o maskTempCoh.h5

    # Tropospheric Correction with ERA-Interim
    tropo_pyaps.py -f timeseries.h5 -g inputs/geometryRadar.h5 -m ECMWF -w ~/insarlab/WEATHER
    dem_error.py  timeseries_ECMWF.h5 -g inputs/geometryRadar.h5
    remove_ramp.py timeseries_ECMWF_demErr.h5 -m maskTempCoh.h5 -s linear
    timeseries2velocity.py timeseries_ECMWF_demErr_ramp.h5 -o velocity_tropECMWF.h5

    # Tropospheric Correction with MERRA-2
    tropo_pyaps.py -f timeseries.h5 -g inputs/geometryRadar.h5 -m MERRA -w ~/insarlab/WEATHER
    dem_error.py  timeseries_MERRA.h5 -g inputs/geometryRadar.h5
    remove_ramp.py timeseries_MERRA_demErr.h5 -m maskTempCoh.h5 -s linear
    timeseries2velocity.py timeseries_MERRA_demErr_ramp.h5 -o velocity_tropMERRA.h5

    # Tropospheric Correction with Phase/Elevation Ratio
    dem_error.py timeseries.h5 -g -g inputs/geomtropo_phase_elevationetryRadar.h5
    tropo_phase_elevation.py timeseries_demErr.h5 -g inputs/geometryRadar.h5 -m maskTempCoh.h5
    remove_ramp.py timeseries_demErr_tropHgt.h5 -m maskTempCoh.h5 -s linear
    timeseries2velocity.py timeseries_demErr_tropHgt_ramp.h5 -o velocity_tropHgt.h5

    # No tropospheric Correction
    remove_ramp.py timeseries_demErr.h5 -m maskTempCoh.h5 -s linear
    timeseries2velocity.py timeseries_demErr_ramp.h5 -o velocity_tropNone.h5
fi

## Run plotting
opt=' velocity --wrap --wrap-range -1 1 --nodisplay --cbar-nbins 2 --notitle --figsize 3 3 --fontsize 12 --notick --dpi 600 --ref-size 3 --dem inputs/geometryRadar.h5 --dem-nocontour '
proj_name='AlcedoSenDT128'
if [ $run_plot -eq 1 ]; then
    view.py velocity_tropNone.h5  $opt -o ${proj_name}_velocity_0_tropNone.png
    view.py velocity_tropECMWF.h5 $opt -o ${proj_name}_velocity_1_tropECMWF.png
    view.py velocity_tropMERRA.h5 $opt -o ${proj_name}_velocity_2_tropMERRA.png
    view.py velocity_tropHgt.h5   $opt -o ${proj_name}_velocity_3_tropHgt.png
fi

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top