Skip to content

Commit

Permalink
check standard_name only
Browse files Browse the repository at this point in the history
  • Loading branch information
jeong1park committed Feb 7, 2019
1 parent cc04166 commit 191cb6e
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 6 deletions.
Binary file removed geospaas/.DS_Store
Binary file not shown.
8 changes: 2 additions & 6 deletions geospaas/nansat_ingestor/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ def get_or_create(self, uri, n_points=10, uri_filter_args=None, *args, **kwargs)
all_band_meta = n.bands()
for band_id in range(1, len(all_band_meta)+1):
band_meta = all_band_meta[band_id]
validity = all([key in band_meta.keys() for key in
['standard_name', 'short_name', 'units', 'gcmd_science_keyword']])
if validity:
if 'standard_name' in band_meta.keys():
pp = Parameter.objects.get(standard_name=band_meta['standard_name'])
dsp, dsp_created = DatasetParameter.objects.get_or_create(dataset=ds, parameter=pp)
'''
Expand All @@ -141,9 +139,7 @@ def get_or_create(self, uri, n_points=10, uri_filter_args=None, *args, **kwargs)
all_band_meta = n.bands()
for band_id in range(1, len(all_band_meta)+1):
band_meta = all_band_meta[band_id]
validity = all([key in band_meta.keys() for key in
['standard_name', 'short_name', 'units']])
if validity:
if 'standard_name' in band_meta.keys():
pp = Parameter.objects.get(standard_name=band_meta['standard_name'])
dsp, dsp_created = DatasetParameter.objects.get_or_create(dataset=ds, parameter=pp)

Expand Down
Binary file removed provisioning/.DS_Store
Binary file not shown.
Binary file removed provisioning/roles/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed provisioning/roles/geospaas/.DS_Store
Binary file not shown.
Binary file removed provisioning/roles/nansencenter.django/.DS_Store
Binary file not shown.

0 comments on commit 191cb6e

Please sign in to comment.