rda-python-miscs 1.0.6__tar.gz → 1.0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. {rda_python_miscs-1.0.6/src/rda_python_miscs.egg-info → rda_python_miscs-1.0.7}/PKG-INFO +1 -1
  2. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/pyproject.toml +1 -1
  3. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/bashqsub.py +8 -8
  4. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/bashqsub.usg +11 -11
  5. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/tcshqsub.py +8 -8
  6. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/tcshqsub.usg +13 -13
  7. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7/src/rda_python_miscs.egg-info}/PKG-INFO +1 -1
  8. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/LICENSE +0 -0
  9. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/MANIFEST.in +0 -0
  10. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/README.md +0 -0
  11. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/setup.cfg +0 -0
  12. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/__init__.py +0 -0
  13. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/gdexls.py +0 -0
  14. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/gdexls.usg +0 -0
  15. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/gdexls_standalone.py +0 -0
  16. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/pgwget.py +0 -0
  17. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdacp.py +0 -0
  18. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdacp.usg +0 -0
  19. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdakill.py +0 -0
  20. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdakill.usg +0 -0
  21. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdals.py +0 -0
  22. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdals.usg +0 -0
  23. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdamod.py +0 -0
  24. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdamod.usg +0 -0
  25. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaown.py +0 -0
  26. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaown.usg +0 -0
  27. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaps.py +0 -0
  28. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaps.usg +0 -0
  29. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdasub.py +0 -0
  30. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdasub.usg +0 -0
  31. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdazip.py +0 -0
  32. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdazip.usg +0 -0
  33. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/SOURCES.txt +0 -0
  34. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/dependency_links.txt +0 -0
  35. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/entry_points.txt +0 -0
  36. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/requires.txt +0 -0
  37. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/top_level.txt +0 -0
  38. {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/tests/test_miscs.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_miscs
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: RDA Python package to hold RDA miscellaneous utility programs
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-miscs
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "rda_python_miscs"
9
- version = "1.0.6"
9
+ version = "1.0.7"
10
10
  authors = [
11
11
  { name="Zaihua Ji", email="zji@ucar.edu" },
12
12
  ]
@@ -39,7 +39,7 @@ SOPTIONS = { # single-dash option values
39
39
  'o' : None, # will set to default if not provided
40
40
  'e' : None,
41
41
  'A' : "P43713000",
42
- 'q' : "rda@casper-pbs",
42
+ 'q' : "gdex@casper-pbs",
43
43
  # 'm' : 'a',
44
44
  'm' : 'n',
45
45
  }
@@ -50,9 +50,9 @@ SOPTIONS = { # single-dash option values
50
50
  def main():
51
51
 
52
52
  aname = 'bashqsub'
53
- pname = 'rdaqsub'
53
+ pname = 'gdexqsub'
54
54
  PgLOG.set_help_path(__file__)
55
- rdasub = PgLOG.BCHCMDS['PBS']
55
+ gdexsub = PgLOG.BCHCMDS['PBS']
56
56
  coptions = {'cmd' : None, 'cwd' : None, 'env' : None, 'mod' : None, 'res' : 'default'} # customized options
57
57
  copts = '|'.join(coptions)
58
58
  option = None
@@ -61,7 +61,7 @@ def main():
61
61
  if not argv: PgLOG.show_usage(aname)
62
62
  PgLOG.PGLOG['LOGFILE'] = pname + ".log"
63
63
  PgLOG.cmdlog("{} {}".format(aname, ' '.join(argv)))
64
- if not PgLOG.valid_command(rdasub): PgLOG.pglog("{}: miss {} command to submit batch job".format(rdasub, PgLOG.PGLOG['PBSNAME']), PgLOG.LGWNEX)
64
+ if not PgLOG.valid_command(gdexsub): PgLOG.pglog("{}: miss {} command to submit batch job".format(gdexsub, PgLOG.PGLOG['PBSNAME']), PgLOG.LGWNEX)
65
65
 
66
66
  while argv:
67
67
  arg = argv.pop(0)
@@ -80,7 +80,7 @@ def main():
80
80
  if option == "env": option = 'v'
81
81
  continue
82
82
 
83
- if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg, rdasub), PgLOG.LGEREX)
83
+ if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg, gdexsub), PgLOG.LGEREX)
84
84
  if arg.find(' ') > -1 and not re.match(r'^[\'\"].*[\'\"]$', arg): # quote string with space but not quoted yet
85
85
  if arg.find("'") > -1:
86
86
  arg = '"{}"'.format(arg)
@@ -111,10 +111,10 @@ def main():
111
111
  if not cmd: PgLOG.pglog(coptions['cmd'] + ": Cannot find given command to run", PgLOG.LGWNEX)
112
112
  if args: cmd += " " + args
113
113
 
114
- sbuf = build_bash_script(cmd, coptions, rdasub)
114
+ sbuf = build_bash_script(cmd, coptions, gdexsub)
115
115
  PgLOG.pglog(sbuf, PgLOG.MSGLOG)
116
116
  PgLOG.PGLOG['ERR2STD'] = ['bind mouting']
