modification of subtrrefdem script bistatic Tandem-X Interferometry

30 views
Skip to first unread message

Mohammad Mohseni Aref

unread,
Apr 16, 2015, 1:24:27 PM4/16/15
to Batuhan Osmanoglu, Batuhan Osmanoglu

Dear Batu,

 

I was checking subtrrefdem code and It seems to me that instead of crd_out_dem in subtrrefdem script ,we have to replace crd_out_file for bistatic Tandem-X Interferometry.so I modified subtrrefdem scripts to

 

#!/bin/bash

if [ "${bistatic}" == "on" ]; then

  #openInIpython "${ADOREFOLDER}/lib/python/fun/subtrrefdem_bistatic.py"

  floatmult ${crd_out_file} 0.5

  mv ${crd_out_file}.floatmult0.5 ${crd_out_file}

fi

pp ${dorisProcess} 

doris ${outputFolder}/${dorisProcess}.drs

[ $? -eq 0 ] && echo "${dorisProcess}: SUCCESS"

 

Best Regards,

Mohammad Mohseni Aref

Batuhan Osmanoglu

unread,
Apr 16, 2015, 1:56:36 PM4/16/15
to Mohammad Mohseni Aref, adore...@googlegroups.com
Hi Mohammad, 

What you did is exactly what the code in subtrrefdem_bistatic.py is doing. 

Did it not work?

best.
batu

--
Batuhan Osmanoglu, Ph.D.
Partner
BOS Technologies, LLC

Mohammad Mohseni Aref

unread,
Apr 16, 2015, 2:45:20 PM4/16/15
to Batuhan Osmanoglu, adore...@googlegroups.com
Hi Batu,

It works well and I modified code based on subtrefdem_bistatic.py.My slant2h output results (bistatic=on) was not what I wanted hence I have checked  every step .I found that I should manually change master_slave.crd value by subtrrefdem_bistatic.py .It seems subtrefdem has bug in mode bistatic=on .I prefer to use floatmult because I think it is faster rather python code.

all the best,
Mohammad

Batuhan Osmanoglu

unread,
Apr 16, 2015, 2:51:16 PM4/16/15
to Mohammad Mohseni Aref, adore...@googlegroups.com
Hi Mohammad, 

OK, agreed. We can change to floatmult. 

Is your ipython working though? I processed TDX DEMs before and they worked, hence I am surprised it didn't work for you. You shouldn't have needed to change the master_slave.crd because it is overwritten by the python script. Just trying to figure out where the problem is. 

best, 
batu

--
Batuhan Osmanoglu, Ph.D.
Partner
BOS Technologies, LLC

--
You received this message because you are subscribed to the Google Groups "ADORE-DORIS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adore-doris...@googlegroups.com.
To post to this group, send email to adore...@googlegroups.com.
Visit this group at http://groups.google.com/group/adore-doris.
For more options, visit https://groups.google.com/d/optout.

Mohammad Mohseni Aref

unread,
Apr 16, 2015, 5:20:33 PM4/16/15
to Batuhan Osmanoglu, adore...@googlegroups.com
Hi Batu,

Thanks so much,Ipython works fine.
Please look inside subtrrefdem script.Actually,you deactivated your command using  # before openInIpython "${ADOREFOLDER}/lib/python/fun/subtrrefdem_bistatic.py",I don't know why!

Best,
Mohammad

PS: subtrrefdem script
#!/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"

Batuhan Osmanoglu

unread,
Apr 16, 2015, 7:16:28 PM4/16/15
to Mohammad Mohseni Aref, adore...@googlegroups.com

Dear Mohammad,

Please check your adore version. The latest code has that line active:
https://github.com/bosmanoglu/adore-doris/blob/master/lib/python/fun/subtrrefdem_bistatic.py

You may be using an older version.

Best,
Batu

Batuhan Osmanoglu

unread,
Apr 17, 2015, 9:44:17 AM4/17/15
to Mohammad Mohseni Aref, adore...@googlegroups.com
Dear Mohammad, 

OK.. I thought you made a change, but seems like I made the change in Apr 3, 2014. 

So is there a problem/bug with adore or was it working?  I am getting confused here. 

Best, 
batu. 

On Thu, Apr 16, 2015 at 9:44 PM, Mohammad Mohseni Aref <mohsen...@gmail.com> wrote:
Dear Batu,

I have downloaded adore recentlt from github,please see subtrrefdem in github 
#openInIpython "${ADOREFOLDER}/lib/python/fun/subtrrefdem_bistatic.py"
as far as I concerned,It is deactivated by #.I fully agree with subtrrefdem.py works fine but we are talking about subtrrefdem

all the best,
Mohammad

PS:I didn't send this email to adore group


Reply all
Reply to author
Forward
0 new messages