Changeset 4165 for dynamico_lmdz/guided/Data
- Timestamp:
- Nov 5, 2019, 6:05:11 PM (5 years ago)
- Location:
- dynamico_lmdz/guided/Data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/guided/Data/vertical_interpolation.py
r4146 r4165 1 1 from __future__ import division 2 import argparse3 2 import numpy as np 4 3 from netCDF4 import Dataset 5 import matplotlib.pyplot as plt6 from mpl_toolkits.basemap import Basemap7 import matplotlib.mlab as mlab8 import matplotlib.colors9 import sys10 import os11 4 import math 12 5 from scipy.interpolate import interp1d 13 from matplotlib.ticker import AutoMinorLocator14 6 import netCDF4 as cdf 15 7 16 dw1 = Dataset(' output_dcmip2016_regular_30days_d1.nc','r')8 dw1 = Dataset('../Experiments/LOWRES_DCMIP41/netcdf/output_dcmip2016_regular.nc','r') 17 9 dtfull = dw1.variables['T'][:,:,:,:] 18 10 dpfull = dw1.variables['P'][:,:,:,:] … … 60 52 #sys.exit(0) 61 53 try: 62 f = cdf.Dataset(' interpolated_data.nc', 'w', format='NETCDF4')54 f = cdf.Dataset('DYNAMICO.nc', 'w', format='NETCDF4') 63 55 except: 64 56 print("Error occurred while opening new netCDF file, Error: ", sys.exc_info()[0]) -
dynamico_lmdz/guided/Data/vertical_interpolation_camelot.py
r4163 r4165 78 78 print(out3) 79 79 try: 80 f = cdf.Dataset(' interpolated_data.nc', 'w', format='NETCDF4')80 f = cdf.Dataset('ERA4.nc', 'w', format='NETCDF4') 81 81 except: 82 82 print("Error occurred while opening new netCDF file, Error: ", sys.exc_info()[0])
Note: See TracChangeset
for help on using the changeset viewer.