Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create file #15

Open
NatalyaSlepkova opened this issue Aug 6, 2018 · 5 comments
Open

Unable to create file #15

NatalyaSlepkova opened this issue Aug 6, 2018 · 5 comments

Comments

@NatalyaSlepkova
Copy link

NatalyaSlepkova commented Aug 6, 2018

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
Copy link
Owner

.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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants