Changeset 2421 for TOOLS/ConsoGENCMIP6/bin/gencmip6.py
- Timestamp:
- 03/02/15 14:19:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/ConsoGENCMIP6/bin/gencmip6.py
r2420 r2421 6 6 7 7 # standard library imports 8 # from argparse import ArgumentParser9 8 import socket 10 9 import os 11 10 import os.path 12 11 import glob 12 import shutil 13 13 import datetime as dt 14 14 import numpy as np 15 # import matplotlib.pyplot as plt 16 # from matplotlib.backends.backend_pdf import PdfPages 15 16 # Application library imports 17 from gencmip6_path import * 18 19 20 ######################################## 21 def dods_cp(filein): 22 """ 23 """ 24 if not DIR["DODS"]: 25 print("DODS directory not defined") 26 return 27 28 fileout = os.path.join(DIR["DODS"], os.path.basename(filein)) 29 shutil.copy(filein, fileout) 30 31 return 17 32 18 33
Note: See TracChangeset
for help on using the changeset viewer.