Git Product home page Git Product logo

Comments (3)

gillins avatar gillins commented on July 17, 2024

Original comment by Neil Flood (Bitbucket: neilflood, GitHub: neilflood).


Hi Ian,

Thanks for your thoughts on this, I appreciate the interest and feedback.

I think the main reason for adding the new --safedir option was because most people seem to use it that way, and telling them how to run a whole set of commands seemed more cumbersome than coding up the same thing internally.

I am a great believer in not breaking things which currently work, so I was not planning to remove the old options, and if you have built a workflow around them, I am happy to leave them in. So, don't worry about that. When I get a moment, I will update the doc so it does not call them obsolete.

When we set this package up, we had originally expected that people would use it as a Python module, and write their own main program to stack things exactly as they wished, and we only added the command line script as a simple way to get started. We were surprised when people just used that directly as they only way in.

With that in mind, I would suggest that you might benefit from using it that way, i.e. build your workflow on top of the Python module, and write your own command line around that. It sounds like you have done that in some form, but talking to the fmask_sentinel2stacked.py command line. No problem either way, and entirely up to you, that is just how I think of it. For our own work here, we have our own private command line which understands our own file naming conventions and so on, so we do not use the fmask_sentinel2stacked.py main program.

Does all that make sense?

re: Vincent's comments about possible mis-registration of overviews in the supplied jp2 files - I have not observed this either, but I work in a quite different workflow. Mostly I am working with files which have been converted out of the supplied jp2 files, and had their overviews recalculated. I wonder if you are in a similar position by using the individual bands - have not tried that option at all. Anyway, I took him seriously enough that I followed his general pattern when I implemented the new --safedir option.

Neil

from python-fmask.

gillins avatar gillins commented on July 17, 2024

Original comment by Ian Cooke (Bitbucket: ircwaves, GitHub: ircwaves).


Thanks, Neil.

All of that makes perfect sense. Using the module programmatically (instead of via subprocess) should be on our list. And, you describe what we have implemented very well. We aren't recomputing the overviews, so I hope that maybe Vincent can chime in with a link or example.

Our app, GIPS, uses the VRT as a layer of indirection. We were going to use a VRT with /vsicurl path/urls in it, but remote reads of JP2s seem problematic. Installations can be configured to pull from ESA scihub, or Google Cloud Storage, and are capable of producing many common remote sensing products from many sources. Documentation is quite stale, so if it ever seems of interest to you in your work, please don't hesitate to contact me directly ( 'I COOKE at ACM . ORG'.lower().replace('at', '@').replace(' ', '')).

Ian

from python-fmask.

neilflood avatar neilflood commented on July 17, 2024

No further action required.

from python-fmask.

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.