Ignore:
Timestamp:
Nov 5, 2019, 6:05:11 PM (5 years ago)
Author:
jisesh
Message:

guided: Improved data generation scripts

Location:
dynamico_lmdz/guided/Data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/guided/Data/vertical_interpolation.py

    r4146 r4165  
    11from __future__ import division
    2 import argparse
    32import numpy as np
    43from netCDF4 import Dataset
    5 import matplotlib.pyplot as plt
    6 from mpl_toolkits.basemap import Basemap
    7 import matplotlib.mlab as mlab
    8 import matplotlib.colors
    9 import sys
    10 import os
    114import math
    125from scipy.interpolate import interp1d
    13 from matplotlib.ticker import AutoMinorLocator
    146import netCDF4 as cdf
    157
    16 dw1 = Dataset('output_dcmip2016_regular_30days_d1.nc','r')
     8dw1 = Dataset('../Experiments/LOWRES_DCMIP41/netcdf/output_dcmip2016_regular.nc','r')
    179dtfull = dw1.variables['T'][:,:,:,:]
    1810dpfull = dw1.variables['P'][:,:,:,:]
     
    6052#sys.exit(0)
    6153try:
    62     f = cdf.Dataset('interpolated_data.nc', 'w', format='NETCDF4')
     54    f = cdf.Dataset('DYNAMICO.nc', 'w', format='NETCDF4')
    6355except:
    6456    print("Error occurred while opening new netCDF file, Error: ", sys.exc_info()[0])
  • dynamico_lmdz/guided/Data/vertical_interpolation_camelot.py

    r4163 r4165  
    7878print(out3)
    7979try:
    80     f = cdf.Dataset('interpolated_data.nc', 'w', format='NETCDF4')
     80    f = cdf.Dataset('ERA4.nc', 'w', format='NETCDF4')
    8181except:
    8282    print("Error occurred while opening new netCDF file, Error: ", sys.exc_info()[0])
Note: See TracChangeset for help on using the changeset viewer.