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

correct some issues in the python scripts

parent 9c85c1db
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', f'./tem{ys}.dat')
shutil.copy('./temyyyy.dat', f'./tem{ys}.res')
"""##############################################################################################################"""
......@@ -338,7 +338,7 @@ if __name__ == '__main__':
t0=ti()
ys = 2009 #starting year -1
ye = 2015 #end year
ye = 2024 #end year
# main_tprev(ys)
main_co2(ys,ye)
......
......@@ -126,7 +126,7 @@ def interpol(lon_m, lat_m, lon_e, lat_e, data_e):
def write_file(lon_m, lat_m, data):
var_values = data
print("Start writing the file")
print("Start writing the lightning file")
for i in np.arange(0,np.shape(lon_m)[1]):
for j in np.arange(0,np.shape(lat_m)[0]):
......
......@@ -76,7 +76,6 @@ def main_landuse(path_to_mar):
f = open('./land_use_caraib.dat', "w")
print(range(len(mar.x.values)))
for i in range(len(mar.x.values)):
for j in range(len(mar.y.values)):
......
......@@ -25,7 +25,7 @@ from MAR2CAR_clim import main_climatology
from MAR2CAR_landuse import main_landuse
#from CAR2MAR_sowing import main_sowing
#from CAR2MAR_sowing import main_sowing TODO
from CAR2MAR_fire import main_fire
......@@ -55,10 +55,10 @@ def ti():
if __name__ == '__main__':
t0=ti()
path_to_MAR_ICE = "D:/MAR_data_raw_BE/MERRA/"
path_to_MAR_ICE = "E:/MAR_data_raw_BE/MERRA/"
path_to_sowing = "D:/MAR_data_raw_BE/MERRA/"
path_to_fire = "D:/Car_files/data.ascii" #data.ascii input file
path_to_sowing = "E:/MAR_data_raw_BE/MERRA/"
path_to_fire = "E:/Car_files/data.ascii" #data.ascii input file
path_to_manage = "./man/" #manageYYYY.dat file output
do_sowing = 0
......@@ -72,8 +72,8 @@ if __name__ == '__main__':
ys = 2009 #starting year -1
ye = 2024 #end year
print("Creating the climatology files")
main_climatology(path_to_MAR_ICE)
# print("Creating the climatology files")
# main_climatology(path_to_MAR_ICE)
print("Creating the Landuse files")
main_landuse(path_to_MAR_ICE)
......@@ -84,7 +84,7 @@ if __name__ == '__main__':
print("Creating the Temprev")
main_tprev(ys)
# print("Creating the sowing files")
# print("Creating the sowing files") TODO
# if do_sowing : main_sowing(path_to_sowing, path_to_MAR_ICE)
print("Creating the fire files")
......
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