deramp command

67 views
Skip to first unread message

buend...@hotmail.com

unread,
Jul 22, 2014, 3:18:29 AM7/22/14
to adore...@googlegroups.com
Hello Batu,
I was trying to deramp an unwrapped interferogram of mines but the command throws an error:

ADORE: deramp unwrap

Reading unwrap information from: ./20030801_20040716.res

Image Width ..797..

Image Format ..r4..

Traceback (most recent call last):

File "/opt/adore-doris/lib/python/deramp.py", line 277, in <module>

main(sys.argv[1:]);

File "/opt/adore-doris/lib/python/deramp.py", line 272, in main

outData=deramp(data, eData, weight=mData, order=cfg["-o"]);

File "/opt/adore-doris/lib/python/deramp.py", line 93, in deramp

planefit,fitfunc=fitSurface(fitX,fitY,fitData, weight=w, order=order);

File "/opt/adore-doris/lib/python/deramp.py", line 60, in fitSurface

planefit, success=scipy.optimize.leastsq(errfunc, p0, args=(x,y,z,w))

File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 278, in leastsq

raise TypeError('Improper input: N=%s must not exceed M=%s' % (n,m))

TypeError: Improper input: N=3 must not exceed M=2


I also tried to use directly the python script but I obtained the same error.
Any idea about it?

Best

Filippo

Batuhan Osmanoglu

unread,
Jul 22, 2014, 1:46:24 PM7/22/14
to buend...@hotmail.com, adore...@googlegroups.com
Hi Flippo,

It seems like a problem with the deramp function, but I was just using the deramp.py last week and it was working fine with python 2.7. For some reason on my python the leastsq is not on line 278 on minpack.py. 

Could you please try:
- updating adore 
- updating python (but stay at 2.7) 

If you still have the problem, I have to try to replicated the problem somehow.

best, 
batu.


--
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.

buend...@hotmail.com

unread,
Jul 23, 2014, 3:11:35 AM7/23/14
to adore...@googlegroups.com
hello Batu,
I´m running adore version 1.448 and my python version is the 2,73.
I will try at home with my other ubuntu machine (since the other is at the moment busy running some process..)
I´ll ket you know as soon I try.
Thnaks
Best
Filippo

buend...@hotmail.com

unread,
Jul 24, 2014, 4:54:52 PM7/24/14
to adore...@googlegroups.com
Hello Batu,
now with the upadated version of adore and python 2,76 I made some progress.

I was able to create the file 20030801_20040716.uwderamp:


ADORE: deramp unwrap
Reading unwrap information from: ./20030801_20040716.res
Image Width ..1597..



Image Format ..r4..
Writing output to: ./20030801_20040716.uwderamp

but then ADORE seems blocked and I can only close the program by forcing the terminal.
I was also trying to view the uwderamp so I tried:

saveas arcgis p deramp and raster p deramp without success.
I am suppose to use and view the deramp result?
Thanks


Filippo

On Tuesday, 22 July 2014 09:18:29 UTC+2, buend...@hotmail.com wrote:

buend...@hotmail.com

unread,
Nov 17, 2014, 8:18:31 AM11/17/14
to adore...@googlegroups.com
Hello Batu,
finally I managed to use the unwrap command correctely in ADORE by first updating the last version, then by issuing the command:

deramp unwrap -e 20030801_20040716.crd

which create the file 20030801_20040716.uwderamp and updated the 20030801_20040716.res file.
Then in order to view the file I read some explanations on the deramp.py file located in /opt/adore/lib/python which suggest to use from adore
cpxview -w 1597 -f r4 -q normal -c jet -b 20030801_20040716.uwderamp
then I was able to see my deramped unwrapped interferogram.
Ok that's really useful and you can see in attachemnt the results (figure_1)
But now how to export this .*uwderamp in arcgis format (.img)?
I tried the command:
ADORE: saveas arcgis p deramp
I couldn't find that step in the resultfiles. Please check your master and slave settings are correct.
..width....
..format....
Reading geocoding information from: ./20030801_20040716.res
You requested me to generate: phase
No data file for the step deramp in


So what is the way to produce an .img (float) file out of the deramp step?
It seems something happened on my .res file (the file was updated by this action) but no informations about the last step deramp was printed.
It is something wrong with the fact that I already geocoded the unwrapped inderferogram? Or what should I do?
Thanks again for your kind cooperation.


