Changeset 64cf353 in flex_extract.git for python/UIOTools.py
- Timestamp:
- Feb 8, 2018, 9:54:05 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 02c8c50
- Parents:
- 6180177
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/UIOTools.py
r6180177 r64cf353 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 1 3 #************************************************************************ 2 4 # TODO AP 3 # 5 #AP 4 6 # - File name und Klassenname gleichsetzen? 5 7 # - checken welche regelmässigen methoden auf diese Files noch angewendet werden … … 13 15 14 16 @ChangeHistory: 15 Anne Philipp (University of Vienna) - February 2018: 16 Added documentation and applied pep8 style guides 17 February 2018 - Anne Philipp (University of Vienna): 18 - applied PEP8 style guide 19 - added documentation 17 20 18 21 @License: … … 21 24 This software is licensed under the terms of the Apache Licence Version 2.0 22 25 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 26 27 @Requirements: 28 - A standard python 2.6 or 2.7 installation 29 - dateutils 30 - matplotlib (optional, for debugging) 31 - ECMWF specific packages, all available from https://software.ecmwf.int/ 32 ECMWF WebMARS, gribAPI with python enabled, emoslib and 33 ecaccess web toolkit 34 35 @Description: 36 Further documentation may be obtained from www.flexpart.eu. 37 38 Functionality provided: 39 Prepare input 3D-wind fields in hybrid coordinates + 40 surface fields for FLEXPART runs 23 41 """ 24 25 26 42 # ------------------------------------------------------------------------------ 27 43 # MODULES … … 54 70 suffix: list of strings 55 71 Types of files to manipulate such as 56 [' .grib', 'grb', 'grib1', 'grib2', 'grb1','grb2']72 ['grib', 'grb', 'grib1', 'grib2', 'grb1', 'grb2'] 57 73 58 74 @Return: … … 83 99 <nothing> 84 100 ''' 101 #AP pathname zu path ändern 102 #AP is it possible for each possible file extension ? mabye regexx? 85 103 # Get the absolute path of the pathname parameter 86 104 pathname = os.path.abspath(pathname)
Note: See TracChangeset
for help on using the changeset viewer.