Changeset 44174de in flex_extract.git
- Timestamp:
- Jul 30, 2019, 8:30:21 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 8c1d175
- Parents:
- 8463d78
- Location:
- Source/Python
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/Classes/ControlFile.py
r8463d78 r44174de 24 24 # Anne Philipp, Leopold Haimberger 25 25 # 26 # SPDX-License-Identifier: CC-BY-4.0 27 # 26 28 # This work is licensed under the Creative Commons Attribution 4.0 27 29 # International License. To view a copy of this license, visit 28 30 # http://creativecommons.org/licenses/by/4.0/ or send a letter to 29 31 # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 30 #31 # @Class Methods:32 # __init__33 # _read_controlfile34 # __str__35 # assign_args_to_control36 # assign_envs_to_control37 # check_conditions38 # check_install_conditions39 # to_list40 32 #******************************************************************************* 41 33 -
Source/Python/Classes/EcFlexpart.py
r8463d78 r44174de 42 42 # Anne Philipp, Leopold Haimberger 43 43 # 44 # SPDX-License-Identifier: CC-BY-4.0 45 # 44 46 # This work is licensed under the Creative Commons Attribution 4.0 45 47 # International License. To view a copy of this license, visit … … 415 417 # ----------------------------------------------------------------------- 416 418 if wrf: 417 self.params['OG__ML'][0] += '/Z/VO' 418 if '/D' not in self.params['OG__ML'][0]: 419 self.params['OG__ML'][0] += '/D' 420 421 wrf_sfc = ['SP','SKT','SST','CI','STL1','STL2', 'STL3','STL4', 422 'SWVL1','SWVL2','SWVL3','SWVL4'] 423 for par in wrf_sfc: 424 if par not in self.params['OG__SL'][0]: 425 self.params['OG__SL'][0] += '/' + par 419 # @WRF 420 # THIS IS NOT YET CORRECTLY IMPLEMENTED !!! 421 # 422 # UNDER CONSTRUCTION !!! 423 # 424 425 print('WRF VERSION IS UNDER CONSTRUCTION!') # dummy argument 426 427 #self.params['OG__ML'][0] += '/Z/VO' 428 #if '/D' not in self.params['OG__ML'][0]: 429 # self.params['OG__ML'][0] += '/D' 430 431 #wrf_sfc = ['SP','SKT','SST','CI','STL1','STL2', 'STL3','STL4', 432 # 'SWVL1','SWVL2','SWVL3','SWVL4'] 433 #for par in wrf_sfc: 434 # if par not in self.params['OG__SL'][0]: 435 # self.params['OG__SL'][0] += '/' + par 426 436 427 437 return … … 1502 1512 end_period = end_period + timedelta(hours=int(c.step[-1])) 1503 1513 1504 if c.wrf: 1505 table128 = init128(_config.PATH_GRIBTABLE) 1506 wrfpars = to_param_id('sp/mslp/skt/2t/10u/10v/2d/z/lsm/sst/ci/sd/\ 1507 stl1/stl2/stl3/stl4/swvl1/swvl2/swvl3/swvl4', 1508 table128) 1514 # @WRF 1515 # THIS IS NOT YET CORRECTLY IMPLEMENTED !!! 1516 # 1517 # UNDER CONSTRUCTION !!! 1518 # 1519 #if c.wrf: 1520 # table128 = init128(_config.PATH_GRIBTABLE) 1521 # wrfpars = to_param_id('sp/mslp/skt/2t/10u/10v/2d/z/lsm/sst/ci/sd/\ 1522 # stl1/stl2/stl3/stl4/swvl1/swvl2/swvl3/swvl4', 1523 # table128) 1509 1524 1510 1525 # these numbers are indices for the temporary files "fort.xx" … … 1585 1600 continue 1586 1601 1587 if c.wrf: 1588 if 'olddate' not in locals() or cdate != olddate: 1589 fwrf = open(os.path.join(c.outputdir, 1590 'WRF' + cdate + '.' + ctime + '.000.grb2'), 'w') 1591 olddate = cdate[:] 1602 # @WRF 1603 # THIS IS NOT YET CORRECTLY IMPLEMENTED !!! 1604 # 1605 # UNDER CONSTRUCTION !!! 1606 # 1607 #if c.wrf: 1608 # if 'olddate' not in locals() or cdate != olddate: 1609 # fwrf = open(os.path.join(c.outputdir, 1610 # 'WRF' + cdate + '.' + ctime + '.000.grb2'), 'w') 1611 # olddate = cdate[:] 1592 1612 #============================================================================================ 1593 1613 # savedfields remembers which fields were already used. … … 1627 1647 codes_write(gid, fdict['22']) 1628 1648 scwc = None 1629 elif c.wrf and paramId in [129, 138, 155] and \ 1630 levtype == 'hybrid': # Z, VO, D 1631 # do not do anything right now 1632 # these are specific parameter for WRF 1633 pass 1649 # @WRF 1650 # THIS IS NOT YET CORRECTLY IMPLEMENTED !!! 1651 # 1652 # UNDER CONSTRUCTION !!! 1653 # 1654 #elif c.wrf and paramId in [129, 138, 155] and \ 1655 # levtype == 'hybrid': # Z, VO, D 1656 # # do not do anything right now 1657 # # these are specific parameter for WRF 1658 # pass 1634 1659 else: 1635 1660 if paramId not in savedfields: … … 1640 1665 else: 1641 1666 print('duplicate ' + str(paramId) + ' not written') 1642 1643 try: 1644 if c.wrf: 1645 # model layer 1646 if levtype == 'hybrid' and \ 1647 paramId in [129, 130, 131, 132, 133, 138, 155]: 1648 codes_write(gid, fwrf) 1649 # sfc layer 1650 elif paramId in wrfpars: 1651 codes_write(gid, fwrf) 1652 except AttributeError: 1653 pass 1667 # @WRF 1668 # THIS IS NOT YET CORRECTLY IMPLEMENTED !!! 1669 # 1670 # UNDER CONSTRUCTION !!! 1671 # 1672 #try: 1673 # if c.wrf: 1674 # # model layer 1675 # if levtype == 'hybrid' and \ 1676 # paramId in [129, 130, 131, 132, 133, 138, 155]: 1677 # codes_write(gid, fwrf) 1678 # # sfc layer 1679 # elif paramId in wrfpars: 1680 # codes_write(gid, fwrf) 1681 #except AttributeError: 1682 # pass 1654 1683 1655 1684 codes_release(gid) … … 1721 1750 'rb'), fout) 1722 1751 # ============================================================================================ 1723 if c.wrf: 1724 fwrf.close() 1752 1753 # @WRF 1754 # THIS IS NOT YET CORRECTLY IMPLEMENTED !!! 1755 # 1756 # UNDER CONSTRUCTION !!! 1757 # 1758 #if c.wrf: 1759 # fwrf.close() 1725 1760 1726 1761 codes_index_release(iid) -
Source/Python/Classes/GribUtil.py
r8463d78 r44174de 13 13 # 14 14 # @License: 15 # (C) Copyright 2014-2018. 16 # 17 # This software is licensed under the terms of the Apache Licence Version 2.0 18 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 19 # 20 # @Class Description: 21 # The GRIB API provides all necessary tools to work directly with the 22 # grib files. Nevertheless, the GRIB API tools are very basic and are in 23 # direct connection with the grib files. This class provides some higher 24 # functions which apply a set of GRIB API tools together in the respective 25 # context. So, the class initially contains a list of grib files (their 26 # names) and the using program then applies the methods directly on the 27 # class objects without having to think about how the actual GRIB API 28 # tools have to be arranged. 29 # 30 # @Class Content: 31 # - __init__ 32 # - get_keys 33 # - set_keys 34 # - copy_dummy_msg 35 # - index 36 # 37 # @Class Attributes: 38 # - filenames 39 # 15 # (C) Copyright 2014-2019. 16 # Anne Philipp, Leopold Haimberger 17 # 18 # SPDX-License-Identifier: CC-BY-4.0 19 # 20 # This work is licensed under the Creative Commons Attribution 4.0 21 # International License. To view a copy of this license, visit 22 # http://creativecommons.org/licenses/by/4.0/ or send a letter to 23 # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 40 24 #******************************************************************************* 41 25 … … 53 37 ''' 54 38 Class for GRIB utilities (new methods) based on GRIB API 39 40 The GRIB API provides all necessary tools to work directly with the 41 grib files. Nevertheless, the GRIB API tools are very basic and are in 42 direct connection with the grib files. This class provides some higher 43 functions which apply a set of GRIB API tools together in the respective 44 context. So, the class initially contains a list of grib files (their 45 names) and the using program then applies the methods directly on the 46 class objects without having to think about how the actual GRIB API 47 tools have to be arranged. 55 48 ''' 56 49 # -------------------------------------------------------------------------- -
Source/Python/Classes/MarsRetrieval.py
r8463d78 r44174de 22 22 # (C) Copyright 2014-2019. 23 23 # Anne Philipp, Leopold Haimberger 24 # 25 # SPDX-License-Identifier: CC-BY-4.0 24 26 # 25 27 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/Classes/UioFiles.py
r8463d78 r44174de 25 25 # (C) Copyright 2014-2019. 26 26 # Anne Philipp, Leopold Haimberger 27 # 28 # SPDX-License-Identifier: CC-BY-4.0 27 29 # 28 30 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/Mods/checks.py
r8463d78 r44174de 11 11 # (C) Copyright 2014-2019. 12 12 # Anne Philipp, Leopold Haimberger 13 # 14 # SPDX-License-Identifier: CC-BY-4.0 13 15 # 14 16 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/Mods/disaggregation.py
r8463d78 r44174de 22 22 # (C) Copyright 2014-2019. 23 23 # Anne Philipp, Leopold Haimberger 24 # 25 # SPDX-License-Identifier: CC-BY-4.0 24 26 # 25 27 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/Mods/get_mars_data.py
r8463d78 r44174de 28 28 # (C) Copyright 2014-2019. 29 29 # Anne Philipp, Leopold Haimberger 30 # 31 # SPDX-License-Identifier: CC-BY-4.0 30 32 # 31 33 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/Mods/prepare_flexpart.py
r8463d78 r44174de 31 31 # (C) Copyright 2014-2019. 32 32 # Anne Philipp, Leopold Haimberger 33 # 34 # SPDX-License-Identifier: CC-BY-4.0 33 35 # 34 36 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/Mods/tools.py
r8463d78 r44174de 26 26 # (C) Copyright 2014-2019. 27 27 # Anne Philipp, Leopold Haimberger 28 # 29 # SPDX-License-Identifier: CC-BY-4.0 28 30 # 29 31 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/_config.py
r8463d78 r44174de 11 11 # (C) Copyright 2014-2019. 12 12 # Anne Philipp, Leopold Haimberger 13 # 14 # SPDX-License-Identifier: CC-BY-4.0 13 15 # 14 16 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/install.py
r8463d78 r44174de 21 21 # (C) Copyright 2014-2019. 22 22 # Anne Philipp, Leopold Haimberger 23 # 24 # SPDX-License-Identifier: CC-BY-4.0 23 25 # 24 26 # This work is licensed under the Creative Commons Attribution 4.0 -
Source/Python/submit.py
r8463d78 r44174de 25 25 # (C) Copyright 2014-2019. 26 26 # Anne Philipp, Leopold Haimberger 27 # 28 # SPDX-License-Identifier: CC-BY-4.0 27 29 # 28 30 # This work is licensed under the Creative Commons Attribution 4.0
Note: See TracChangeset
for help on using the changeset viewer.