Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grid SEPTREFHUM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
Models
GRID
Grid SEPTREFHUM
Commits
69d24132
Commit
69d24132
authored
1 year ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Remove step where we keep old TIFF files
parent
66d91399
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SEPTREFHUM.py
+0
-6
0 additions, 6 deletions
SEPTREFHUM.py
with
0 additions
and
6 deletions
SEPTREFHUM.py
+
0
−
6
View file @
69d24132
...
@@ -197,12 +197,6 @@ for timestep in timesteps:
...
@@ -197,12 +197,6 @@ for timestep in timesteps:
timestep_date
=
datetime
.
fromtimestamp
(
timestep
).
astimezone
(
local_timezone
)
timestep_date
=
datetime
.
fromtimestamp
(
timestep
).
astimezone
(
local_timezone
)
file_date
=
timestep_date
.
astimezone
(
local_timezone
).
strftime
(
"
%Y-%m-%d
"
)
file_date
=
timestep_date
.
astimezone
(
local_timezone
).
strftime
(
"
%Y-%m-%d
"
)
timestep_dates
.
append
(
file_date
)
timestep_dates
.
append
(
file_date
)
# If start_date is set, that means that we should only generate result files from that date on
# -- IF GeoTIFF fiels already exists before that.
# THERE IS A BUG IN THIS LOGIC, DISABLING FOR NOW
#if start_date is not None and timestep_date < start_date:
# if os.path.isfile(f'{outfile_path}result_WARNING_STATUS_{file_date}.tif') and os.path.isfile(f'{outfile_path}result_{file_date}.tif'):
# continue
# Create NetCDF result file
# Create NetCDF result file
subprocess
.
run
(
f
'
cdo -s -seltimestep,
{
timestep_index
}
/
{
timestep_index
}
{
tmpfile_path
}
result.nc
{
tmpfile_path
}
result_
{
file_date
}
.nc
'
,
shell
=
True
)
subprocess
.
run
(
f
'
cdo -s -seltimestep,
{
timestep_index
}
/
{
timestep_index
}
{
tmpfile_path
}
result.nc
{
tmpfile_path
}
result_
{
file_date
}
.nc
'
,
shell
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment