Skip to content

Commit

Permalink
Chanegd sign for gfco2 when added to land fco2nat
Browse files Browse the repository at this point in the history
  • Loading branch information
nierad committed Feb 6, 2024
1 parent 7dc9393 commit 4e567f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ece2cmor3/lpjg2cmor.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def add_nemo_variable(task, ncfile, nemo_var_name, nemo_var_freq):
# add the nemo output to the lpjg output
if os.path.exists(interm_file):
os.remove(interm_file)
os.system("cdo -L add -selvar,"+task.target.variable+" "+ncfile+" "+nemo_ofile+" "+interm_file)
os.system("cdo -L add -selvar,"+task.target.variable+" "+ncfile+" -mulc,-1. "+nemo_ofile+" "+interm_file)
if not os.path.exists(interm_file):
log.error("There was a problem adding remapped %s variable from nemo output file %s to %s in table %s... "
% (nemo_var_name, nemo_ifile, task.target.variable, task.target.table))
Expand Down

0 comments on commit 4e567f5

Please sign in to comment.