I am trying to load the following dataset into the DEA Sandbox
:
import datacube
dc = datacube.Datacube(app="Landsat")
import sys
sys.path.append("./Scripts")
from dea_datahandling import load_ard
ds = load_ard(dc = dc,
products = ['ga_ls8c_ard_3'],
time = ('2015-05-01', '2015-05-31'),
x = (691200, 692340),
y = (6093660, 6094260),
crs = 'EPSG:28355',
resampling = 'nearest',
group_by = 'solar_day',
measurements = ['nbart_red', 'nbart_nir', 'oa_fmask'],
output_crs = 'EPSG:28355',
resolution = (-30, 30))
When I view the x
and y
values, I notice they don't align up to the boundary I specified:
ds.x
xarray.DataArray'x'x: 38
array([691215., 691245., 691275., 691305., 691335., 691365., 691395., 691425.,
691455., 691485., 691515., 691545., 691575., 691605., 691635., 691665.,
691695., 691725., 691755., 691785., 691815., 691845., 691875., 691905.,
691935., 691965., 691995., 692025., 692055., 692085., 692115., 692145.,
692175., 692205., 692235., 692265., 692295., 692325.])
ds.y
xarray.DataArray'y'y: 20
array([6094245., 6094215., 6094185., 6094155., 6094125., 6094095., 6094065.,
6094035., 6094005., 6093975., 6093945., 6093915., 6093885., 6093855.,
6093825., 6093795., 6093765., 6093735., 6093705., 6093675.])
Is there a way to rectify this? I have a (areal) dataset with veg. structure data on a 30 x 30 m grid, based on these x and y boundaries and would like to calculate and then overlay NDVI from Landsat.