-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'NoneType' object has no attribute 'items' when indexing dataset. #988
Comments
It's because of the confusing metadata relocation logic. What appears as lineage:
source_datasets: {} I don't know what was the original reason for this... |
I still get the same error. Example {'extent': {'center_dt': '2019-04-24T05:26:21.500000',
'coord': {'ll': {'lat': 10.428304773879523,
'lon': 46.551778699301416},
'lr': {'lat': 11.712077471815588,
'lon': 46.70859051248336},
'ul': {'lat': 10.192431517262827,
'lon': 47.43268391106645},
'ur': {'lat': 11.497321921234711,
'lon': 47.59280260389223}},
'from_dt': '2019-04-24T05:26:09',
'to_dt': '2019-04-24T05:26:34'},
'format': {'name': 'GeoTIFF'},
'grid_spatial': {'projection': {'geo_ref_points': {'ll': {'x': 4800000.0,
'y': 1500000.0},
'lr': {'x': 4900000.0,
'y': 1500000.0},
'ul': {'x': 4800000.0,
'y': 1600000.0},
'ur': {'x': 4900000.0,
'y': 1600000.0}},
'spatial_reference': 'PROJCS["Azimuthal_Equidistant",GEOGCS["WGS '
'84",DATUM["WGS_1984",SPHEROID["WGS '
'84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]],PROJECTION["Azimuthal_Equidistant"],PARAMETER["latitude_of_center",53],PARAMETER["longitude_of_center",24],PARAMETER["false_easting",5837287.81977],PARAMETER["false_northing",2121415.69617],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]'}},
'id': 'dd1ea43b-eec9-44b8-b143-5fdf648db705',
'image': {'bands': {'VH': {'layer': 1,
'path': '/home/nikola/Data/Projects/ACUBE/S1_TUW/sig0/SIG0-----_SGRTA01_S1B_IWGRDH1VHD_20190424_052609--_EU010M_E048N015T1.tif'},
'VV': {'layer': 1,
'path': '/home/nikola/Data/Projects/ACUBE/S1_TUW/sig0/SIG0-----_SGRTA01_S1B_IWGRDH1VVD_20190424_052609--_EU010M_E048N015T1.tif'}}},
'instrument': {'name': 'SAR'},
'lineage': {'source_datasets': {}},
'name': 'TUW_SIG0_S1_20190424052609_20190424052634',
'platform': {'code': 'Sentinel-1'},
'product_type': 'TUW_SIG0_S1'} |
How does your metadata and product definition documents look like? |
Try adding datacube-core/datacube/index/hl.py Lines 199 to 232 in dcab0e0
|
Thanks for the heads up. Works but with a db constraint error. In hindsight in my code I should have probably extended |
Hey all I get an AttributeError when trying to index via some custom code. I have a minimum code sample below. Am I missing anything? I tried to set
sources={}
in thedcm.Dataset
but it is checked and fails before below error.datacube dataset add
works properly.Expected behaviour
Indexed data into the database
Actual behaviour
Steps to reproduce the behaviour
Environment information
datacube --version
are you using? 1.8.1The text was updated successfully, but these errors were encountered: