Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isccp_l1g_prototype
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Coda Phillips
isccp_l1g_prototype
Commits
a80f4cee
Commit
a80f4cee
authored
1 year ago
by
Coda Phillips
Browse files
Options
Downloads
Patches
Plain Diff
misc updates
parent
67bf6a44
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
make_sample.py
+2
-1
2 additions, 1 deletion
make_sample.py
run_slurm.py
+17
-13
17 additions, 13 deletions
run_slurm.py
with
19 additions
and
14 deletions
make_sample.py
+
2
−
1
View file @
a80f4cee
...
...
@@ -157,7 +157,8 @@ def tmpdir(sat, band, dt):
os
.
environ
[
'
TMP
'
]
=
str
(
tmp
)
yield
tmp
finally
:
shutil
.
rmtree
(
tmp
)
if
tmp
.
is_dir
():
shutil
.
rmtree
(
tmp
)
tempfile
.
tempdir
=
str
(
tmp_root
)
os
.
environ
[
'
TMP
'
]
=
str
(
tmp_root
)
...
...
This diff is collapsed.
Click to expand it.
run_slurm.py
+
17
−
13
View file @
a80f4cee
...
...
@@ -28,7 +28,7 @@ async def main(n_workers):
f
'
--freq=
{
freq
}
'
,
start
.
strftime
(
'
%Y%m%dT%H%M
'
),
end
.
strftime
(
'
%Y%m%dT%H%M
'
)
]
tasks
.
append
(
args
)
for
sat
in
[
'
g16
'
,
'
g17
'
,
'
h8
'
,
'
m8
'
,
'
m11
'
]:
#,'m9']
:
for
sat
in
SATELLITES
:
if
DO_TIMING
:
args
=
[
'
srun
'
,
'
-N1
'
,
'
-n1
'
,
'
-p
'
,
'
cirrus
'
,
'
-c
'
,
'
4
'
,
'
--time
'
,
'
01:00:00
'
,
'
--mem-per-cpu=3G
'
,
'
python
'
,
'
make_timing.py
'
,
'
--compdir
'
,
str
(
COMPDIR
),
...
...
@@ -41,7 +41,7 @@ async def main(n_workers):
sat
,
start
.
strftime
(
'
%Y%m%dT%H%M
'
),
end
.
strftime
(
'
%Y%m%dT%H%M
'
)]
tasks
.
append
(
args
)
for
k
in
VARIABLES
:
for
sat
in
[
'
g16
'
,
'
g17
'
,
'
h8
'
,
'
m8
'
,
'
m11
'
]:
#,'m9']
:
for
sat
in
SATELLITES
:
if
DO_SAMPLE
:
args
=
[
'
srun
'
,
'
-N1
'
,
'
-n1
'
,
'
-p
'
,
'
cirrus
'
,
'
-c
'
,
'
4
'
,
'
--time
'
,
'
01:00:00
'
,
'
--mem-per-cpu=3G
'
,
'
python
'
,
'
make_sample.py
'
,
#'--compdir','dat/sample_cache/g16_g17_h8_m11_m9',
...
...
@@ -109,33 +109,35 @@ if __name__ == '__main__':
dt
=
pd
.
to_datetime
(
args
.
dt
)
DO
=
args
.
stage
freq
=
args
.
freq
COMPDIR
=
Path
(
args
.
compdir
)
WMO_ID_FILE
=
COMPDIR
/
'
wmo_id.nc
'
if
args
.
compdir
is
not
None
:
COMPDIR
=
Path
(
args
.
compdir
)
WMO_ID_FILE
=
COMPDIR
/
'
wmo_id.nc
'
if
args
.
end
is
not
None
:
end
=
pd
.
to_datetime
(
args
.
end
)
dates
=
pd
.
date_range
(
dt
,
end
,
freq
=
'
1D
'
)
dates
=
pd
.
date_range
(
dt
,
end
,
freq
=
'
4H
'
)
else
:
dates
=
[
dt
]
dates
=
[
dt
,
dt
+
pd
.
to_timedelta
(
args
.
freq
)
]
procs
=
[]
VARIABLES
=
{
#
'refl_00_47um',
'
refl_00_47um
'
,
'
refl_00_65um
'
,
'
refl_00_65um_min
'
,
'
refl_00_65um_max
'
,
'
refl_00_65um_std
'
,
#
'refl_00_51um',
'
refl_00_51um
'
,
'
refl_00_86um
'
,
'
refl_01_38um
'
,
'
refl_01_60um
'
,
#
'refl_02_20um',
'
refl_02_20um
'
,
'
temp_03_80um
'
,
#
'temp_06_20um',
#
'temp_06_70um',
'
temp_06_20um
'
,
'
temp_06_70um
'
,
'
temp_07_30um
'
,
'
temp_08_60um
'
,
#
'temp_09_70um',
'
temp_09_70um
'
,
'
temp_10_40um
'
,
'
temp_11_00um
'
,
'
temp_11_00um_min
'
,
...
...
@@ -150,12 +152,14 @@ if __name__ == '__main__':
'
satellite_azimuth_angle
'
}
SATELLITES
=
[
'
g16
'
,
'
g17
'
,
'
h8
'
,
'
m8
'
,
'
m11
'
]
DO_COLLECT
=
DO
==
'
collect
'
DO_SOLAR
=
DO
==
'
solar
'
DO_TIMING
=
DO
==
'
timing
'
DO_SAMPLE
=
DO
==
'
sample
'
DO_COMPOSITE
=
DO
==
'
composite
'
DO_AUX_COMPOSITE
=
DO
==
'
aux
'
DO_AUX_COMPOSITE
=
DO
==
'
aux
_composite
'
DO_GEOMETRY
=
DO
==
'
geometry
'
DO_ANCIL
=
DO
==
'
ancil
'
...
...
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