-
Notifications
You must be signed in to change notification settings - Fork 24
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
missing files? #94
Comments
in addition to my previous post. I'm running a test and it looks like the issue I reported applies only to LS7 and LS8 and from 2013 to current (i.e. no problem with 2012 or earlier and/or LS5). |
Take a look at the examples: The docs page has a lot more information on data discovery and command line tools: Also you're better off using the api, as in your example you're finding files that need to be mosaiced, eg: from datetime import date
from datacube.api.model import DatasetType, Satellite
from datacube.api.query import list_tiles_as_list
satellites = [Satellite(i) for i in ['LS7']]
dataset_types = [DatasetType.ARG25, DatasetType.PQ25, DatasetType.FC25]
min_date = date(2015, 12, 01)
max_date = date(2015, 12, 31)
x_cell = [145]
y_cell = [-36]
tiles = list_tiles_as_list(x=x_cell, y=y_cell, acq_min=min_date, acq_max=max_date, satellites=satellites, dataset_types=dataset_types)
for tile in tiles:
print "Acquisition time: {}".format(tile.start_datetime)
nbar, pq, fc = [tile.datasets[ds] for ds in dataset_types]
print "NBAR path: {}".format(nbar.path)
print "PQ path: {}".format(pq.path)
print "FC path: {}\n".format(fc.path)
|
Thanks Josh, I didn't know about all these documentation and tools. Juan |
Josh, your example retrieves data ok. example:
same example but starting in 2014 returns existing data for 2014 but nothing for 2015 onwards.
Any ideas? Thanks Juan |
by the way, none of the command line API tools gets anything after 2014... |
last comment: I tried to replicate what you suggested and couldn't get a proper answer either (for data in 2015). Example:
result is empty try this now:
and get
looks like some file needs to be utdated? Juan |
Your first example works for me:
Maybe you're using a different version??? From the u46 project modules I used the following module to produce the above output: This might resolve your other questions regarding data not being found post 2014. |
Your Python example also works for me.
So could be the version that you're using is pointing to a different database. |
I actually tried loading a newer module yesterday, but I get the following error message:
|
Hi DataCubers,
A quick question about discovering what data are available in the datacube (Landsat).
First let me clarify that I am not using the Python API at the moment.
What I do is search by filename. For example if I want L8 for a given tile and a given year and month, I go to the corresponding folder and look all the filenames that match my requirements.
In most cases I get a right answer but in some cases there are files missing
Example: for L8 in the tile 145 -35 and January 2015, I go to /g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS8_OLI_TIRS/145_-035/2015/
And then search using the string _2015-01-
In that particular case I find 3 NBAR :
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS8_OLI_TIRS/145_-035/2015/LS8_OLI_TIRS_NBAR_145_-035_2015-01-08T00-08-18.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS8_OLI_TIRS/145_-035/2015/LS8_OLI_TIRS_NBAR_145_-035_2015-01-17T00-02-28.tif
Another example, LS7, 2015, December, tile 145, -36
I find only two NBAR
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_NBAR_145_-036_2015-12-02T00-09-34.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_NBAR_145_-036_2015-12-02T00-09-58.tif
But 5 FC (which need NBAR to be done first)
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_FC_145_-036_2015-12-02T00-09-34.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_FC_145_-036_2015-12-02T00-09-58.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_FC_145_-036_2015-12-11T00-03-34.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_FC_145_-036_2015-12-11T00-03-58.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_FC_145_-036_2015-12-27T00-03-47.tif
And 8 PQA!!
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-02T00-09-34.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-02T00-09-58.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-11T00-03-34.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-11T00-03-58.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-18T00-09-51.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-18T00-10-15.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-27T00-03-47.tif
/g/data2/rs0/tiles/EPSG4326_1deg_0.00025pixel/LS7_ETM/145_-036/2015/LS7_ETM_PQA_145_-036_2015-12-27T00-04-11.tif
Any idea why and if I am doing anything wrong? Is there a python function that does this?
Or is there any other easier way to find what’s available?
Cheers
Juan
The text was updated successfully, but these errors were encountered: