Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MVCM
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Paolo Veglio
MVCM
Commits
72b29f85
Commit
72b29f85
authored
3 months ago
by
Paolo Veglio
Browse files
Options
Downloads
Patches
Plain Diff
started removing logging for missing group
parent
b4be1b63
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mvcm/write_output.py
+0
-29
0 additions, 29 deletions
mvcm/write_output.py
with
0 additions
and
29 deletions
mvcm/write_output.py
+
0
−
29
View file @
72b29f85
...
@@ -4,7 +4,6 @@ import logging
...
@@ -4,7 +4,6 @@ import logging
from
os.path
import
basename
,
isfile
from
os.path
import
basename
,
isfile
from
subprocess
import
run
from
subprocess
import
run
import
netCDF4
as
nc
import
numpy
as
np
import
numpy
as
np
import
xarray
as
xr
import
xarray
as
xr
...
@@ -321,53 +320,25 @@ def save_output(
...
@@ -321,53 +320,25 @@ def save_output(
out_ds
.
attrs
[
attr
]
=
attributes
[
attr
]
out_ds
.
attrs
[
attr
]
=
attributes
[
attr
]
logger
.
debug
(
"
attributes added to datasets
"
)
logger
.
debug
(
"
attributes added to datasets
"
)
f
=
nc
.
Dataset
(
fname
)
logger
.
info
(
f
"
list of groups:
{
list
(
f
.
groups
)
}
"
)
f
.
close
()
out_ds
.
to_netcdf
(
fname
,
mode
=
"
a
"
)
out_ds
.
to_netcdf
(
fname
,
mode
=
"
a
"
)
logger
.
debug
(
"
output file created and global attributes written to netcdf file
"
)
logger
.
debug
(
"
output file created and global attributes written to netcdf file
"
)
f
=
nc
.
Dataset
(
fname
)
logger
.
info
(
f
"
list of groups:
{
list
(
f
.
groups
)
}
"
)
f
.
close
()
out_scanline
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
scanline_data_hires
"
)
out_scanline
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
scanline_data_hires
"
)
logger
.
debug
(
"
scanline_data_hires written to netcdf file
"
)
logger
.
debug
(
"
scanline_data_hires written to netcdf file
"
)
f
=
nc
.
Dataset
(
fname
)
logger
.
info
(
f
"
list of groups:
{
list
(
f
.
groups
)
}
"
)
f
.
close
()
out_geolocation
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
geolocation_data_hires
"
)
out_geolocation
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
geolocation_data_hires
"
)
logger
.
debug
(
"
geolocation_data_hires written to netcdf file
"
)
logger
.
debug
(
"
geolocation_data_hires written to netcdf file
"
)
f
=
nc
.
Dataset
(
fname
)
logger
.
info
(
f
"
list of groups:
{
list
(
f
.
groups
)
}
"
)
f
.
close
()
out_geophysical
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
geophysical_data_hires
"
)
out_geophysical
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
geophysical_data_hires
"
)
logger
.
debug
(
"
geophysical_data_hires written to netcdf file
"
)
logger
.
debug
(
"
geophysical_data_hires written to netcdf file
"
)
f
=
nc
.
Dataset
(
fname
)
logger
.
info
(
f
"
list of groups:
{
list
(
f
.
groups
)
}
"
)
f
.
close
()
out_spi
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
geophysical_data
"
)
out_spi
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
geophysical_data
"
)
logger
.
debug
(
"
SPI_Cloud_Mask written to netcdf file
"
)
logger
.
debug
(
"
SPI_Cloud_Mask written to netcdf file
"
)
f
=
nc
.
Dataset
(
fname
)
logger
.
info
(
f
"
list of groups:
{
list
(
f
.
groups
)
}
"
)
f
.
close
()
if
debug
is
True
:
if
debug
is
True
:
out_debug
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
debug_data
"
)
out_debug
.
to_netcdf
(
fname
,
mode
=
"
a
"
,
group
=
"
debug_data
"
)
logger
.
debug
(
"
debug_data written to netcdf file
"
)
logger
.
debug
(
"
debug_data written to netcdf file
"
)
f
=
nc
.
Dataset
(
fname
)
logger
.
info
(
f
"
list of groups:
{
list
(
f
.
groups
)
}
"
)
f
.
close
()
logger
.
info
(
"
Output written to netcdf file successfully
"
)
logger
.
info
(
"
Output written to netcdf file successfully
"
)
...
...
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