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

Last change on this file since 2779 was 2718, checked in by lfita, 6 years ago

Adding Lluis' MAIN

File size: 1.5 KB
RevLine 
[2393]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
[2691]14from optparse import OptionParser
[2393]15import numpy as np
16from netCDF4 import Dataset as NetCDFFile
17import os
18import re
[2691]19import subprocess as sub
[2393]20import numpy.ma as ma
[2691]21import matplotlib as mpl
22mpl.use('Agg')
23from matplotlib.pylab import *
24import matplotlib.pyplot as plt
25from mpl_toolkits.basemap import Basemap
26
[2692]27# Importing generic tools file 'generic_tools.py' and the others
[2393]28import generic_tools as gen
29import nc_var_tools as ncvar
[2692]30import drawing_tools as drw
31import diag_tools as diag
32import geometry_tools as geo
33
34# Importing Fortran modules and the others
[2393]35import module_ForDef as fdef
[2692]36import module_ForDiag as fdiag
[2393]37import module_ForGen as fgen
38import module_ForSci as fsci
39
[2691]40parser = OptionParser()
41parser.add_option("-x", "--Xx", dest="x", help="x", metavar="X")
42(opts, args) = parser.parse_args()
[2393]43
[2718]44#######    #######
45## MAIN
46    #######
[2691]47
[2718]48
[2393]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.