117
- PgLOG.pgsystem(rdasub, PgLOG.LOGWRN, 6, sbuf)
117
+ PgLOG.pgsystem(gdexsub, PgLOG.LOGWRN, 6, sbuf)
118
118
  PgLOG.PGLOG['ERR2STD'] = []
119
119
 
120
120
  sys.exit(0)
@@ -122,7 +122,7 @@ def main():
122
122
  #
123
123
  # build bash script to submit a PBS batch job
124
124
  #
125
- def build_bash_script(cmd, coptions, rdasub):
125
+ def build_bash_script(cmd, coptions, gdexsub):
126
126
 
127
127
  buf = "#!/usr/bin/bash\n\n" # qsub starting bash script
128
128
 
@@ -1,17 +1,17 @@
1
1
 
2
2
  To submit a job execution as a batch job in bash script on a PBS node via 'qsub'.
3
3
 
4
- Usage: rdaqsub [qsub-options] [-cwd WorkDir] [-env EnvironmentPairs] \
5
- [-mod Modules] [-res Reservation] -cmd Command [cmd-options]
4
+ Usage: bashqsub [qsub-options] [-cwd WorkDir] [-env EnvironmentPairs] \
5
+ [-mod Modules] [-res Reservation] -cmd Command [cmd-options]
6
6
 
7
7
  - qsub-options, accepts options that can be passed to 'qsub' in a bash script.
8
8
  Check qsub man page for help on the PBS batch options. Here is the list of
9
9
  qsub options that are included at default:
10
- -o LOGPATH/rdaqsub/
11
- -e LOGPATH/rdaqsub/
10
+ -o LOGPATH/gdexqsub/
11
+ -e LOGPATH/gdexqsub/
12
12
  -A P43713000
13
13
  -m a
14
- -q regular
14
+ -q gdex
15
15
  -l walltime=6:00:00,select=1:node=1:mem=1gb
16
16
 
17
17
  - Option -cwd, set the working directory for the Command to be executed. If
@@ -33,10 +33,10 @@
33
33
  A bash script example:
34
34
  #!/usr/bin/bash
35
35
 
36
- #PBS -o /gpfs/u/home/rdadata/dssdb/log/rdaqsub/
37
- #PBS -e /gpfs/u/home/rdadata/dssdb/log/rdaqsub/
36
+ #PBS -o /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
37
+ #PBS -e /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
38
38
  #PBS -A P43713000
39
- #PBS -q rda@casper-pbs
39
+ #PBS -q gdex@casper-pbs
40
40
  #PBS -m n
41
41
  #PBS -N dsrqst
42
42
  #PBS -l walltime=1:00:00
@@ -56,9 +56,9 @@ module load conda
56
56
  module load grib-util
57
57
  module load wgrib2
58
58
 
59
- conda activate /glade/work/rdadata/conda-envs/pg-casper
59
+ conda activate /glade/work/gdexdata/conda-envs/pg-casper
60
60
 
61
- echo /gpfs/u/home/rdadata/bin/dsrqst d277000 PR -RI 750748 -b -d
62
- /gpfs/u/home/rdadata/bin/dsrqst d277000 PR -RI 750748 -b -d
61
+ echo /glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d277000 PR -RI 750748 -b -d
62
+ /glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d277000 PR -RI 750748 -b -d
63
63
 
64
64
  date
@@ -39,7 +39,7 @@ SOPTIONS = { # single-dash option values
39
39
  'o' : None, # will set to default if not provided
40
40
  'e' : None,
41
41
  'A' : "P43713000",
42
- 'q' : "rda@casper-pbs",
42
+ 'q' : "gdex@casper-pbs",
43
43
  # 'm' : 'a',
44
44
  'm' : 'n',
45
45
  }
@@ -50,9 +50,9 @@ SOPTIONS = { # single-dash option values
50
50
  def main():
51
51
 
52
52
  aname = 'tcshqsub'
53
- pname = 'rdaqsub'
53
+ pname = 'gdexqsub'
54
54
  PgLOG.set_help_path(__file__)
55
- rdasub = PgLOG.BCHCMDS['PBS']
55
+ gdexsub = PgLOG.BCHCMDS['PBS']
56
56
  coptions = {'cmd' : None, 'cwd' : None, 'env' : None, 'mod' : None, 'res' : 'default'} # customized options
57
57
  copts = '|'.join(coptions)
58
58
  option = None
@@ -61,7 +61,7 @@ def main():
61
61
  if not argv: PgLOG.show_usage(aname)
62
62
  PgLOG.PGLOG['LOGFILE'] = pname + ".log"
63
63
  PgLOG.cmdlog("{} {}".format(aname, ' '.join(argv)))
64
- if not PgLOG.valid_command(rdasub): PgLOG.pglog("{}: miss {} command to submit batch job".format(rdasub, PgLOG.PGLOG['PBSNAME']), PgLOG.LGWNEX)
64
+ if not PgLOG.valid_command(gdexsub): PgLOG.pglog("{}: miss {} command to submit batch job".format(gdexsub, PgLOG.PGLOG['PBSNAME']), PgLOG.LGWNEX)
65
65
 
66
66
  while argv:
67
67
  arg = argv.pop(0)
@@ -80,7 +80,7 @@ def main():
80
80
  if option == "env": option = 'v'
81
81
  continue
82
82
 
83
- if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg, rdasub), PgLOG.LGEREX)
83
+ if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg, gdexsub), PgLOG.LGEREX)
84
84
  if arg.find(' ') > -1 and not re.match(r'^[\'\"].*[\'\"]$', arg): # quote string with space but not quoted yet
