Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Ostberg
WM_LPJmL_indicators
Commits
4cd1417d
Commit
4cd1417d
authored
Nov 19, 2021
by
Sebastian Ostberg
Browse files
update output directory
parent
6c140833
Changes
1
Hide whitespace changes
Inline
Side-by-side
risk_yield_loss.R
View file @
4cd1417d
...
...
@@ -824,17 +824,17 @@ risk_category_var <- ncvar_def(
)
# Generate output NetCDF files
if
(
!
dir.exists
(
"
../
output"
))
dir.create
(
"
../
output"
)
if
(
!
dir.exists
(
"output"
))
dir.create
(
"output"
)
# First file
print
(
paste
(
"Save gridded yield loss risk indicator variable to"
,
"
../o
utput/yield_loss_risk.nc"
"utput/yield_loss_risk.nc"
)
)
nc
<-
nc_create
(
filename
=
"
../
output/yield_loss_risk.nc"
,
filename
=
"output/yield_loss_risk.nc"
,
vars
=
list
(
yield_loss_risk_var
,
crop_var
,
...
...
@@ -845,11 +845,11 @@ nc <- nc_create(
print
(
paste
(
"Save gridded crop area at risk variable to"
,
"
../
output/harvested_area_at_risk.nc"
"output/harvested_area_at_risk.nc"
)
)
nc2
<-
nc_create
(
filename
=
"
../
output/harvested_area_at_risk.nc"
,
filename
=
"output/harvested_area_at_risk.nc"
,
vars
=
list
(
harvested_area_var
,
crop_var
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment