Changeset 2691 in lmdz_wrf for trunk/tools/__test.py__


Ignore:
Timestamp:
Aug 12, 2019, 5:08:34 PM (5 years ago)
Author:
lfita
Message:

Adding more options to make test.py as a full all-purpose test script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/__test.py__

    r2405 r2691  
    1212####### ####### ##### ##### #### ### ## #
    1313
     14from optparse import OptionParser
    1415import numpy as np
    1516from netCDF4 import Dataset as NetCDFFile
    1617import os
    1718import re
     19import subprocess as sub
    1820import numpy.ma as ma
     21import matplotlib as mpl
     22mpl.use('Agg')
     23from matplotlib.pylab import *
     24import matplotlib.pyplot as plt
     25from mpl_toolkits.basemap import Basemap
     26
    1927# Importing generic tools file 'generic_tools.py'
    2028import generic_tools as gen
    21 import subprocess as sub
    2229import nc_var_tools as ncvar
    2330import module_ForDef as fdef
     
    2532import module_ForGen as fgen
    2633import module_ForSci as fsci
     34
     35parser = OptionParser()
     36parser.add_option("-x", "--Xx", dest="x", help="x", metavar="X")
     37(opts, args) = parser.parse_args()
    2738
    2839
Note: See TracChangeset for help on using the changeset viewer.