85
85
  if arg.find("'") > -1:
86
86
  arg = '"{}"'.format(arg)
@@ -111,10 +111,10 @@ def main():
111
111
  if not cmd: PgLOG.pglog(coptions['cmd'] + ": Cannot find given command to run", PgLOG.LGWNEX)
112
112
  if args: cmd += " " + args
113
113
 
114
- sbuf = build_tcsh_script(cmd, coptions, rdasub)
114
+ sbuf = build_tcsh_script(cmd, coptions, gdexsub)
115
115
  PgLOG.pglog(sbuf, PgLOG.MSGLOG)
116
116
  PgLOG.PGLOG['ERR2STD'] = ['bind mouting']
117
- PgLOG.pgsystem(rdasub, PgLOG.LOGWRN, 6, sbuf)
117
+ PgLOG.pgsystem(gdexsub, PgLOG.LOGWRN, 6, sbuf)
118
118
  PgLOG.PGLOG['ERR2STD'] = []
119
119
 
120
120
  sys.exit(0)
@@ -122,7 +122,7 @@ def main():
122
122
  #
123
123
  # build tcsh script to submit a PBS batch job
124
124
  #
125
- def build_tcsh_script(cmd, coptions, rdasub):
125
+ def build_tcsh_script(cmd, coptions, gdexsub):
126
126
 
127
127
  buf = "#!/bin/tcsh\n\n" # sbatch starting tcsh script
128
128
 
@@ -1,17 +1,17 @@
1
1
 
2
2
  To submit a job execution as a batch job in tcsh script on a PBS node via 'qsub'.
3
3
 
4
- Usage: rdaqsub [qsub-options] [-cwd WorkDir] [-env EnvironmentPairs] \
5
- [-mod Modules] [-res Reservation] -cmd Command [cmd-options]
4
+ Usage: tcshqsub [qsub-options] [-cwd WorkDir] [-env EnvironmentPairs] \
5
+ [-mod Modules] [-res Reservation] -cmd Command [cmd-options]
6
6
 
7
7
  - qsub-options, accepts options that can be passed to 'qsub' in a tcsh script.
8
8
  Check qsub man page for help on the PBS batch options. Here is the list of
9
9
  qsub options that are included at default:
10
- -o LOGPATH/rdaqsub/
11
- -e LOGPATH/rdaqsub/
10
+ -o LOGPATH/gdexqsub/
11
+ -e LOGPATH/gdexqsub/
12
12
  -A P43713000
13
13
  -m a
14
- -q regular
14
+ -q gdex
15
15
  -l walltime=6:00:00,select=1:node=1:mem=1gb
16
16
 
17
17
  - Option -cwd, set the working directory for the Command to be executed. If
@@ -33,17 +33,17 @@
33
33
  A tash script example:
34
34
  #!/bin/tcsh
35
35
 
36
- #PBS -o /gpfs/u/home/rdadata/dssdb/log/rdaqsub/
37
- #PBS -e /gpfs/u/home/rdadata/dssdb/log/rdaqsub/
36
+ #PBS -o /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
37
+ #PBS -e /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
38
38
  #PBS -A P43713000
39
- #PBS -q rda@casper-pbs
39
+ #PBS -q gdex@casper-pbs
40
40
  #PBS -m a
41
41
  #PBS -N dsrqst
42
42
  #PBS -l walltime=12:00:00
43
43
  #PBS -l select=1:mem=20gb
44
44
  setenv HOME /gpfs/u/home/davestep
45
- source /etc/profile.d/z00_modules.tsh
46
- source /glade/u/apps/opt/conda/etc/profile.d/conda.tsh
45
+ source /etc/profile.d/z00_modules.csh
46
+ source /glade/u/apps/opt/conda/etc/profile.d/conda.csh
47
47
  source /gpfs/u/home/davestep/.tcshrc
48
48
  pwd; hostname; date
49
49
 
@@ -56,7 +56,7 @@ module load conda
56
56
  module load grib-util
57
57
  module load wgrib2
58
58
 
59
- conda activate /glade/work/rdadata/conda-envs/pg-casper
59
+ conda activate /glade/work/gdexdata/conda-envs/pg-casper
60
60
 
61
- echo /gpfs/u/home/rdadata/bin/dsrqst d628000 SP -RI 729708 -NP -b -d
62
- /gpfs/u/home/rdadata/bin/dsrqst d628000 SP -RI 729708 -NP -b -d
61
+ echo /glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d628000 SP -RI 729708 -NP -b -d
62
+ /glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d628000 SP -RI 729708 -NP -b -d
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_miscs
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: RDA Python package to hold RDA miscellaneous utility programs
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-miscs