#!/usr/bin/env python # Wenchang Yang (wenchang@princeton.edu) # Wed Sep 18 21:10:30 EDT 2019 if __name__ == '__main__': from misc.timer import Timer _t = Timer(f'start {__file__}') from datetime import datetime import os.path, sys, os, glob #import matplotlib.pyplot as plt import xarray as xr, numpy as np, pandas as pd #import geoxarray from xlib.io import get_data if __name__ == '__main__': _t.check('end import') print() expnames = [ 'Pinatubo_PI_ens_noleap', 'Agung_PI_ens_noleap', 'StMaria_PI_ens_noleap', 'Chichon_PI_ens_noleap', ] #data_names = ['slp', 't_ref'][0:1] #data_names = ['HI'][0:1] #data_names = ['swdn_sfc', 'swup_sfc', 'lwdn_sfc', 'lwup_sfc' ] #data_names = ['swdn_sfc_clr', 'swup_sfc_clr', 'lwdn_sfc_clr', 'lwup_sfc_clr' ] data_names = ['shflx', 'evap'] odata_names = data_names # data name of output #data_tags = ['atmos_month', 'atmos_month', 'ice_month'][0:1] #data_tag = 'ice_month' data_tag = 'atmos_month' if __name__ == '__main__': for data_name, odata_name in zip(data_names, odata_names): for expname in expnames: print(expname, data_name, '-->', odata_name) get_data(expname, data_name=data_name, odata_name=odata_name, data_tag=data_tag) # the end _t.check(f'end {__file__}')