- Timestamp:
- 06/22/23 11:47:51 (10 months ago)
- 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 12 12 ## 13 13 ## 14 ## SVN information 15 # $Author$ 16 # $Date$ 17 # $Revision$ 18 # $Id$ 19 # $HeadURL$ 14 SVN = { 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 } 20 21 21 22 ### … … 39 40 40 41 ## 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 42 ATM=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 43 43 ## 44 ARCHIVE=None ; STORAGE = None ; SCRATCHDIR=None ; R_IN=None ; rebuild='rebuild_nemo'44 ARCHIVE=None ; STORAGE=None ; SCRATCHDIR=None ; R_IN=None ; rebuild=None 45 45 TmpDir=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 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 47 47 tar_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 48 file_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 50 49 tar_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 51 50 tar_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 … … 55 54 IniFile = sys.argv[1] 56 55 # Text existence of IniFile 57 print ("Input file : ", IniFile ) 56 if not os.path.exists (IniFile ) : 57 raise FileExistsError ( f"File not found : {IniFile = }" ) 58 58 59 59 if 'full' in IniFile : FullIniFile = IniFile 60 60 else : FullIniFile = 'full_' + IniFile 61 61 62 62 print ("Input file : ", IniFile ) 63 63 config.read (IniFile) … … 74 74 exec ( f'{VarName} = wu.setNone ({VarName})' ) 75 75 exec ( f'wu.{VarName} = {VarName}' ) 76 print ( '{:25} set to : {:}'.format (VarName, locals()[VarName]))76 print ( f'{VarName:25} set to : {locals()[VarName])}' ) 77 77 #exec ( f'del {VarName}' ) 78 78 79 print ( f'\nConfig file readed : {IniFile} ' ) 80 79 81 #-- Some physical constants 80 82 if wu.unDefined ( 'Ra' ) : Ra = 6366197.7236758135 #-- Earth Radius (m) … … 93 95 94 96 config['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 98 config['Config'] = { 'ContinueOnError':ContinueOnError, 'SortIco':SortIco} 99 96 100 with open ('SetLibIGCM.py') as f: exec ( f.read() ) 97 101 config['Files']['TmpDir'] = TmpDir … … 202 206 Title = f'{JobName} : {Freq} : {YearBegin}-01-01 - {YearEnd}-12-31' 203 207 config['Files']['Title'] = Title 204 205 208 206 209 echo ('\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 1 21 # Where do we run ? 2 22 import pathlib, os -
TOOLS/WATER_BUDGET/lmdz.py
- Property svn:keywords changed from Date Revision HeadURL Author Id to Date Revision HeadURL Author
r6508 r6519 28 28 __Date__ = "$Date$" 29 29 __Revision__ = "$Revision$" 30 __Id__ = "$Id $"30 __Id__ = "$Id: lmdz.py 6508 2023-06-13 10:58:38Z omamce $" 31 31 __HeadURL = "$HeadURL$" 32 32 -
TOOLS/WATER_BUDGET/nemo.py
- Property svn:keywords changed from Date Revision HeadURL Author Id to Date Revision HeadURL Author
r6265 r6519 29 29 __Date__ = "$Date$" 30 30 __Revision__ = "$Revision$" 31 __Id__ = "$Id $"31 __Id__ = "$Id: nemo.py 6265 2022-11-02 12:45:56Z omamce $" 32 32 __HeadURL = "$HeadURL$" 33 33
Note: See TracChangeset
for help on using the changeset viewer.