Skip to content

Commit

Permalink
Merge branch 'wrf_to_kmz'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagenbrenner committed Aug 19, 2024
2 parents a375f6c + 02633a4 commit 7de0caf
Show file tree
Hide file tree
Showing 9 changed files with 1,693 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ endif(NOT WIN32)
option(BUILD_FETCH_DEM "Build a standalone command line interface DEM utility" OFF)
option(BUILD_STL_CONVERTER "Build a standalone command line interface for STL file conversions" OFF )
option(BUILD_CONVERT_OUTPUT "Build a standalone command line interface for xyz file conversions" OFF )
option(BUILD_WRF_TO_KMZ "Build a standalone command line interface for converting WRF output to kmz" OFF )
mark_as_advanced(BUILD_WRF_TO_KMZ)
option(BUILD_HRRR_TO_KMZ "Build a standalone command line interface for converting hrrr output runs to kmz, without running full WindNinja" OFF )
mark_as_advanced(BUILD_HRRR_TO_KMZ)
option(BUILD_SLOPE_ASPECT_GRID "Build an application for building slope and aspect grids from a dem" OFF)
mark_as_advanced(BUILD_SLOPE_ASPECT_GRID)
option(BUILD_SOLAR_GRID "Build a application for building solar grids" OFF)
Expand Down
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ endif(BUILD_STL_CONVERTER)
if(BUILD_CONVERT_OUTPUT)
add_subdirectory(output_converter)
endif(BUILD_CONVERT_OUTPUT)
if(BUILD_WRF_TO_KMZ)
add_subdirectory(wrf_to_kmz)
endif(BUILD_WRF_TO_KMZ)
if(BUILD_HRRR_TO_KMZ)
add_subdirectory(hrrr_to_kmz)
endif(BUILD_HRRR_TO_KMZ)
48 changes: 48 additions & 0 deletions src/hrrr_to_kmz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# THIS SOFTWARE WAS DEVELOPED AT THE ROCKY MOUNTAIN RESEARCH STATION (RMRS)
# MISSOULA FIRE SCIENCES LABORATORY BY EMPLOYEES OF THE FEDERAL GOVERNMENT
# IN THE COURSE OF THEIR OFFICIAL DUTIES. PURSUANT TO TITLE 17 SECTION 105
# OF THE UNITED STATES CODE, THIS SOFTWARE IS NOT SUBJECT TO COPYRIGHT
# PROTECTION AND IS IN THE PUBLIC DOMAIN. RMRS MISSOULA FIRE SCIENCES
# LABORATORY ASSUMES NO RESPONSIBILITY WHATSOEVER FOR ITS USE BY OTHER
# PARTIES, AND MAKES NO GUARANTEES, EXPRESSED OR IMPLIED, ABOUT ITS QUALITY,
# RELIABILITY, OR ANY OTHER CHARACTERISTIC.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

cmake_minimum_required(VERSION 2.6)

include_directories(${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/src/ninja
${Boost_INCLUDE_DIRS}
${GDAL_SYSTEM_INCLUDE} ${GDAL_INCLUDE_DIR})

set(LINK_LIBS ${GDAL_LIBRARY}
${Boost_LIBRARIES})

set(HRRR_TO_KMZ_SRC hrrr_to_kmz.cpp

${PROJECT_SOURCE_DIR}/src/ninja/Array2D.cpp
${PROJECT_SOURCE_DIR}/src/ninja/ascii_grid.cpp
${PROJECT_SOURCE_DIR}/src/ninja/EasyBMP.cpp
${PROJECT_SOURCE_DIR}/src/ninja/EasyBMP_Geometry.cpp
${PROJECT_SOURCE_DIR}/src/ninja/EasyBMP_Font.cpp
${PROJECT_SOURCE_DIR}/src/ninja/ninja_conv.cpp
${PROJECT_SOURCE_DIR}/src/ninja/ninja_init.cpp
${PROJECT_SOURCE_DIR}/src/ninja/gdal_util.cpp
${PROJECT_SOURCE_DIR}/src/ninja/KmlVector.cpp
${PROJECT_SOURCE_DIR}/src/ninja/Style.cpp
${PROJECT_SOURCE_DIR}/src/ninja/LineStyle.cpp
${PROJECT_SOURCE_DIR}/src/ninja/ninjaMathUtility.cpp
${PROJECT_SOURCE_DIR}/src/ninja/ninjaUnits.cpp)

add_executable(hrrr_to_kmz ${HRRR_TO_KMZ_SRC})
target_link_libraries(hrrr_to_kmz ${LINK_LIBS})

install(TARGETS hrrr_to_kmz DESTINATION bin COMPONENT apps)

Loading

0 comments on commit 7de0caf

Please sign in to comment.