Git Product home page Git Product logo

Comments (4)

dustinswales avatar dustinswales commented on August 11, 2024

The wrinkle to this is cloud-free scenes and dark scenes are both set to R_UNDEF in the modis-simulator. We want to include to former, but not the latter.

from cospv2.0.

takmichibata avatar takmichibata commented on August 11, 2024

@dustinswales I apporogize for this bug and late reply. The warm rain diagnostics did intend to use only daytime cloudy scenes, but actually the current code did not explicitly exclude dark-scene columns from the analysis.
To fix this bug, I will change the following two places as suggested by @brhillman and @dustinswales at the previous PR from 2019 (#36).

https://github.com/CFMIP/COSPv2.0/blob/master/src/cosp_stats.F90#L338

!! initialize
 do i = 1, Npoints
    if ( lwp(i) .eq. R_UNDEF ) then  ! for non-sunlit columns
       cfodd_ntotal(i,:,:,:) = R_UNDEF
       wr_occfreq_ntotal(i,:) = R_UNDEF
       icod(i,:,:) = R_UNDEF
    else
       cfodd_ntotal(i,:,:,:)  = 0._wp
       wr_occfreq_ntotal(i,:) = 0._wp
       icod(i,:,:) = 0._wp
    endif
 enddo

https://github.com/CFMIP/COSPv2.0/blob/master/src/cosp_stats.F90#L345

    if ( ( lwp(i)   .le.  CWP_THRESHOLD  .and. lwp(i)  .ne.  R_UNDEF  ) .or.  &

I think this change will work appropriately for the issue. I push the bug-fix later via pull request.

from cospv2.0.

takmichibata avatar takmichibata commented on August 11, 2024

@dustinswales I think that we can now close this thread, as we have corrected this bug in the recent PR (#73). Thank you for your support.

from cospv2.0.

dustinswales avatar dustinswales commented on August 11, 2024

@takmichibata
Excellent!
Thanks for your work on this!

from cospv2.0.

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.