Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Clément Haëck
submeso-color
Commits
7c832934
Commit
7c832934
authored
Mar 31, 2022
by
Clément Haëck
Browse files
Apply metadata setup to save_chunks_by_date
parent
87e6735f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
1 deletion
+5
-1
Compute/cloud_map.py
Compute/cloud_map.py
+1
-0
Compute/compute_hi.py
Compute/compute_hi.py
+1
-0
Compute/front_probability_single_month.py
Compute/front_probability_single_month.py
+1
-1
Compute/mean_ndays.py
Compute/mean_ndays.py
+1
-0
Download/process_ostia_sst.py
Download/process_ostia_sst.py
+1
-0
No files found.
Compute/cloud_map.py
View file @
7c832934
...
...
@@ -25,5 +25,6 @@ clouds = clouds.rename(CHL='cloud_probability')
clouds
=
clouds
.
chunk
({
'time'
:
1
})
odir
=
lib
.
data
.
clouds_maps
.
get_root
(
args
)
lib
.
setup_meta_attrs
(
clouds
,
args
)
save_chunks_by_date
(
clouds
,
path
.
join
(
odir
,
'%Y/cloud_%Y%m.nc'
),
encoding
=
{
'_all'
:
{
'zlib'
:
True
}})
Compute/compute_hi.py
View file @
7c832934
...
...
@@ -38,6 +38,7 @@ def main(args):
'_FillValue'
:
-
32767.
,
'dtype'
:
'int16'
,
'scale_factor'
:
1e-3
}}
lib
.
setup_meta_attrs
(
hi
,
args
)
save_chunks_by_date
(
hi
,
filename
=
filename
,
encoding
=
encoding
)
...
...
Compute/front_probability_single_month.py
View file @
7c832934
...
...
@@ -50,7 +50,7 @@ def main():
outdir
=
lib
.
data
.
front_probability
.
get_root
(
args
,
period
=
'monthly'
)
lib
.
check_output_dir
(
path
.
join
(
outdir
,
str
(
args
[
'year'
])))
lib
.
setup_meta_attrs
(
mth
,
args
)
save_chunks_by_date
(
mth
,
path
.
join
(
outdir
,
'%Y/%Y%m%d.nc'
))
return
mth
...
...
Compute/mean_ndays.py
View file @
7c832934
...
...
@@ -25,6 +25,7 @@ def main(args):
lib
.
check_output_dir
(
path
.
join
(
finder
.
root
,
'{:d}'
.
format
(
args
[
'year'
])))
filename
=
finder
.
get_filename
()
lib
.
setup_meta_attrs
(
ds
,
args
)
save_chunks_by_date
(
ds
,
filename
,
encoding
=
{
'_all'
:
{
'zlib'
:
True
}})
...
...
Download/process_ostia_sst.py
View file @
7c832934
...
...
@@ -56,6 +56,7 @@ def main(args):
zlib
=
True
))
ofile
=
lo
.
get_filename
(
args
,
Y
=
'%Y'
,
m
=
'%m'
,
d
=
'%d'
,
relative
=
False
)
lib
.
setup_meta_attrs
(
ds_out
,
args
)
save_chunks_by_date
(
ds_out
,
ofile
,
encoding
=
encoding
)
return
ds_out
...
...
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