Comments (2)
Might be related to #114
However that was fixed?
from siphon.
I looked some more into this since I was curious as to why the fix to #114 does not solve my issue. I ran my little test on the oceandata opendap catalog link in #114 (now updated to https://oceandata.sci.gsfc.nasa.gov/opendap/SeaWiFS/L3SMI/2000/0101/catalog.xml) and see the same issue, ie opendap/hyrax
is not inserted into the url.
What is happening is that when access_urls
is constructed in make_access_urls()
, the server_base url is correctly constructed as 'https://oceandata.sci.gsfc.nasa.gov/opendap/hyrax', the url_path is obtained as the absolute path /SeaWiFS/L3SMI/2000/0101/SEASTAR_SEAWIFS_GAC.20000101.L3m.DAY.CHL.chlor_a.9km.nc
but then on the next line
access_urls[subservice.service_type] = urljoin(server_base, self.url_path)
urljoin
will create the absolute url, so the opendap/hyrax
part of the server_base url is lost.
This seems to be how hyrax is presenting the paths (ie with a leading slash).
According to the documentation here: https://docs.unidata.ucar.edu/tds/5.2/userguide/basic_client_catalog.html, the service base
, urlPath
, and dataset
should be concatenated together.
The code below shows the incorrectly constructed access_urls (the urls created cannot be accessed):
from siphon.catalog import TDSCatalog
cat_url = "https://oceandata.sci.gsfc.nasa.gov/opendap/SeaWiFS/L3SMI/2000/0101/catalog.xml"
cat = TDSCatalog(cat_url)
for cds in cat.datasets:
url = cat.datasets[cds].access_urls['dap']
print(f'access url = {url}')
from siphon.
Related Issues (20)
- issues getting CFS point data
- Update dataset in Wyoming upper air example
- ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) HOT 2
- Endian-ness issues when selecting on a coordinate HOT 3
- Datasets in nested catalogs have empty access_urls
- No access urls created for Dataset HOT 4
- NDBC Mid Great Lakes Station Do Not Show Up HOT 1
- WyomingUpperAir Missing Station Information
- Requesting a new release HOT 1
- Exception handling needed in _get_data method of WyomingUpperAir for missing or erroneous metadata HOT 2
- Protobuf module started making it impossible to access the UCAR THREDDS server using siphon TDSCatalog HOT 4
- TDSCatalog misses the last months entry HOT 2
- Add a walk function for navigating THREDDS catalogue HOT 2
- how to add the Specify additional variables you want to include HOT 1
- Descriptors cannot be created directly
- Wyoming Upper Air Data Request fails for 4/19/2024 00Z, returning only data for OUN HOT 1
- TDSCatalog not returning all datasets HOT 2
- CDMRemote xarray wrapper broken with xarray 2024.03.0
- Writing out a siphon'd xarray dataset as a netCDF HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siphon.