Giter Club home page Giter Club logo

Comments (7)

yumorishita avatar yumorishita commented on May 27, 2024

Thank you very much for reporting the issue and suggesting the modification. I will update the code.

Regarding the elif statement, I think I should update all
[el]if not tools_lib.download_data(*, *): print...
lines to
else: tools_lib.download_data(*, *)
as you suggested.
Do you think is that right?

from licsbas.

sahitono avatar sahitono commented on May 27, 2024

You're welcome. Yes, that is right. I also think it's better not to return any value in download_data because the error already caught and the data is saved not returned.

I found out that it's better to send HEAD than GET when checking mli.tif to find the earliest date in which mli is available. So, it won't download the entire file but only check if link exist.

from licsbas.

yumorishita avatar yumorishita commented on May 27, 2024

Thanks! I see your points. I will update the codes soon.

from licsbas.

sahitono avatar sahitono commented on May 27, 2024

You are welcome, glad to hear that ^^

from licsbas.

yumorishita avatar yumorishita commented on May 27, 2024

I will update the codes almost as you suggested, but I will not include "raise SystemExit(error)" in download_data because the not-downloaded data are not necessary for later steps (i.e., can be skipped) and the step01 processing should not be stopped.

Please let me know if you have any thoughts about this.

from licsbas.

sahitono avatar sahitono commented on May 27, 2024

Oohh, so that's okay to ignore not-downloaded data ? Then it is not necessary to raise any exception and systemexit.

from licsbas.

yumorishita avatar yumorishita commented on May 27, 2024

Yes, sometimes missing data exist in LiCSAR products but later steps in LiCSBAS can run without them.

I have updated the codes. Thank you for your suggestion.

from licsbas.

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.