Coder Social home page Coder Social logo

Nice combo example about python-training HOT 1 OPEN

dopplershift avatar dopplershift commented on August 23, 2024
Nice combo example

from python-training.

Comments (1)

deeplycloudy avatar deeplycloudy commented on August 23, 2024 2

Here is code for adding GLM flash and group centroid locations, also using the NOAA S3 archive.

In the 5 min window I used, there's lots of flashes, so it swamps the MRMS display at this scale.

# Grab the corresponding GLM data in the 5 min window before the MD.
glm_window = timedelta(minutes=5) # We want this much data
glm_prod_length = timedelta(seconds=20) # LCFA files are always 20s long
n_glm = int(glm_window/glm_prod_length)
glm_prod_times = [md_time - ti*glm_prod_length for ti in range(n_glm)][::-1]
glm_prods = [GOESArchive(satellite=16).get_product('GLM-L2-LCFA', ti).parse() for ti in glm_prod_times]

# Plot GLM
for glm in glm_prods:
    ax.plot(glm.flash_lon, glm.flash_lat, marker='D', color='w', markersize=4, linewidth=0, transform=ccrs.PlateCarree())
    ax.plot(glm.group_lon, glm.group_lat, marker='s', color='y', markersize=2, linewidth=0, transform=ccrs.PlateCarree())

image

from python-training.

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.