Showing entries tagged [python]

MetPy Mondays #8 - Interactive Dewpoint Calculator

I recently installed a weather station in my back yard. Every day I look at the display and see the temperature, wind, rain, and humidity, but the dewpoint is not displayed by default! As it turns out, dewpoint is a tricky thing to directly measure. The only way to directly measure it is with a fogged mirror sensor. Otherwise a hygrometer or psychrometer can be used to measure humidity or wet-bulb temperature, and then the dewpoint can be calculated. MetPy has the calculation functions to do both of these conversions. In this week’s MetPy Monday I’ll show you how to use the Jupyter Notebook’s interactive widgets to make a dewpoint calculator with slider widgets. This is a great way to get students to interact with formulas and get an intuitive sense of how they work!

MetPy Mondays #7- Contouring a Field on a Map

Last week we looked at how to create a simple base map with Cartopy. In this week’s MetPy Monday, we learn about contouring a field on the map and some of the idiosyncrasies of cyclic points. In the end, we will have a plot of the globe with the Coriolis parameter contoured. You can use this functionality to create height maps and more!

We’ll start off with importing the tools we will use: matplotlib, MetPy calculations, MetPy units, and numpy. We’re also using the magic %matplotlib inline so figures show up in the notebook instead of in separate windows.

[Read More]

MetPy Mondays #6 - Making a Basic Map with Cartopy

One of the most common tasks we do as geoscientists is make maps. Maps are a great way to look at massive amounts of data and synthesize it. In Python, Cartopy is the most current mapping package available and is what we use in all of our MetPy Gallery and Python Gallery examples. In this week’s MetPy Monday, we’ll look at the fundamentals of mapping with Cartopy and create a couple of simple base maps that data can be plotted on.

MetPy Mondays #5 - Python Resources

Don't know where to start on your Python journey? We’ve developed a lot of material here at Unidata to help you out! This week, we’ll go over the resources and show you how to use the example galleries and documentation pages to explore the capabilities of MetPy and the other Unidata Python products.

MetPy Mondays #4 - Units in MetPy

I remember the first class I took in which the professor required that we include units by every quantity in every step of every calculation we did… or it was wrong. I thought this policy was a bit harsh, but after one or two assignments, I was getting the hang of it. By the end of the semester I realized that it was insane to work any other way. In science, we are dealing with physical quantities that represent things in the real world – and things in the real world have units. Keeping track of units throughout a calculation caught many errors I made while solving and rearranging equations. If keeping track of units on paper is a good idea, why is computing any different? In this MetPy Monday, we'll look at how MetPy uses units and how to convert between different units.

[Read More]
Unidata Developer's Blog
A weblog about software development by Unidata developers*
Unidata Developer's Blog
A weblog about software development by Unidata developers*

Welcome

FAQs

News@Unidata blog

Take a poll!

What if we had an ongoing user poll in here?

Browse By Topic
Browse by Topic
« July 2024
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today