source: lmdz_wrf/trunk/tools/__test.py__ @ 2831

Last change on this file since 2831 was 2718, checked in by lfita, 5 years ago

Adding Lluis' MAIN

File size: 1.5 KB
Line 
1# PyNCplot
2# Python to manage netCDF files.
3# From L. Fita work in different places: CCRC (Australia), LMD (France)
4# More information at: http://www.xn--llusfb-5va.cat/python/PyNCplot
5#
6# pyNCplot and its component nc_var.py comes with ABSOLUTELY NO WARRANTY.
7# This work is licendes under a Creative Commons
8#   Attribution-ShareAlike 4.0 International License (http://creativecommons.org/licenses/by-sa/4.0)
9#
10## Python script to indepdententy test different components
11## L. Fita, CIMA.
12####### ####### ##### ##### #### ### ## #
13
14from optparse import OptionParser
15import numpy as np
16from netCDF4 import Dataset as NetCDFFile
17import os
18import re
19import subprocess as sub
20import 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
27# Importing generic tools file 'generic_tools.py' and the others
28import generic_tools as gen
29import nc_var_tools as ncvar
30import drawing_tools as drw
31import diag_tools as diag
32import geometry_tools as geo
33
34# Importing Fortran modules and the others
35import module_ForDef as fdef
36import module_ForDiag as fdiag
37import module_ForGen as fgen
38import module_ForSci as fsci
39
40parser = OptionParser()
41parser.add_option("-x", "--Xx", dest="x", help="x", metavar="X")
42(opts, args) = parser.parse_args()
43
44#######    #######
45## MAIN
46    #######
47
48
49# Testing Fortran tws
50print fdiag.module_fordiagnosticsvars.var_tws_s11.__doc__
51t = 20. + 273.15
52hur = 0.5
53print fdiag.module_fordiagnosticsvars.var_tws_s11(t, hur)
54
55quit()
56
57
58#quit()
59
Note: See TracBrowser for help on using the repository browser.