<p>There are some problems with your request, and maybe some misunderstandings.</p>

<p><strong>Misunderstanding</strong>: You actually need more than pressure to get wind vectors. Wind speed is nonlinear, and is dependent on more than just wind. Even if you had observations of pressure, that will only tell you how the wind is changing due to the pressure gradient force, and not due to things like transport, diffusion, or Coriolis force, especially at the resolution you are requesting. Fortunately, wind observations are much easier to get than pressure observations, so that lies in your favor. You could use satellite data to get wind data, or near the surface.</p>

<p><strong>Problem</strong>: Observations aren't really on a structured grid (unless you are working with satellite data, which has quality problems), nor are they available at the resolution you want. You may be able to use model data or reanalysis data, but even the resolutions you request may not be sufficient.</p>

<p>You can interpolate down to whatever resolution you want.</p>

<p>If you want near realtime model data for Europe, try the <a href="https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/" rel="nofollow noreferrer">GFS model</a> from the WPC. You can try to get data from the <a href="https://www.ecmwf.int/" rel="nofollow noreferrer">ECMWF</a> (perhaps they have data sources I am unaware of), but their data is proprietary. You may also want to use a grib reader to access the data. If you are familiar with Python, you can use <a href="https://github.com/jswhit/pygrib" rel="nofollow noreferrer">pygrib</a>. Or you can refer to the <a href="https://confluence.ecmwf.int/display/CKB/How+to+read+or+decode+a+GRIB+file" rel="nofollow noreferrer">ECMWF recommendations</a> on reading grib files. I'm a little unfamiliar with satellite-derived products, so I can't really help you there.</p>

CC BY-SA 4.0
2019-05-09T15:55:04.083Z
2019-05-09T15:55:04.083Z
BarocliniCplusplus
<p>I'm working on a programming project in which I want to show isobars on a map with OpenStreetMap and the HTML tag <em>canvas</em>. The main problem that I'm facing is the dificulty of retrieving consistent data to draw the isobars and, therefor, calculate wind speed and direction.</p>

<p>I gave up trying to find real time data, and also I'm starting to doing so about getting open sea data (atmospheric pressure and temperature data in open sea, the first idea I had). So, right now, I'm searching for a platform where I can retrieve this kind of data in Europe (Spain in particular would be very nice) so I can start working on drawing isobars and calculating wind variables. I looking for measurements with some density (for example, 200 or 300 points of measurement across Spain within 4 times in a day) to draw the isobars.</p>

<p>The best (and kind of only) way to do so would be in JSON, because it would be quite easy to manipulate and work with the data, but also plain text would work.</p>

<p>Thanks to anyone who answers me.</p>

<meteorology><atmosphere><climate><open-data><data-formats>
Get atmospheric pressure values through JavaScript
black-knuckles-7
# Get atmospheric pressure values through JavaScript

(Asked by: username_0 on 2019-05-07)

I'm working on a programming project in which I want to show isobars on a map with OpenStreetMap and the HTML tag *canvas*. The main problem that I'm facing is the dificulty of retrieving consistent data to draw the isobars and, therefor, calculate wind speed and direction.

I gave up trying to find real time data, and also I'm starting to doing so about getting open sea data (atmospheric pressure and temperature data in open sea, the first idea I had). So, right now, I'm searching for a platform where I can retrieve this kind of data in Europe (Spain in particular would be very nice) so I can start working on drawing isobars and calculating wind variables. I looking for measurements with some density (for example, 200 or 300 points of measurement across Spain within 4 times in a day) to draw the isobars.

The best (and kind of only) way to do so would be in JSON, because it would be quite easy to manipulate and work with the data, but also plain text would work.

Thanks to anyone who answers me.

**Tags:** meteorology, atmosphere, climate, open-data, data-formats


---

## 1 answers

### Answer by username_1 on 2019-05-09. Score: 2

There are some problems with your request, and maybe some misunderstandings.

**Misunderstanding**: You actually need more than pressure to get wind vectors. Wind speed is nonlinear, and is dependent on more than just wind. Even if you had observations of pressure, that will only tell you how the wind is changing due to the pressure gradient force, and not due to things like transport, diffusion, or Coriolis force, especially at the resolution you are requesting. Fortunately, wind observations are much easier to get than pressure observations, so that lies in your favor. You could use satellite data to get wind data, or near the surface.

**Problem**: Observations aren't really on a structured grid (unless you are working with satellite data, which has quality problems), nor are they available at the resolution you want. You may be able to use model data or reanalysis data, but even the resolutions you request may not be sufficient.

You can interpolate down to whatever resolution you want.

If you want near realtime model data for Europe, try the [GFS model](https://nomads.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/) from the WPC. You can try to get data from the [ECMWF](https://www.ecmwf.int/) (perhaps they have data sources I am unaware of), but their data is proprietary. You may also want to use a grib reader to access the data. If you are familiar with Python, you can use [pygrib](https://github.com/jswhit/pygrib). Or you can refer to the [ECMWF recommendations](https://confluence.ecmwf.int/display/CKB/How+to+read+or+decode+a+GRIB+file) on reading grib files. I'm a little unfamiliar with satellite-derived products, so I can't really help you there.


---

