Giter Club home page Giter Club logo

Comments (4)

bladwig1 avatar bladwig1 commented on August 15, 2024

After looking at this more closely, the algorithm works by searching for an optical depth greater than 1.0 for each vertical column in the domain. If the search finds no optical depth (clear sky), then the surface temperature is returned for that column.

I think we can simply add a flag to indicate that the user wants missing/fill values to be returned for these areas instead of surface temperature, but keep the default the same so that backwards compatibility is retained.

The line of code that will need to be modified is:

ELSE IF (opdepthd .LT. 1. .AND. k .EQ. nz) THEN
    prsctt = prs(i,j,1)
    EXIT

Change this to insert a missing value, then later check if it's missing and skip the interpolation for temperature.

from wrf-python.

bladwig1 avatar bladwig1 commented on August 15, 2024

The OpenMP directive issue will be fixed in 1.1.2. The option to add fill values for no-cloud areas will be released later.

from wrf-python.

bladwig1 avatar bladwig1 commented on August 15, 2024

There is an indexing bug here:

prsctt = pf(i,j,k-1) + fac*(pf(i,j,k) - pf(i,j,k-1))

There is nothing preventing k from being 1, which is causing Windows to crash, and this is a ticking time bomb for Linux and Mac.

from wrf-python.

bladwig1 avatar bladwig1 commented on August 15, 2024

Also, the computation is not correctly integrating from top to bottom when using WRF files that do not contain cloud ice mixing ratio.

from wrf-python.

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.