rda-python-icoads 1.0.3__tar.gz → 1.0.5__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.

Potentially problematic release.


This version of rda-python-icoads might be problematic. Click here for more details.

Files changed (18) hide show
  1. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/PKG-INFO +1 -1
  2. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/pyproject.toml +1 -1
  3. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads/README_R3.0_Subset.html +1 -1
  4. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads/imma1_subset.py +10 -5
  5. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads.egg-info/PKG-INFO +1 -1
  6. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/LICENSE +0 -0
  7. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/MANIFEST.in +0 -0
  8. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/README.md +0 -0
  9. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/setup.cfg +0 -0
  10. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads/PgIMMA.py +0 -0
  11. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads/__init__.py +0 -0
  12. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads/rdimma1_csv.f +0 -0
  13. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads.egg-info/SOURCES.txt +0 -0
  14. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads.egg-info/dependency_links.txt +0 -0
  15. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads.egg-info/entry_points.txt +0 -0
  16. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads.egg-info/requires.txt +0 -0
  17. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/src/rda_python_icoads.egg-info/top_level.txt +0 -0
  18. {rda_python_icoads-1.0.3 → rda_python_icoads-1.0.5}/tests/test_icoads.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rda_python_icoads
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: RDA python package to manage RDA ICOADS datasets
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-icoads
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "rda_python_icoads"
9
- version = "1.0.3"
9
+ version = "1.0.5"
10
10
  authors = [
11
11
  { name="Zaihua Ji", email="zji@ucar.edu" },
12
12
  ]
@@ -87,7 +87,7 @@ column of data provided.
87
87
  </ul>
88
88
 
89
89
  <hr>
90
- <h3>Your data request details for user name, temporal range, spatial domain, and number of records:</h3>
90
+ <h3>Your data request details for user name, temporal range, and spatial domain:</h3>
91
91
 
92
92
  <ul>
93
93
  <li>User Name: __USER__</li>
@@ -403,17 +403,17 @@ def process_subset_request(ridx, rdir, rstr):
403
403
  if ptcnt > 0:
404
404
  fname = PVALS['rdimma1']
405
405
  cnd = "rindex = {} AND wfile = '{}' AND status = 'O'".format(ridx, fname)
406
- if op.isfile(fname) and PgDBI.pgget("wfrqst", "", cnd): return
406
+ if PgDBI.pgget("wfrqst", "", cnd): return
407
407
 
408
408
  get_subset_info(rstr)
409
409
 
410
410
  if ptcnt > 0:
411
411
  set_var_info()
412
412
  PgFile.change_local_directory(rdir, PgLOG.LOGWRN)
413
- build_final_files(ridx, rstr)
413
+ fcnt = build_final_files(ridx, rstr)
414
414
  else:
415
- tcnt = get_table_info(PVALS['dates'])
416
- for i in range(tcnt):
415
+ fcnt = get_table_info(PVALS['dates'])
416
+ for i in range(fcnt):
417
417
  bdate = PVALS['bdate'][i]
418
418
  edate = PVALS['edate'][i]
419
419
  tidx = PVALS['tidx'][i]
@@ -422,9 +422,12 @@ def process_subset_request(ridx, rdir, rstr):
422
422
  pgrec['disp_order'] = i+1
423
423
  pgrec['command'] = pgcmd + " -f -FI"
424
424
  pgrec['cmd_detail'] = "dates={} {}&tidx={}".format(bdate, edate, tidx)
425
- fname = "ICOADS_R3.0_Rqst{}_{}-{}.csv".format(ridx, bdate, edate)
425
+ fname = "ICOADS_R3.0_Rqst{}_{}-{}.csv".format(ridx, bdate.replace('-', ''), edate.replace('-', ''))
426
426
  PgSubset.add_request_file(ridx, fname, pgrec, PgLOG.LGEREX)
427
427
 
428
+ record = {'fcount' : fcnt}
429
+ PgDBI.pgupdt('dsrqst', record, "rindex = {}".format(ridx))
430
+
428
431
  #
429
432
  # process a validated subset request file
430
433
  #
@@ -644,6 +647,8 @@ def build_final_files(ridx, rstr):
644
647
  PgFile.local_copy_local(fname, PVALS['codedir'] + fname, PgLOG.LGEREX)
645
648
  PgSubset.add_request_file(ridx, fname, pgrec, PgLOG.LGEREX)
646
649
 
650
+ return fcnt
651
+
647
652
  #
648
653
  # process reqest info, create command file and the input file list
649
654
  #
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rda_python_icoads
3
- Version: 1.0.3
3
+ Version: 1.0.5
4
4
  Summary: RDA python package to manage RDA ICOADS datasets
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-icoads