Ignore:
Timestamp:
03/02/15 14:19:08 (9 years ago)
Author:
labetoulle
Message:

copy plots on dods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/ConsoGENCMIP6/bin/gencmip6.py

    r2420 r2421  
    66 
    77# standard library imports 
    8 # from argparse import ArgumentParser 
    98import socket 
    109import os 
    1110import os.path 
    1211import glob 
     12import shutil 
    1313import datetime as dt 
    1414import numpy as np 
    15 # import matplotlib.pyplot as plt 
    16 # from matplotlib.backends.backend_pdf import PdfPages 
     15 
     16# Application library imports 
     17from gencmip6_path import * 
     18 
     19 
     20######################################## 
     21def 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 
    1732 
    1833 
Note: See TracChangeset for help on using the changeset viewer.