Code Monkey home page Code Monkey logo

pydms's People

Contributors

hectornieto avatar radosuav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pydms's Issues

Data Input Example

Can you please add sample data input for testing purposes / examples to know how the input should be?

Thanks

len(self.lowResQualityFiles) > 0 is always truthy

Hello!

My friend asked me to help troubleshoot the program, she is having some AttributeError exceptions. I spent some time trying to figure it out. Looks like the problem is here

As far as I understand, lowResMaskFilename is supposed to be optional. If it's specified, some additional magic (sorry, have no idea what the script actually does :) ) happens, and you control it here. The problem is, self.useQuality_LR is always True, because when you check

if len(self.lowResQualityFiles) > 0:
            self.useQuality_LR = True

you get single empty string as element of self.lowResQualityFiles list. So the length of list is always > 0, because empty string is a legit array element. So when the condition above resolves to True, program tries to open the file which is not there. Hence the AttributeError.

For now I asked my friend to either specify lowResMaskFilename or change the condition to

if len(self.lowResQualityFiles) > 1:
            self.useQuality_LR = True

just to unblock here. But latter is a dirty hack, I understand that :)

Could you please look into this?

Error in running this package

Hello, after getting the lowRes and HighRes rasters ready alongside the Mask. I ran the code but I got the following error: AttributeError: 'NoneType' object has no attribute 'GetProjection' . It seems to be a gdal error. I would like to know where it might be the error, thank you.

Receiving an error when testing the package

Hi, I am very interested to use this package. I give it a try but I received some errors. I attached my images, error message, and code in the link and I would appreciate if you can check it

https://we.tl/t-ToIK4cuKtT

Another question, If I understand correctly, the high-resolution image can be any type of short wave band, Right? Or should be certain bands with certain order?
In my example, I have one image of 3 bands (red, green, blue). It's a sentinel-2 image which I am just testing the package and hopefully, if it works, I will use all available bands of the source image.

ensure reproducability with random_state

hello there, thank you for putting together this package! it is most useful.

I was wondering, would setting a random state for the code be beneficial so as to ensure reproducible results should one need to run data over multiple iterations, say over the quality mask layer to include different values for good pixels? would it be as simple as specifying np.random.seed(some_integer) at the beginning of the pyDMS.py file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.