Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running DSSAT48 in LINUX does not rename outputs even when FNAME in the filex was set to Y #384

Open
gonzarizzo opened this issue Nov 22, 2023 · 3 comments
Assignees

Comments

@gonzarizzo
Copy link

gonzarizzo commented Nov 22, 2023

Hello,

I compiled the DSSAT source code to run on Debian GNU/Linux.

DSSAT is running correctly with the following command:
./DSCSM048 Q FILENAME.v48

However, the outputs are not renamed to the name of the filex even when FNAME parameter in the filex is set to Y.

I think this problem is related to the last line showed in the terminal once the simulations are done: sh: 1: TEMP.BAT: not found

See below the output provided in the terminal:

RUN    ROT FLO MAT TOPWT HARWT  RAIN  TIRR   CET  PESW  TNUP  TNLF   TSON TSOC
           dap dap kg/ha kg/ha    mm    mm    mm    mm kg/ha kg/ha  kg/ha t/ha
  1 MZ   1  86 161 15858  4565   263    10   417     0     0   -99      0  107
  2 WH   2 147 186  1405   876   185    10   203     0     0   -99      0  108
  3 MZ   1  87 196  9698  5238   610    10   596     8     0   -99      0  107
  4 WH   2 148 179  1091   685    90    10   148     0     0   -99      0  108
  Crop mature on JD 252 due to slowed grain filling
  5 MZ   1  86 158 10606  2432   761    10   747     0     0   -99      0  107
  6 WH   2 161 195  1057   664   193    10   198     0     0   -99      0  109
  7 MZ   1  89 196 28477 13651  1112    10  1063     6     0   -99      0  108
  8 WH   2 151 186  6173  3659   242    10   268     0     0   -99      0  110
  9 MZ   1  88 197 25412 12077  1420    10  1084   182     0   -99      0  110
 10 WH   2 149 184  7053  4402    55    10   243     4     0   -99      0  112
 11 MZ   1  84 192 23756 11160  1327    10  1058   142     0   -99      0  112
 12 WH   2 147 182  8833  4851   125    10   277     0     0   -99      0  114
 13 MZ   1  89 202 11154  3253  1039    10   807     0     0   -99      0  114
 14 WH   2 158 193     0     0    78    10    68    11     0   -99      0  115
 15 MZ   1  86 196 26886 13110  1180    10  1058    78     0   -99      0  114
 16 WH   2 155 191 11483  5418   341    10   411    16     0   -99      0  116
 17 MZ   1  80 185 23830 11298  1123    10  1057    71     0   -99      0  116
 18 WH   2 168 201  4302  2825   216    10   306     0     0   -99      0  117
 19 MZ   1  83 189 30923 16234  1301    10  1093    20     0   -99      0  117
 20 WH   2 161 193  1683  1259   168    10   209     0     0   -99      0  119
RUN    ROT FLO MAT TOPWT HARWT  RAIN  TIRR   CET  PESW  TNUP  TNLF   TSON TSOC
           dap dap kg/ha kg/ha    mm    mm    mm    mm kg/ha kg/ha  kg/ha t/ha
 21 MZ   1  78 182 17100  9597  1060    10  1003    53     0   -99      0  119
 22 WH   2 167 202  3262  1429   214    10   267    10     0   -99      0  120
sh: 1: TEMP.BAT: not found

The TEMP.BAT file does not exist in any directory.

Do you have any idea about how to fix this bug?

Thank you!
Gonzalo

@fabiooliveira72
Copy link
Contributor

Hi @gonzarizzo!

Yes, it is. We have track of this issue and it is only related to Linux/MacOS systems. We have plans to update this, but it requires a lot of time testing it.

Thank you.

Fabio Oliveira

@fussek
Copy link

fussek commented Feb 21, 2024

Hello @fabiooliveira72 ,

First of all, great project, congratulations to everyone involved in the project 👏.
I have a follow-up here, I've deployed the latest version of dssat-csm-os running on:
Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-162-generic x86_64).
I'm encountering the same TEMP.BAT problems. Is that issue resolved? If not, can you suggest a workaround or evaluate the impact of this issue (is it crucial in given scenarios, what're other consequences not mentioned by @gonzarizzo ?)

Best regards,
Patryk

@chporter
Copy link
Contributor

Patryk;
This routine deletes all DSSAT output files at the beginning of the run. As an alternative, you could bypass this routine and do the deletions manually. If not done, the files are appended and sometimes become long.
Best,
Cheryl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants