GithubHelp home page GithubHelp logo

Comments (8)

AdamTheisen avatar AdamTheisen commented on August 16, 2024

These codes always seem to have issues with high latitude. Thanks for catching this.

from act.

AdamTheisen avatar AdamTheisen commented on August 16, 2024

@kenkehoe Where are you getting the lat/lon from, the NAV system?

from act.

kenkehoe avatar kenkehoe commented on August 16, 2024

Hmm, looking into the code a bit I think we are not pulling in the NAV data. The lat/lon are coming from the normal data and at MOS that is set to -9999. In ARM files the missing_value indicator is not being set but there are valid_min/valid_max limits. Let me see what I can do and get back to you. We may need to catch this error in data to say don't plot daylight background.

from act.

AdamTheisen avatar AdamTheisen commented on August 16, 2024

Figure_1

I'm having trouble reproducing. I pulled in nav data and it seems to plot all night fine.

from act.

AdamTheisen avatar AdamTheisen commented on August 16, 2024

Sounds good @kenkehoe . I'm debating if we want to through an error or just not plot the background when there's no valid lat/lon. Thoughts?

from act.

AdamTheisen avatar AdamTheisen commented on August 16, 2024

Something like this perhaps?

if not (-90 <= lat <= 90) or not (-180 <= lon <= 180): raise ValueError(("Lat or Lon are invalid"))

from act.

kenkehoe avatar kenkehoe commented on August 16, 2024

Yeah I think something like that to catch the errors of bad values is all we need. Will need to also check if np.isfinite(lat) == True for cases where there is a missing_value attribute and Xarray converts the value to NaN.

I just added the correct values to the Dataset from NAV and it plotted correctly.

Screen Shot 2020-02-20 at 14 04 44

from act.

AdamTheisen avatar AdamTheisen commented on August 16, 2024

Added that in along with the finite check to #197

from act.

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.