From 63505970a974a5dffc9cd6d99ef4aab17e40cd88 Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Wed, 4 Oct 2023 16:15:14 -0600 Subject: [PATCH] Per #2550, add scripts/python/tc_diag/config directory and stash the python diagnostics config files there. --- configure.ac | 1 + scripts/python/tc_diag/atcf_tools/.gitignore | 1 + scripts/python/tc_diag/config/Makefile.am | 33 ++ scripts/python/tc_diag/config/Makefile.in | 524 ++++++++++++++++++ .../python/tc_diag/config/post_resample.yml | 58 ++ .../tc_diag/config/post_resample_nest.yml | 58 ++ scripts/python/tc_diag/diag_lib/.gitignore | 1 + 7 files changed, 676 insertions(+) create mode 100644 scripts/python/tc_diag/atcf_tools/.gitignore create mode 100644 scripts/python/tc_diag/config/Makefile.am create mode 100644 scripts/python/tc_diag/config/Makefile.in create mode 100644 scripts/python/tc_diag/config/post_resample.yml create mode 100644 scripts/python/tc_diag/config/post_resample_nest.yml create mode 100644 scripts/python/tc_diag/diag_lib/.gitignore diff --git a/configure.ac b/configure.ac index 945e7e281f..f365e43fb1 100644 --- a/configure.ac +++ b/configure.ac @@ -1171,6 +1171,7 @@ AC_CONFIG_FILES([Makefile scripts/python/utility/Makefile scripts/python/tc_diag/Makefile scripts/python/tc_diag/atcf_tools/Makefile + scripts/python/tc_diag/config/Makefile scripts/python/tc_diag/diag_lib/Makefile scripts/python/tc_diag/tc_diag_driver/Makefile data/Makefile diff --git a/scripts/python/tc_diag/atcf_tools/.gitignore b/scripts/python/tc_diag/atcf_tools/.gitignore new file mode 100644 index 0000000000..bee8a64b79 --- /dev/null +++ b/scripts/python/tc_diag/atcf_tools/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/scripts/python/tc_diag/config/Makefile.am b/scripts/python/tc_diag/config/Makefile.am new file mode 100644 index 0000000000..f2699ab6d3 --- /dev/null +++ b/scripts/python/tc_diag/config/Makefile.am @@ -0,0 +1,33 @@ +## Makefile.am -- Process this file with automake to produce Makefile.in +## Copyright (C) 2000, 2006 Gary V. Vaughan +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +## MA 02110-1301, USA. + +# SUBDIRS = include + +## Example of how to Install outside of $(pkgdatadir) +## scriptsrootdir = $(prefix)/share/scripts +## pythonutilitydir = ${scriptsrootdir}/utility + +tcdiagconfigdir = $(pkgdatadir)/python/tc_diag/config + +tcdiagconfig_DATA = \ + post_resample.yml \ + post_resample_nest.yml + +EXTRA_DIST = ${tcdiagconfig_DATA} + +MAINTAINERCLEANFILES = Makefile.in diff --git a/scripts/python/tc_diag/config/Makefile.in b/scripts/python/tc_diag/config/Makefile.in new file mode 100644 index 0000000000..372f80f077 --- /dev/null +++ b/scripts/python/tc_diag/config/Makefile.in @@ -0,0 +1,524 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# SUBDIRS = include + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = scripts/python/tc_diag/config +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(tcdiagconfigdir)" +DATA = $(tcdiagconfig_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BUFRLIB_NAME = @BUFRLIB_NAME@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FC_LIBS = @FC_LIBS@ +FFLAGS = @FFLAGS@ +FLIBS = @FLIBS@ +GRIB2CLIB_NAME = @GRIB2CLIB_NAME@ +GRIB2_LIBS = @GRIB2_LIBS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LEX = @LEX@ +LEXLIB = @LEXLIB@ +LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MET_BUFR = @MET_BUFR@ +MET_BUFRLIB = @MET_BUFRLIB@ +MET_CAIRO = @MET_CAIRO@ +MET_CAIROINC = @MET_CAIROINC@ +MET_CAIROLIB = @MET_CAIROLIB@ +MET_FREETYPE = @MET_FREETYPE@ +MET_FREETYPEINC = @MET_FREETYPEINC@ +MET_FREETYPELIB = @MET_FREETYPELIB@ +MET_GRIB2C = @MET_GRIB2C@ +MET_GRIB2CINC = @MET_GRIB2CINC@ +MET_GRIB2CLIB = @MET_GRIB2CLIB@ +MET_GSL = @MET_GSL@ +MET_GSLINC = @MET_GSLINC@ +MET_GSLLIB = @MET_GSLLIB@ +MET_HDF = @MET_HDF@ +MET_HDF5 = @MET_HDF5@ +MET_HDF5INC = @MET_HDF5INC@ +MET_HDF5LIB = @MET_HDF5LIB@ +MET_HDFEOS = @MET_HDFEOS@ +MET_HDFEOSINC = @MET_HDFEOSINC@ +MET_HDFEOSLIB = @MET_HDFEOSLIB@ +MET_HDFINC = @MET_HDFINC@ +MET_HDFLIB = @MET_HDFLIB@ +MET_NETCDF = @MET_NETCDF@ +MET_NETCDFINC = @MET_NETCDFINC@ +MET_NETCDFLIB = @MET_NETCDFLIB@ +MET_PROJ = @MET_PROJ@ +MET_PROJINC = @MET_PROJINC@ +MET_PROJLIB = @MET_PROJLIB@ +MET_PYTHON_BIN_EXE = @MET_PYTHON_BIN_EXE@ +MET_PYTHON_CC = @MET_PYTHON_CC@ +MET_PYTHON_LD = @MET_PYTHON_LD@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +OPENMP_CFLAGS = @OPENMP_CFLAGS@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PYTHON_LIBS = @PYTHON_LIBS@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +YACC = @YACC@ +YFLAGS = @YFLAGS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +tcdiagconfigdir = $(pkgdatadir)/python/tc_diag/config +atcftools_DATA = \ + post_resample.yml \ + post_resample_nest.yml + +EXTRA_DIST = ${tcdiagconfig_DATA} +MAINTAINERCLEANFILES = Makefile.in +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/python/tc_diag/config/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign scripts/python/tc_diag/config/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-atcftoolsDATA: $(atcftools_DATA) + @$(NORMAL_INSTALL) + @list='$(atcftools_DATA)'; test -n "$(atcftoolsdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(atcftoolsdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(atcftoolsdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(atcftoolsdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(atcftoolsdir)" || exit $$?; \ + done + +uninstall-atcftoolsDATA: + @$(NORMAL_UNINSTALL) + @list='$(atcftools_DATA)'; test -n "$(atcftoolsdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(atcftoolsdir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(atcftoolsdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-atcftoolsDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-atcftoolsDATA + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic cscopelist-am \ + ctags-am distclean distclean-generic distdir dvi dvi-am html \ + html-am info info-am install install-am install-atcftoolsDATA \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am tags-am uninstall uninstall-am \ + uninstall-atcftoolsDATA + +.PRECIOUS: Makefile + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/scripts/python/tc_diag/config/post_resample.yml b/scripts/python/tc_diag/config/post_resample.yml new file mode 100644 index 0000000000..18a01632ae --- /dev/null +++ b/scripts/python/tc_diag/config/post_resample.yml @@ -0,0 +1,58 @@ +land_lut_file: /Volumes/d1/projects/MET/MET_development/MET-feature_2550_compute_diagnostics/data/tc_data/v2023-04-07_gdland_table.dat +in_forecast_time_name: lead_time +in_levels_name: &in_levels_name pressure +in_radii_name: range +in_azimuth_name: azimuth +lon_input_name: TrackLon +lat_input_name: TrackLat +full_track_line_name: TrackLines +init_time_name: init_time +init_time_format: "%Y%m%d_%H%M%S" + +kwarg_lookup_func: &kwarg_lookup_func tc_diag_driver.met_diag_vars.kwarg_lookup +input_lookup_func: &ds_input_lookup_func tc_diag_driver.met_diag_vars.dataset_lookup +area_avg_func: &area_avg_func tc_diag_driver.met_diag_vars.area_average +rad_tan_aavg_func: &rad_tan_aavg_func tc_diag_driver.met_diag_vars.radial_and_tangential_area_average +div_vort_func: &div_vort_func tc_diag_driver.met_diag_vars.div_vort + +u_surf_name: &u_surf_name UGRD_Z10 +v_surf_name: &v_surf_name VGRD_Z10 +u_vert_name: &u_vert_name UGRD +v_vert_name: &v_vert_name VGRD + +wind_min_km: &wind_min_km 0 +wind_max_km: &wind_max_km 500 +therm_min_km: &therm_min_km 200 +therm_max_km: &therm_max_km 800 + + +pressure_independent_computation_specs: + lat: {callable: *kwarg_lookup_func, kwargs: {lookup_name: lat}} + lon: {callable: *kwarg_lookup_func, kwargs: {lookup_name: lon}} + vmax: {callable: *ds_input_lookup_func, kwargs: {var_name: TrackVMax}} + min_slp: {callable: *ds_input_lookup_func, kwargs: {var_name: TrackMSLP}} + rmw: {callable: tc_diag_driver.met_diag_vars.average_rmw, kwargs: {u_surface_name: *u_surf_name, v_surface_name: *v_surf_name, radius_km: 500}} + t_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: TMP_Z2}} + r_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: RH_Z2}} + p_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: PRMSL_Z0}} + u_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *u_surf_name}} + v_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *v_surf_name}} + tpw: {callable: *area_avg_func, kwargs: {min_radius_km: 0, max_radius_km: 200, var_name: PWAT_L0}} + sst: {callable: *area_avg_func, kwargs: {min_radius_km: 0, max_radius_km: 50, var_name: TMP_Z0}} + ohc: {callable: tc_diag_driver.diag_vars.always_missing, units: kJ/cm2} + land: {callable: tc_diag_driver.met_diag_vars.distance_to_land_lookup} + storm_r_theta: {callable: tc_diag_driver.met_diag_vars.storm_r_theta, output_vars: [stm_spd, stm_hdg]} + rad_tan_area_avg: {callable: *rad_tan_aavg_func, output_vars: [850radial, 850tang], kwargs: {u_name: *u_vert_name, v_name: *v_vert_name, level_hPa: 850, min_radius_km: 0, max_radius_km: 600}} + div_vort_850: {callable: *div_vort_func, output_vars: [850dvrg, 850vort], kwargs: {u_name: *u_vert_name, v_name: *v_vert_name, level_hPa: 850, radius_km: 1000}} + div_vort_200: {callable: *div_vort_func, output_vars: [200dvrg, 200vort], kwargs: {u_name: *u_vert_name, v_name: *v_vert_name, level_hPa: 200, radius_km: 1000}} + + shear: {batch_order: 1, callable: tc_diag_driver.met_diag_vars.shear, output_vars: [shr_mag, shr_hdg], kwargs: {u_name: u, v_name: v, bottom_hPa: 850, top_hPa: 200}} + tgrd: {batch_order: 1, callable: tc_diag_driver.met_diag_vars.temperature_gradient, kwargs: {u_name: u, v_name: v, bottom_hPa: 850, top_hPa: 700}} + + +sounding_computation_specs: + u: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *u_vert_name, levels_dimen: *in_levels_name}} + v: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *v_vert_name, levels_dimen: *in_levels_name}} + t: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: TMP, levels_dimen: *in_levels_name}} + r: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: RH, levels_dimen: *in_levels_name}} + z: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: HGT, levels_dimen: *in_levels_name}} diff --git a/scripts/python/tc_diag/config/post_resample_nest.yml b/scripts/python/tc_diag/config/post_resample_nest.yml new file mode 100644 index 0000000000..3c39d131a4 --- /dev/null +++ b/scripts/python/tc_diag/config/post_resample_nest.yml @@ -0,0 +1,58 @@ +land_lut_file: /Volumes/d1/projects/MET/MET_development/MET-feature_2550_compute_diagnostics/data/tc_data/v2023-04-07_gdland_table.dat +in_forecast_time_name: lead_time +in_levels_name: &in_levels_name pressure +in_radii_name: range +in_azimuth_name: azimuth +lon_input_name: TrackLon +lat_input_name: TrackLat +full_track_line_name: TrackLines +init_time_name: init_time +init_time_format: "%Y%m%d_%H%M%S" + +kwarg_lookup_func: &kwarg_lookup_func tc_diag_driver.met_diag_vars.kwarg_lookup +input_lookup_func: &ds_input_lookup_func tc_diag_driver.met_diag_vars.dataset_lookup +area_avg_func: &area_avg_func tc_diag_driver.met_diag_vars.area_average +rad_tan_aavg_func: &rad_tan_aavg_func tc_diag_driver.met_diag_vars.radial_and_tangential_area_average +div_vort_func: &div_vort_func tc_diag_driver.met_diag_vars.div_vort + +u_surf_name: &u_surf_name UGRD_Z10 +v_surf_name: &v_surf_name VGRD_Z10 +u_vert_name: &u_vert_name UGRD +v_vert_name: &v_vert_name VGRD + +wind_min_km: &wind_min_km 0 +wind_max_km: &wind_max_km 200 +therm_min_km: &therm_min_km 0 +therm_max_km: &therm_max_km 200 + + +pressure_independent_computation_specs: + lat: {callable: *kwarg_lookup_func, kwargs: {lookup_name: lat}} + lon: {callable: *kwarg_lookup_func, kwargs: {lookup_name: lon}} + vmax: {callable: *ds_input_lookup_func, kwargs: {var_name: TrackVMax}} + min_slp: {callable: *ds_input_lookup_func, kwargs: {var_name: TrackMSLP}} + rmw: {callable: tc_diag_driver.met_diag_vars.average_rmw, kwargs: {u_surface_name: *u_surf_name, v_surface_name: *v_surf_name, radius_km: 200}} + t_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: TMP_Z2}} + r_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: RH_Z2}} + p_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: PRMSL_Z0}} + u_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *u_surf_name}} + v_surf: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *v_surf_name}} + tpw: {callable: *area_avg_func, kwargs: {min_radius_km: 0, max_radius_km: 200, var_name: PWAT_L0}} + sst: {callable: *area_avg_func, kwargs: {min_radius_km: 0, max_radius_km: 50, var_name: TMP_Z0}} + ohc: {callable: tc_diag_driver.diag_vars.always_missing, units: kJ/cm2} + land: {callable: tc_diag_driver.met_diag_vars.distance_to_land_lookup} + storm_r_theta: {callable: tc_diag_driver.met_diag_vars.storm_r_theta, output_vars: [stm_spd, stm_hdg]} + rad_tan_area_avg: {callable: *rad_tan_aavg_func, output_vars: [850radial, 850tang], kwargs: {u_name: *u_vert_name, v_name: *v_vert_name, level_hPa: 850, min_radius_km: 0, max_radius_km: 200}} + div_vort_850: {callable: *div_vort_func, output_vars: [850dvrg, 850vort], kwargs: {u_name: *u_vert_name, v_name: *v_vert_name, level_hPa: 850, radius_km: 200}} + div_vort_200: {callable: *div_vort_func, output_vars: [200dvrg, 200vort], kwargs: {u_name: *u_vert_name, v_name: *v_vert_name, level_hPa: 200, radius_km: 200}} + + shear: {batch_order: 1, callable: tc_diag_driver.met_diag_vars.shear, output_vars: [shr_mag, shr_hdg], kwargs: {u_name: u, v_name: v, bottom_hPa: 850, top_hPa: 200}} + tgrd: {batch_order: 1, callable: tc_diag_driver.met_diag_vars.temperature_gradient, kwargs: {u_name: u, v_name: v, bottom_hPa: 850, top_hPa: 700}} + + +sounding_computation_specs: + u: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *u_vert_name, levels_dimen: *in_levels_name}} + v: {callable: *area_avg_func, kwargs: {min_radius_km: *wind_min_km, max_radius_km: *wind_max_km, var_name: *v_vert_name, levels_dimen: *in_levels_name}} + t: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: TMP, levels_dimen: *in_levels_name}} + r: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: RH, levels_dimen: *in_levels_name}} + z: {callable: *area_avg_func, kwargs: {min_radius_km: *therm_min_km, max_radius_km: *therm_max_km, var_name: HGT, levels_dimen: *in_levels_name}} diff --git a/scripts/python/tc_diag/diag_lib/.gitignore b/scripts/python/tc_diag/diag_lib/.gitignore new file mode 100644 index 0000000000..bee8a64b79 --- /dev/null +++ b/scripts/python/tc_diag/diag_lib/.gitignore @@ -0,0 +1 @@ +__pycache__