Last change
on this file since 2404 was
2393,
checked in by lfita, 6 years ago
|
Solving tree conflict with test.py
|
File size:
1.1 KB
|
Rev | Line | |
---|
[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 | |
---|
| 14 | import numpy as np |
---|
| 15 | from netCDF4 import Dataset as NetCDFFile |
---|
| 16 | import os |
---|
| 17 | import re |
---|
| 18 | import numpy.ma as ma |
---|
| 19 | # Importing generic tools file 'generic_tools.py' |
---|
| 20 | import generic_tools as gen |
---|
| 21 | import subprocess as sub |
---|
| 22 | import nc_var_tools as ncvar |
---|
| 23 | import module_ForDef as fdef |
---|
| 24 | import module_ForDiag as fdiag |
---|
| 25 | import module_ForGen as fgen |
---|
| 26 | import module_ForSci as fsci |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | # Testing Fortran tws |
---|
| 30 | print fdiag.module_fordiagnosticsvars.var_tws_s11.__doc__ |
---|
| 31 | t = 20. + 273.15 |
---|
| 32 | hur = 0.5 |
---|
| 33 | print fdiag.module_fordiagnosticsvars.var_tws_s11(t, hur) |
---|
| 34 | |
---|
| 35 | quit() |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | #quit() |
---|
| 39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.