PyRAT icon indicating copy to clipboard operation
PyRAT copied to clipboard

Unable to create file

Open NatalyaSlepkova opened this issue 6 years ago • 5 comments

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?

NatalyaSlepkova avatar Aug 06 '18 11:08 NatalyaSlepkova

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

birgander2 avatar Aug 07 '18 20:08 birgander2

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?

NatalyaSlepkova avatar Aug 08 '18 13:08 NatalyaSlepkova

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.

birgander2 avatar Aug 09 '18 08:08 birgander2

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

NatalyaSlepkova avatar Aug 20 '18 10:08 NatalyaSlepkova

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

birgander2 avatar Dec 03 '19 15:12 birgander2