-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feature_1581_api_p…
…oint_obs
- Loading branch information
Showing
896 changed files
with
1,529 additions
and
1,459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
Model Evaluation Tools (MET) TERMS OF USE - IMPORTANT! | ||
================================================================================ | ||
|
||
Copyright 2020, UCAR/NCAR, NOAA, and CSU/CIRA | ||
Copyright 2021, UCAR/NCAR, NOAA, and CSU/CIRA | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
You may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
@@ -20,8 +20,8 @@ This is the main directory for the Model Evaluation Tools source code release. | |
================================================================================ | ||
|
||
For questions, please: | ||
- Refer to the MET User's Guide in the /doc sub-directory. | ||
- Refer to the MET website: http://www.dtcenter.org/met/users | ||
- Refer to the MET User's Guide: https://met.readthedocs.io/en/latest | ||
- Refer to the MET website: http://dtcenter.org/community-code/model-evaluation-tools-met | ||
- Send mail to [email protected]. | ||
|
||
Dependencies | ||
|
@@ -52,7 +52,7 @@ Dependencies | |
|
||
- It is suggested that the following tools be used in conjunction with MET: | ||
- Unified Post-Processor | ||
- http://www.dtcenter.org/wrf-nmm/users | ||
- http://dtcenter.org/community-code/unified-post-processor-upp | ||
|
||
NOTE: The required libraries should be compiled with the same set of compilers | ||
to be used in compiling MET. | ||
|
@@ -63,7 +63,7 @@ How to compile and run? | |
For more detailed instructions on building MET and for a list of supported | ||
platforms and compilers, please refer to the MET User's Guide in the doc/ | ||
sub-directory, or the MET Online Tutorial: | ||
http://www.dtcenter.org/met/users/support/online_tutorial | ||
http://dtcenter.org/community-code/model-evaluation-tools-met/online-tutorial | ||
|
||
- Set the $CXX and $F77 environment variables to specify the C++ and FORTRAN | ||
compilers to be used. If not set, configure will search for compilers and the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.69]) | ||
AC_INIT([MET], [m4_esyscmd_s(echo ${MET_BUILD_VERSION:-8.1})], [[email protected]], [], [http://www.dtcenter.org/met/users]) | ||
AC_INIT([MET], [m4_esyscmd_s(echo ${MET_BUILD_VERSION:-development})], [[email protected]], [], [http://dtcenter.org/community-code/model-evaluation-tools-met]) | ||
AC_CONFIG_SRCDIR([src/tools/tc_utils/tc_dland/tc_dland.cc]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
|
@@ -1041,11 +1041,14 @@ CPPFLAGS=$CPPFLAGS' -DMET_BASE="\"$(pkgdatadir)\""' | |
|
||
AC_SUBST(FC_LIBS, [-lgfortran]) | ||
|
||
# The CXXFLAGS default to "-O2 -g". The optimization is causing | ||
# problems so just set it to "-g" if the user hasn't overridden it | ||
# themselves. | ||
# For GNU compilers, CFLAGS, CXXFLAGS, and FFLAGS default to "-O2 -g". | ||
# The CXXFLAGS "-O2" optimization has caused problems in the past. | ||
# For Intel compilers, "-g" slows down runtimes considerably (MET #1778). | ||
# For development, retain the "-g" option. Otherwise, discard it. | ||
|
||
: ${CXXFLAGS="-g"} | ||
AM_COND_IF([ENABLE_DEVELOPMENT], [: ${CFLAGS="-g -O2"}], [: ${CFLAGS="-O2"}]) | ||
AM_COND_IF([ENABLE_DEVELOPMENT], [: ${CXXFLAGS="-g"} ], [: ${CXXFLAGS=""}] ) | ||
AM_COND_IF([ENABLE_DEVELOPMENT], [: ${FFLAGS="-g -O2"}], [: ${FFLAGS="-O2"}]) | ||
|
||
# Checks for programs. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
met/data/wrappers/generic_python.py → met/data/wrappers/set_python_env.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
######################################################################## | ||
# | ||
# When MET_PYTHON_EXE is not defined, this script initializes | ||
# MET's python runtime environment. | ||
# This script initializes MET's python runtime environment. | ||
# | ||
######################################################################## | ||
|
||
import os | ||
import sys | ||
import numpy as np | ||
import pickle |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
######################################################################## | ||
# | ||
# Adapted from a script provided by George McCabe | ||
# Adapted by Randy Bullock | ||
# | ||
# usage: /path/to/python write_tmp_mpr.py \ | ||
# tmp_output_filename <user_python_script>.py <args> | ||
# | ||
######################################################################## | ||
|
||
import os | ||
import sys | ||
import importlib.util | ||
|
||
print("Python Script:\t" + repr(sys.argv[0])) | ||
print("User Command:\t" + repr(' '.join(sys.argv[2:]))) | ||
print("Temporary File:\t" + repr(sys.argv[1])) | ||
|
||
tmp_filename = sys.argv[1] | ||
pyembed_module_name = sys.argv[2] | ||
sys.argv = sys.argv[2:] | ||
|
||
# append user script dir to system path | ||
pyembed_dir, pyembed_file = os.path.split(pyembed_module_name) | ||
if pyembed_dir: | ||
sys.path.insert(0, pyembed_dir) | ||
|
||
if not pyembed_module_name.endswith('.py'): | ||
pyembed_module_name += '.py' | ||
|
||
user_base = os.path.basename(pyembed_module_name).replace('.py','') | ||
|
||
spec = importlib.util.spec_from_file_location(user_base, pyembed_module_name) | ||
met_in = importlib.util.module_from_spec(spec) | ||
spec.loader.exec_module(met_in) | ||
|
||
f = open(tmp_filename, 'w') | ||
for line in met_in.mpr_data: | ||
f.write(str(line) + '\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.