Coder Social home page Coder Social logo

Comments (6)

ninsbl avatar ninsbl commented on July 18, 2024 1

#137 writes metadata to json and allows to read that json in i.sentinel.mask. so with that PR merged there should be no more need to keep the unzipped safe. That said the metadata file could also be read directly from zip file...

from grass-addons.

neteler avatar neteler commented on July 18, 2024

I suggest to have a "keep ZIP file(s)" flag.

The flag can then be used here:

# otherwise unzipped directory can be removed (?)

@ninsbl , @landam any opinion?

from grass-addons.

ninsbl avatar ninsbl commented on July 18, 2024

No objections. A flag could be a simple solution.

The reason for this bug report will however be addressed with #137, no?

Most elegant / efficient would be probably to never unzip but use GDALs virtual file system and adding /vsizip/in front of import paths (at least when data is not just linked)...

from grass-addons.

veroandreo avatar veroandreo commented on July 18, 2024

The problem reported is that i.sentinel.import deletes the unzipped directories, not the zip file. Hence when using it together with i.sentinel.mask one needs to go through unzipping once again. Ideally we should have a flag then to keep the unzipped files.

If you never unzip by using the gdal vsizip as suggested, how would you then find the metadata file needed for i.sentinel.mask?? Does it also allow to read other types of files? Seems to me the unzipping is needed, or much better, a way to write and read the relevant info for i.sentinel.mask somewhere else, so we don't need that metadata file anymore.

from grass-addons.

lucadelu avatar lucadelu commented on July 18, 2024

@veroandreo could this issue be closed?

from grass-addons.

veroandreo avatar veroandreo commented on July 18, 2024

yes, closing

from grass-addons.

Related Issues (20)

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.