birgander2 / PyRAT

General purpose Synthetic Aperture Radar (SAR) postprocessing software package
Mozilla Public License 2.0
193 stars 48 forks source link

Unable to create file #15

Open NatalyaSlepkova opened 6 years ago

NatalyaSlepkova commented 6 years ago

I have Ubuntu 16.04. I have a .rli file of pixels' float value. So I want to run PyRAT for it. Now I just rename file to .rat, but so I can't load this file. What should I do? How can I convert .rli file to .rat?

birgander2 commented 6 years ago

.rat is a particular binary format. Just renaming a .rli file won't format its content accordingly. Btw, what is a .rli file?

You should try to open Pyrat without the filename and then import your data using one of the import routines. Try maybe "help(load)" for a list of supported file types.

P.S.: the error message you got is really a stupid one. I have to check that and improve it. When I'm back from holidays...

NatalyaSlepkova commented 6 years ago

We can assume that the input is given an image in the format .bmp. But in help(load) this format is not available. I can easy convert it to .jpg or to .png, but this is bad for quality. So which format is better?

birgander2 commented 6 years ago

You can try to use load.pixmap, it might work with bmp although I'm not sure. If not, convert to png, that's lossless and should not degrade quality.

However, PyRAT is mainly meant to process "real" SAR data in complex or floating point. You won't get decent results from 8 bit pixmap images.

NatalyaSlepkova commented 6 years ago

What about pipelines of PyRAT? Unfortunately now I know very little about your filters. Could you give me some examples of sequences' filters please?

birgander2 commented 4 years ago

What do you mean with pipelines? You can just call several pyrat functions in a row.