Changeset 6519 for TOOLS


Ignore:
Timestamp:
06/22/23 11:47:51 (10 months ago)
Author:
omamce
Message:

O.M. : WATER_BUDGET - Cosmetic changes

Location:
TOOLS/WATER_BUDGET
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/WATER_BUDGET/OCE_waterbudget.py

    • Property svn:keywords changed from Date Revision HeadURL Author Id to Date Revision HeadURL Author
    r6508 r6519  
    1212## 
    1313## 
    14 ## SVN information 
    15 #  $Author$ 
    16 #  $Date$ 
    17 #  $Revision$ 
    18 #  $Id$ 
    19 #  $HeadURL$ 
     14SVN = { 
     15    'Author'  : "$Author$", 
     16    'Date'    :   "$Date$", 
     17    'Revision': "$Revision$", 
     18    'Id'      : "$Id: ATM_waterbudget.py 6508 2023-06-13 10:58:38Z omamce $", 
     19    'HeadURL' : "$HeadUrl: svn+ssh://omamce@forge.ipsl.jussieu.fr/ipsl/forge/projets/igcmg/svn/TOOLS/WATER_BUDGET/ATM_waterbudget.py $" 
     20    } 
    2021 
    2122### 
     
    3940 
    4041## Read experiment parameters 
    41 ATM=None ; ORCA=None ; NEMO=None ; OCE_relax=False ; OCE_icb=False ; Coupled=False ; Routing=None ;  TarRestartPeriod_beg=None ; TarRestartPeriod_end=None ; Comment=None ; Period=None ; Title=None 
    42  
     42ATM=None ; ATM_HIS='latlon' ; SRF_HIS='latlon' ; RUN_HIS='latlon' ; ORCA=None ; NEMO=None ; OCE_relax=False ; OCE_icb=False ; Coupled=False ; Routing=None ; TarRestartPeriod_beg=None ; TarRestartPeriod_end=None ; Comment=None ; Period=None ; Title=None 
    4343## 
    44 ARCHIVE=None ; STORAGE = None ; SCRATCHDIR=None ; R_IN=None ; rebuild='rebuild_nemo' 
     44ARCHIVE=None ; STORAGE=None ; SCRATCHDIR=None ; R_IN=None ; rebuild=None 
    4545TmpDir=None ; RunDir=None ; FileOut=None ; dir_ATM_his=None ; dir_SRF_his=None ; dir_OCE_his=None ; dir_ICE_his=None ; FileCommon=None 
    46 file_ATM_his=None ; file_SRF_his=None ; file_RUN_his=None ; file_OCE_his=None ;  file_ICE_his=None ; file_OCE_sca=None  
     46file_ATM_his=None ; file_SRF_his=None ; file_RUN_his=None ; file_OCE_his=None ;  file_ICE_his=None ; file_OCE_sca=None 
    4747tar_restart_beg=None ; tar_restart_end=None ; file_ATM_beg=None ; file_ATM_end=None ; file_DYN_beg=None ; file_DYN_end=None ; file_SRF_beg=None ; file_SRF_end=None 
    48 file_RUN_beg=None ; file_RUN_end=None ; file_OCE_beg=None ; file_ICE_beg=None ; file_OCE_end=None ; file_ICE_end=None 
    49 ContinueOnError=False ; ErrorCount=0 
     48file_RUN_beg=None ; file_RUN_end=None ; file_RUN_end=None ; file_OCE_beg=None ; file_ICE_beg=None ; file_OCE_beg=None ; file_OCE_end=None ; file_ICE_beg=None ; file_OCE_end=None ; file_ICE_end=None ; ContinueOnError=False ; ErrorCount=0 
    5049tar_restart_beg_ATM=None ; tar_restart_beg_DYN=None ; tar_restart_beg_SRF=None ; tar_restart_beg_RUN=None ; tar_restart_beg_OCE=None ; tar_restart_beg_ICE=None 
    5150tar_restart_end_ATM=None ; tar_restart_end_DYN=None ; tar_restart_end_SRF=None ; tar_restart_end_RUN=None ; tar_restart_end_OCE=None ; tar_restart_end_ICE=None 
     
    5554IniFile = sys.argv[1] 
    5655# Text existence of IniFile 
    57 print ("Input file : ", IniFile ) 
     56if not os.path.exists (IniFile ) : 
     57    raise FileExistsError ( f"File not found : {IniFile = }" ) 
    5858 
    5959if 'full' in IniFile : FullIniFile = IniFile 
    6060else                 : FullIniFile = 'full_' + IniFile 
    61  
     61     
    6262print ("Input file : ", IniFile ) 
    6363config.read (IniFile) 
     
    7474            exec ( f'{VarName} = wu.setNone ({VarName})' ) 
    7575            exec ( f'wu.{VarName} = {VarName}' ) 
    76             print ( '{:25} set to : {:}'.format (VarName, locals()[VarName]) ) 
     76            print ( f'{VarName:25} set to : {locals()[VarName])}' ) 
    7777            #exec ( f'del {VarName}' ) 
    7878 
     79print ( f'\nConfig file readed : {IniFile} ' ) 
     80             
    7981#-- Some physical constants 
    8082if wu.unDefined ( 'Ra' )           : Ra          = 6366197.7236758135 #-- Earth Radius (m) 
     
    9395     
    9496config['Physics'] = { 'Ra':Ra, 'Grav':Grav, 'ICE_rho_ice':ICE_rho_ice, 'ICE_rho_sno':ICE_rho_sno, 'OCE_rho_liq':OCE_rho_liq, 'ATM_rho':ATM_rho, 'SRF_rho':SRF_rho, 'RUN_rho':RUN_rho} 
    95          
     97 
     98config['Config'] = { 'ContinueOnError':ContinueOnError, 'SortIco':SortIco} 
     99 
    96100with open ('SetLibIGCM.py') as f: exec ( f.read() ) 
    97101config['Files']['TmpDir'] = TmpDir 
     
    202206    Title = f'{JobName} : {Freq} : {YearBegin}-01-01 - {YearEnd}-12-31' 
    203207    config['Files']['Title'] = Title 
    204          
    205208         
    206209echo ('\nOpen history files' ) 
  • TOOLS/WATER_BUDGET/SetLibIGCM.py

    • Property svn:keywords set to Date Revision HeadURL Author
    r6508 r6519  
     1#!/usr/bin/env python3 
     2### 
     3### Script to check water conservation in the IPSL coupled model 
     4### 
     5##  Warning, to install, configure, run, use any of included software or 
     6##  to read the associated documentation you'll need at least one (1) 
     7##  brain in a reasonably working order. Lack of this implement will 
     8##  void any warranties (either express or implied).  Authors assumes 
     9##  no responsability for errors, omissions, data loss, or any other 
     10##  consequences caused directly or indirectly by the usage of his 
     11##  software by incorrectly or partially configured personal 
     12## 
     13## 
     14## SVN information 
     15#  $Author$ 
     16#  $Date$ 
     17#  $Revision$ 
     18#  $Id:  $ 
     19#  $HeadURL$ 
     20 
    121# Where do we run ? 
    222import pathlib, os 
  • TOOLS/WATER_BUDGET/lmdz.py

    • Property svn:keywords changed from Date Revision HeadURL Author Id to Date Revision HeadURL Author
    r6508 r6519  
    2828__Date__     = "$Date$" 
    2929__Revision__ = "$Revision$" 
    30 __Id__       = "$Id$" 
     30__Id__       = "$Id: lmdz.py 6508 2023-06-13 10:58:38Z omamce $" 
    3131__HeadURL    = "$HeadURL$" 
    3232 
  • TOOLS/WATER_BUDGET/nemo.py

    • Property svn:keywords changed from Date Revision HeadURL Author Id to Date Revision HeadURL Author
    r6265 r6519  
    2929__Date__     = "$Date$" 
    3030__Revision__ = "$Revision$" 
    31 __Id__       = "$Id$" 
     31__Id__       = "$Id: nemo.py 6265 2022-11-02 12:45:56Z omamce $" 
    3232__HeadURL    = "$HeadURL$" 
    3333 
Note: See TracChangeset for help on using the changeset viewer.