-
Notifications
You must be signed in to change notification settings - Fork 75
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
TDSCatalog datasets property omits last element #309
Comments
Well this is a weird one. So I filled in your sample code with appropriate entries for GOES-16 satellite products from our THREDDS demonstration server: import siphon.catalog
BASE_URL = 'https://thredds.ucar.edu/thredds/catalog/satellite/goes/east/grb/ABI/FullDisk/Channel02/'
VAR='20200804'
cat = siphon.catalog.TDSCatalog(f'{BASE_URL}/catalog.xml')
subdir = cat.catalog_refs[VAR].follow()
print(subdir.datasets) and I got back 30 datasets in the code, which matched what I counted (at the time I'm writing this). Since you can't share the server, can you at least download and share the full |
It is actually very weird, I also was not able to replicate it on https://data.nodc.noaa.gov/thredds/catalog.html. I attach the two full
Note: I renamed the files to |
That's great. Let me dig in and see what I find... |
Ok so I have an idea on the problem, just not quite sure what the right fix is yet. The dataset elements here look like: <thredds:dataset name="2020-08-08.nc" ID="/opendap/hyrax/Waves/2020-08-08.nc">
<thredds:dataSize units="bytes">11226431</thredds:dataSize>
<thredds:date type="modified">2020-08-04T10:02:10Z</thredds:date>
<thredds:access serviceName="dap" urlPath="/Waves/2020-08-08.nc"/>
</thredds:dataset> With the access methods and lack of Lines 313 to 325 in bd972b4
which never puts the last dataset in, so it gets popped here: Lines 377 to 390 in bd972b4
I need to check with @lesserwhirls on why we do all that |
See also: #753 (comment) |
This problem is a show stopper for us. Unfortunately we will need to find a different solution. |
@jm-cook I'll try to take a look as soon as I can but will likely be in 2024 since the holidays are upon. Always happy to have community contributions if someone digs into this. |
Pretty sure this was fixed by #760, which will be included in the imminent 0.10 release. Feel free to re-open if you find that's not the case. |
I have a self-hosted OpenDAP server, and I noticed that whenever I do (
VAR
is a subdirectory)the last file of the subdirectory is missing. I tried with several subdirectories and always the same result. I would be happy to try and reproduce it if you know of any public OpenDAP server; unfortunately I cannot share mine. In my example, I get:
however, the server contains also the file 2020-08-01.nc (see screenshot attached).
The text was updated successfully, but these errors were encountered: