From 4d010ff8a6e5d765efa949a042b69b4043a4b38d Mon Sep 17 00:00:00 2001 From: Ryan Torn Date: Fri, 29 Jul 2022 17:44:11 +0000 Subject: [PATCH] Modifying to get common code in other directories --- compute_tc_fields.py | 7 ++----- fcst_metrics_tc.py | 2 +- nhc_sens.py | 1 + run_NHC_sens.py | 1 + 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/compute_tc_fields.py b/compute_tc_fields.py index e3f34e9..966b86c 100644 --- a/compute_tc_fields.py +++ b/compute_tc_fields.py @@ -1,17 +1,14 @@ -import os +import os, sys import logging import json -import time import importlib -import math import netCDF4 as nc import numpy as np import datetime as dt -#from windspharm.standard import VectorWind -#from windspharm.tools import prep_data import metpy.constants as mpcon import metpy.calc as mpcalc from metpy.units import units + import surgery import grid_calc diff --git a/fcst_metrics_tc.py b/fcst_metrics_tc.py index fc7488e..09fa781 100644 --- a/fcst_metrics_tc.py +++ b/fcst_metrics_tc.py @@ -1,4 +1,4 @@ -import os +import os, sys import numpy as np import xarray as xr import json diff --git a/nhc_sens.py b/nhc_sens.py index 9deb538..bf60476 100644 --- a/nhc_sens.py +++ b/nhc_sens.py @@ -6,6 +6,7 @@ import numpy as np import datetime as dt import scipy.stats + from SensPlotRoutines import plotVecSens, plotScalarSens, computeSens, writeSensFile class ComputeSensitivity: diff --git a/run_NHC_sens.py b/run_NHC_sens.py index 3bfd7cf..11fdac3 100644 --- a/run_NHC_sens.py +++ b/run_NHC_sens.py @@ -16,6 +16,7 @@ import cartopy import cartopy.crs as ccrs +sys.path.append('../esens-util') import atcf_tools as atools import trop_cyclone as tc import fcst_metrics_tc as fmtc