Filippo




On Tuesday, 22 July 2014 09:18:29 UTC+2, buend...@hotmail.com wrote:
figure_1.png

buend...@hotmail.com

unread,
Nov 17, 2014, 9:58:25 AM11/17/14
to adore...@googlegroups.com
Dear all,
I finally found what is the following step for exporting a *.img file from a deramped unwrapped interferogram.
After having issued the command
deramp unwrap
Adore create the file master_slave.uwderamp and modify the master_slave.res in unwrapping by changing master_slave.uw to master_slave.uwderamp.
Now we have just to launch:
saveas arcgis p unwrap
and a file master_slave.uwderamp.img will be created.

That's all problem solved and finally this thred can be closed.
regards


Filippo

On Tuesday, 22 July 2014 09:18:29 UTC+2, buend...@hotmail.com wrote:

Batuhan Osmanoglu

unread,
Nov 20, 2014, 7:41:26 PM11/20/14
to filippo vecchiotti, adore...@googlegroups.com
Hi Flippo,

If I am not mistaken, the deramp command reads the data in directly from the DORIS output, and does not use any GRD files. I am guessing at some point you tried the saveas command and it failed, leaving the GRD files behind. It is possible that this problem is due to ubuntu 14's GMT, but I have not verified it. I am using ubuntu 14 and did not run into the problem, but I don't think I used the saveas command recently. 

  File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 371, in leastsq
    raise TypeError('Improper input: N=%s must not exceed M=%s' % (n, m))
TypeError: Improper input: N=3 must not exceed M=2

This indicates there is a problem with the data going into optimize.leastsq. Can you pass "-o 1" to test? 

best, 
batu

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

On Wed, Nov 19, 2014 at 3:13 PM, filippo vecchiotti <buend...@hotmail.com> wrote:
Dear Batu,
Thanks for the remark, but actually I found out that the last version of ADORE with PYTHON 2,7.3 cannot deramp the unwrap data, whereas on ubuntu 14.04 last version of ADORE with PYTHON 2.7.6 I was able to perform deramp but only on project processed in ubu 14.04. In fact I tried to export a project I processed at work with ubu 12.04 in order to try PYTHON 2.7.6 at home without success.
And I got the same mistake in ubu 12 and 14:


ADORE: deramp unwrap
Reading unwrap information from: ./20030801_20040716.res
Image Width ..797..
Image Format ..r4..
Traceback (most recent call last):
  File "/opt/adore/lib/python/deramp.py", line 277, in <module>
    main(sys.argv[1:]);   
  File "/opt/adore/lib/python/deramp.py", line 272, in main

    outData=deramp(data, eData, weight=mData, order=cfg["-o"]);
  File "/opt/adore/lib/python/deramp.py", line 93, in deramp
    planefit,fitfunc=fitSurface(fitX,fitY,fitData, weight=w, order=order);
  File "/opt/adore/lib/python/deramp.py", line 60, in fitSurface
    planefit, success=scipy.optimize.leastsq(errfunc, p0, args=(x,y,z,w))
  File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 371, in leastsq

    raise TypeError('Improper input: N=%s must not exceed M=%s' % (n, m))
TypeError: Improper input: N=3 must not exceed M=2

The only difference in between the two projects I fond is the presence of grd file in ubuntu 14 whereas in the project coming from ubuntu 12 I did not found any.
ex: 20030801_20040716_uw_grdreformat.grd, 20030801_20040716_uw.grd and 20030801_20040716_uw.dat, 20030801_20040716_uw.temporary.
Is this discrepancy maybe due to two different version of GMT? Mine in ubu 14 is the ver. grdinfo 4.5.11.

Best regards

Filippo





Date: Mon, 17 Nov 2014 13:04:29 -0500
Subject: Re: [adore-doris] Re: deramp command
From: ba...@bostechnologies.com
To: buend...@hotmail.com


Dear Flippo,

I am glad that the deram step worked. The way to export is using this command:

saveas arcgis p unwrap:*.uwderamp

Assuming you only have one *.uwderamp file in that directory.

Best,
Batu.

--
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.l

Reply all
Reply to author
Forward
0 new messages