NCAR / icar

The Intermediate Complexity Atmospheric Research model (ICAR)
MIT License
73 stars 53 forks source link

Minor update to geo_reader and adds a wrf2icar helper script #46

Closed gutmann closed 6 years ago

gutmann commented 6 years ago

Relaxes precision on geo_reader's point in poly test so a point only has to fall within one meter of a polygon to count as being "in" the polygon. This was causing problems with an edge case in which the point fell on a line, but due to numerical precision issues (order of operations dependent) it didn't appear to be in the polygons on either side of the line.

Also adds a wrf2icar script that can be used to convert WRF output (or metgrid output) files into icar input files. Note this script depends on NCO, has hardcoded variable names (WRF's current standard names). This could be cleaned up, but it meant to provide a starting point for any other interested parties.