Hacker News new | ask | show | jobs
by ungawatkt 1001 days ago
Hurricanes specifically are pretty friendly to relatively simple 2 dimensional models, since for the most part people care about the wind impacting the surface. So for that I've used raster files - xy grid is lat/lon, and you can encode a values per rgba channel, usually windspeed and central pressure, storm surge value if you have one, maybe surface friction at a point as well, I just use windspeed in these files (0). And rasters over time gives you animations, similar to this NHC product(1).

GeoJSON and Shapefiles in something like PostGIS is also viable for relatively small and simple things, like tracks or single 2D events, but once you start covering enough area or need to model in 3 dimensional grid, those more specialized file formats become more powerful.

0: https://www.odinseye.cloud/hurricane/2016/matthew2016/ 1: https://www.nhc.noaa.gov/archive/2023/HILARY_graphics.php

2 comments

Isn't modeling turbulence in two-dimensional completely different phenomena from (real-life) three-dimensional turbulence?

I thought this is why it's impossible to simplify turbulence models by 'ignoring a dimension'?

for taking a computational fluids approach, I think yes, you're largely correct. Hurricanes have a class of models that are parametric, where you can get a 2 dimensional wind footprint based on some initial conditions; primarily central pressure, size (radius of max wind), and location. These models rely on empirical measurements to get simpler. NWS 23 (0) is an old model, it's the one I've implemented before. But there's been more refined parametric models that have come out, and updates to older ones, for example the work by Holland (1) and Wiloughby (2). Take this with a grain of salt, since I'm no expert in this field.

(0) https://library.oarcloud.noaa.gov/noaa_documents.lib/NWS/TR_... (1) https://opensky.ucar.edu/islandora/object/articles%3A17282/d... (2) https://journals.ametsoc.org/view/journals/mwre/141/6/mwr-d-...

When you say you encode different values in rgba channels, are you actually saving the rasters as image files then?
The previous poster is likely referring to something like a GeoTIFF, which more or less accepts an arbitrary number of bands (matrices).
Yep, for my purposes I tend to use pngs for simplicity, but the next step would be GeoTIFF