I'm trying to access the Open Data Cube product (indexed Landsat-8) through the Jupyter notebook. Except for the name and description, all other product information such as instrument, format, CRS, resolution, etc is all None or NaN. But I had put that information in the dataset document file.
For this dataset, while I'm trying to execute the following code,
api = DataAccessApi(config = 'C:/Users/user/datacube.conf')
product = "LC08_L2SP"
# Get product extents
prod_extents = api.get_query_metadata(product=product)
latitude_extents = prod_extents['lat_extents']
print("Lat bounds:", latitude_extents)
longitude_extents = prod_extents['lon_extents']
print("Lon bounds:", longitude_extents)
I'm getting errors like,
.........................
c:\users\user\datacube-1.8.3\datacube\api\core.py in output_geobox(like, output_crs, resolution, align, grid_spec, datasets, geopolygon, **query)
660 # specification from grid_spec
661 if grid_spec is None or grid_spec.crs is None:
--> 662 raise ValueError("Product has no default CRS. Must specify 'output_crs' and 'resolution'")
663 crs = grid_spec.crs
664 if resolution is None:
ValueError: Product has no default CRS. Must specify 'output_crs' and 'resolution'
I've done a local installation of Open Data Cube on Windows 8 and with PostgreSQL. Created the product definition file and dataset document file (File attached) as described in Datacube documentation.