GithubHelp home page GithubHelp logo

Workflow for ENVI SLC stacking about gmtsar HOT 8 CLOSED

gmtsar avatar gmtsar commented on June 28, 2024
Workflow for ENVI SLC stacking

from gmtsar.

Comments (8)

Xiaohua-Eric-Xu avatar Xiaohua-Eric-Xu commented on June 28, 2024

Hi Nathan,

Hi Koorosh,

We are kind of slow on this as most people turned to Sentinel-1 these days.

The coregistration of SLC product is fairly simple in GMTSAR. Mainly it follows the following steps.

A) imagine you have two images $master and $aligned, acquired by ENVI_SLC_pre_process.

  1. xcorr to get the shift parameters
    xcorr $master.PRM $aligned.PRM -xsearch 128 -ysearch 128 -nx 20 -ny 50

  2. get coregistration parameters from the xcorr results (you can use different number of parameters, the default is 2,2, chose 3 3 for a better coregistration)
    fitoffset.csh 2 2 freq_xcorr.dat 18 >> $aligned.PRM

  3. resample the aligned image to perform coregistration
    resamp $master.PRM $aligned.PRM $aligned.PRMresamp $aligned.SLCresamp 4

  4. rename the files before the next step (interferometry)
    rm $aligned.SLC
    mv $aligned.SLCresamp $aligned.SLC
    cp $aligned.PRMresamp $aligned.PRM

B) For ENVISAT, sometimes the baseline is too big and you have to perform secondary alignment just like for ALOS data. You could simply achieve this with performing the steps above
First, between $master and $secondary_master and then between $secondary_master and $slave. After that, perform interferometry between $secondary_master and $slave

You can always perform B) to achieve better coherence.

After you get aligned SLCs, you could create interferogram with intf_batch.csh or intf_tops.csh if you want to cut a small region for processing.

Cheers,
Xiaohua(Eric)

from gmtsar.

nwpulver avatar nwpulver commented on June 28, 2024

So I would align each SLC individually to the reference slc correct? How would I go about getting a baseline plot to determine the master?

Would you suggest just using L0 products?

Nathan

from gmtsar.

Xiaohua-Eric-Xu avatar Xiaohua-Eric-Xu commented on June 28, 2024

Once you get all PRM, SLC, LEDs with ENVI_SLC_pre_process, use get_baseline_table.csh to create a baseline_table.dat. Then you could plot the baseline with GMT and select your master image.
There are no fundamental differences between SLCs and raw data, unless 1) you want a larger area with chirp extension or 2) you want to focus at non-zero doppler so the image quality is better.

from gmtsar.

nwpulver avatar nwpulver commented on June 28, 2024

Ok, it seems I am having a hard time finding the raw data, so I wrote a couple scripts to handle this workflow up to the intf_batch processing. Would it be helpful for the developers to share this?

  • Nathan

from gmtsar.

Xiaohua-Eric-Xu avatar Xiaohua-Eric-Xu commented on June 28, 2024

Do you want to make a pull request? I can give it a review and put it to the distribution. We could go back and forth and exchange ideas this way.

from gmtsar.

nwpulver avatar nwpulver commented on June 28, 2024

I have never done a pull request before on git, but I would be happy to sort out how that is done at some point. I started classes again and have gotten quite busy so it may be a little bit before I can devote time to it. I did quickly upload my scripts to my github if that is at all helpful. I think I will definitely need some input from you so a pull request is a great idea, I just need some more time.

Nathan

from gmtsar.

Xiaohua-Eric-Xu avatar Xiaohua-Eric-Xu commented on June 28, 2024

Oh, great, no hurry on this. Here's a link on how you could make a pull request. I would recommend making on the most up-to-date master branch. https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request

from gmtsar.

nwpulver avatar nwpulver commented on June 28, 2024

I am currently getting errors when running all of these steps when running intf_batch.csh and I cannot figure out why. The errors start at OFFSET_TOPO phase with the error: Can't open input data ASA_IMS_1PNESA20030207_175248_000000182013_00356_04919_0000.SLC grdmath [ERROR]: amp-ASA_IMS_1PNESA20030207_175248_000000182013_00356_04919_0000.grd is not a number, operator or file name then errors continue throughout. Am I missing something with the steps? if i run gmt grdinfo on amp-ASA_ ... then it outputs a max and min of a grid and the correct file format, so it is not an empty .grd file there. I am not sure why it is saying it cannot open the SLC file either.

from gmtsar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.