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

output script to create land and nitrogen inputs for LPJmL #204

Merged
merged 8 commits into from
Aug 18, 2020

Conversation

bodirsky
Copy link
Member

No description provided.

emolinab
emolinab previously approved these changes Jul 22, 2020
@emolinab emolinab self-requested a review July 22, 2020 13:07
print("generating INMS output for the run: ")
print(title)

filename=paste0(outputdir,"report_",title,".mif")
Copy link
Contributor

@emolinab emolinab Jul 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little thing but you have a few "=" instead of the common "<-" . Also, I don't see where this "filename" variable is used in.

@emolinab emolinab self-requested a review July 22, 2020 13:13
@emolinab emolinab dismissed their stale review July 22, 2020 13:15

Approved by mistake

Copy link
Contributor

@emolinab emolinab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • "=" instead of the common "<-" .
    *Also, I don't see where the "filename" variable is used in.

Copy link
Member

@k4rst3ns k4rst3ns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like to have a comment first on the folder structure before approval
(if there are good arguments, I also do not request a change).

untar(tarfile = tgz, files = "lpj_yields_0.5.mz", exdir=outputdir)

print("create an separate output directory for cellular results")
outputpath<-paste0("./output/",title,"/")
Copy link
Member

@k4rst3ns k4rst3ns Aug 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question: Why this will be a seperate output dir?

Seems to be like the normal naming convention for runs (without the time tag), but maybe I oversee something. If not:

  • Doesn't it makes sense to store the created output together with the fulldata.gdx and the config.log for more transparency?
  • And if not possible, could the outputpath have a reference in the name for being cellular output to a specific outputdir? (paste0(title,"_cellular") or something like that).

At the moment I am afraid, we might lose a bit track about which cellular postprocessed data belongs to which run.

@bodirsky bodirsky merged commit 42040fb into magpiemodel:develop Aug 18, 2020
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

Successfully merging this pull request may close these issues.

4 participants