Skip to content
Snippets Groups Projects
Commit 9c85c1db authored by Dethinne Thomas's avatar Dethinne Thomas
Browse files

Update 2 files

- /couplage/code python/CAR2MAR_co2_tprev.py
- /couplage/code python/create_necessary_files.py
parent 10ca9806
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ def open_mar(path):
def main_tprev(ys):
# Copy the file
shutil.copy('./temyyyy.dat.txt', f'./tem{ys}.dat')
shutil.copy('./temyyyy.dat', f'./tem{ys}.dat')
"""##############################################################################################################"""
......
......@@ -55,13 +55,13 @@ def ti():
if __name__ == '__main__':
t0=ti()
path_to_MAR_ICE = "E:/MAR_data_raw_BE/MERRA/"
path_to_MAR_ICE = "D:/MAR_data_raw_BE/MERRA/"
path_to_sowing = "E:/MAR_data_raw_BE/MERRA/"
path_to_fire = "E:/Car_files/data.ascii" #data.ascii input file
path_to_sowing = "D:/MAR_data_raw_BE/MERRA/"
path_to_fire = "D:/Car_files/data.ascii" #data.ascii input file
path_to_manage = "./man/" #manageYYYY.dat file output
do_sowing = 1
do_sowing = 0
do_fire = 1
do_manage = 1
......@@ -70,7 +70,7 @@ if __name__ == '__main__':
manage_type = [2,1,365,0,0] #full cut
# manage_type = [1,1,150,50,50] #user defined
ys = 2009 #starting year -1
ye = 2020 #end year
ye = 2024 #end year
print("Creating the climatology files")
main_climatology(path_to_MAR_ICE)
......@@ -84,14 +84,14 @@ if __name__ == '__main__':
print("Creating the Temprev")
main_tprev(ys)
print("Creating the sowing files")
if do_sowing : main_sowing(path_to_sowing, path_to_MAR_ICE)
# print("Creating the sowing files")
# if do_sowing : main_sowing(path_to_sowing, path_to_MAR_ICE)
print("Creating the fire files")
if do_fire : main_fire(path_to_fire, path_to_MAR_ICE)
print("Creating the manage files")
if do_manage : main_manage(path_to_manage, path_to_MAR_ICE, manage_type,ys,ye)
if do_manage : main_manag(path_to_manage, path_to_MAR_ICE, manage_type,ys,ye)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment