ATMI - Atmospheric Impact Simulation
|
Generator of the am configuration file for the real data (specific dates). More...
Namespaces | |
namespace | amdaterun |
Variables | |
args = f.readlines() | |
conf_file = sys.argv[1] | |
Reading the configuration file. | |
d | |
data = netCDFutils.data(datafiles[i]) | |
list | data_loc_time = datas[0].dataset.sel(time=dates, longitude=lon, latitude=lat, method='nearest') |
datafiles = datafiles.split(',') | |
list | datas = [] |
Initializing the realizations. | |
str | date = str(y)+'_'+str(m)+'_'+str(d)+'_'+str(h) |
list | dates = [] |
dates_df = pd.read_csv(dates_file, names=['Year','Month','Day','Hour']) | |
dates_file | |
desc | |
DIR = file.readline().strip('\n') | |
file = open(DIR+'/am/config/'+filename+'.txt', 'w') | |
Saving all the configuration files. | |
filename | |
final_dates = np.array(final_dates) | |
freq_interval | |
freq_start | |
freq_stop | |
h | |
lat | |
lon | |
m | |
N = int(N) | |
names = data.variables() | |
P | |
P0 | |
paramsfile | |
PWV | |
pwv | |
realizations = pd.DataFrame(variables) | |
starting_dates = np.array(starting_dates) | |
T | |
T0 | |
var = var.split(',') | |
dict | variables |
y | |
list | ymdh = [dates_df['Year'][i], dates_df['Month'][i], dates_df['Day'][i], dates_df['Hour'][i]] |
Z | |
Generator of the am configuration file for the real data (specific dates).
Python script necessary to calculate the vertical profiles of the atmospheric real data and write the am configuration file (specific dates only).
The file is located under atmi/src.