# PyNCplot # Python to manage netCDF files. # From L. Fita work in different places: CCRC (Australia), LMD (France) # More information at: http://www.xn--llusfb-5va.cat/python/PyNCplot # # pyNCplot and its component nc_var.py comes with ABSOLUTELY NO WARRANTY. # This work is licendes under a Creative Commons # Attribution-ShareAlike 4.0 International License (http://creativecommons.org/licenses/by-sa/4.0) # ## Python script to indepdententy test different components ## L. Fita, CIMA. ####### ####### ##### ##### #### ### ## # from optparse import OptionParser import numpy as np from netCDF4 import Dataset as NetCDFFile import os import re import subprocess as sub import numpy.ma as ma import matplotlib as mpl mpl.use('Agg') from matplotlib.pylab import * import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap # Importing generic tools file 'generic_tools.py' and the others import generic_tools as gen import nc_var_tools as ncvar import drawing_tools as drw import diag_tools as diag import geometry_tools as geo # Importing Fortran modules and the others import module_ForDef as fdef import module_ForDiag as fdiag import module_ForGen as fgen import module_ForSci as fsci parser = OptionParser() parser.add_option("-x", "--Xx", dest="x", help="x", metavar="X") (opts, args) = parser.parse_args() ####### ####### ## MAIN ####### # Testing Fortran tws print fdiag.module_fordiagnosticsvars.var_tws_s11.__doc__ t = 20. + 273.15 hur = 0.5 print fdiag.module_fordiagnosticsvars.var_tws_s11(t, hur) quit() #quit()