Comments (7)
where does this message come from? an XML validator i assume. where does it
get the catalog schema?
On Sun, Jun 21, 2015 at 9:49 AM, Ryan May [email protected] wrote:
The following code:
from siphon.catalog import TDSCatalog
cat = TDSCatalog('http://thredds.ucar.edu/thredds/catalog/nws/metar/ncdecoded/'
'catalog.xml?'
'dataset=nws/metar/ncdecoded/Metar_Station_Data_fc.cdmr')yields:
WARNING:root:controlledVocabulary must have an attribute: vocabulary
WARNING:root:controlledVocabulary must have an attribute: vocabularyI'm not sure if we're wrong or if thredds is wrong, but since we control
it all, we really should make these warning go away somehow. (i.e. fix TDS
or fix Siphon).—
Reply to this email directly or view it on GitHub
#28.
from siphon.
<xsd:complexType name="controlledVocabulary">
xsd:simpleContent
<xsd:extension base="xsd:string">
<xsd:attribute name="vocabulary" type="xsd:string"/>
/xsd:extension
/xsd:simpleContent
/xsd:complexType
Optional and Required Attributes
Attributes are optional by default. To specify that the attribute is
required, use the "use" attribute:
<xs:attribute name="lang" type="xs:string" use="required"/>
On Sun, Jun 21, 2015 at 3:25 PM, John Caron [email protected] wrote:
where does this message come from? an XML validator i assume. where does
it get the catalog schema?On Sun, Jun 21, 2015 at 9:49 AM, Ryan May [email protected]
wrote:The following code:
from siphon.catalog import TDSCatalog
cat = TDSCatalog('http://thredds.ucar.edu/thredds/catalog/nws/metar/ncdecoded/'
'catalog.xml?'
'dataset=nws/metar/ncdecoded/Metar_Station_Data_fc.cdmr')yields:
WARNING:root:controlledVocabulary must have an attribute: vocabulary
WARNING:root:controlledVocabulary must have an attribute: vocabularyI'm not sure if we're wrong or if thredds is wrong, but since we control
it all, we really should make these warning go away somehow. (i.e. fix TDS
or fix Siphon).—
Reply to this email directly or view it on GitHub
#28.
from siphon.
I got it wrong in siphon. I'll get it fixed.
On Sunday, June 21, 2015, John Caron [email protected] wrote:
<xsd:complexType name="controlledVocabulary">
xsd:simpleContent
<xsd:extension base="xsd:string">
<xsd:attribute name="vocabulary" type="xsd:string"/>
/xsd:extension
/xsd:simpleContent
/xsd:complexTypeOptional and Required Attributes
Attributes are optional by default. To specify that the attribute is
required, use the "use" attribute:
<xs:attribute name="lang" type="xs:string" use="required"/>On Sun, Jun 21, 2015 at 3:25 PM, John Caron <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:where does this message come from? an XML validator i assume. where does
it get the catalog schema?On Sun, Jun 21, 2015 at 9:49 AM, Ryan May <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');>
wrote:The following code:
from siphon.catalog import TDSCatalog
cat = TDSCatalog('
http://thredds.ucar.edu/thredds/catalog/nws/metar/ncdecoded/'
'catalog.xml?'
'dataset=nws/metar/ncdecoded/Metar_Station_Data_fc.cdmr')yields:
WARNING:root:controlledVocabulary must have an attribute: vocabulary
WARNING:root:controlledVocabulary must have an attribute: vocabularyI'm not sure if we're wrong or if thredds is wrong, but since we control
it all, we really should make these warning go away somehow. (i.e. fix
TDS
or fix Siphon).—
Reply to this email directly or view it on GitHub
#28.—
Reply to this email directly or view it on GitHub
#28 (comment).
from siphon.
@JohnLCaron - If attributes are optional by default, what is the difference between the optional attributes that minOccurs=0 and some those that do not?
For example:
<xsd:complexType name="spatialRange">
<xsd:sequence>
<xsd:element name="start" type="xsd:double" />
<xsd:element name="size" type="xsd:double" />
<xsd:element name="resolution" type="xsd:double" minOccurs="0" />
<xsd:element name="units" type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
What is the difference between, say, start and stop, and resolution and units? Does that indicate that if there is a start and stop, there may be a resolution and units (but start and stop must exist)?
from siphon.
attributes can only be required or not.
elements (as above) can have 0 to many, default i think is min=1, max=1
On Mon, Jun 22, 2015 at 10:06 AM, Sean Arms [email protected]
wrote:
@JohnLCaron https://github.com/JohnLCaron - If attributes are optional
by default, what is the difference between the optional attributes that
minOccurs=0 and some those that do not?For example:
<xsd:complexType name="spatialRange">
xsd:sequence
<xsd:element name="start" type="xsd:double" />
<xsd:element name="size" type="xsd:double" />
<xsd:element name="resolution" type="xsd:double" minOccurs="0" />
<xsd:element name="units" type="xsd:string" minOccurs="0" />
/xsd:sequence
/xsd:complexTypeWhat is the difference between, say, start and stop, and resolution and
units? Does that indicate that if there is a start and stop, there may be a
resolution and units (but start and stop must exist)?—
Reply to this email directly or view it on GitHub
#28 (comment).
from siphon.
Ah, yes. My bad for mixing up attrs and elements.
Thanks!
On Mon, Jun 22, 2015 at 11:27 AM, John Caron [email protected]
wrote:
attributes can only be required or not.
elements (as above) can have 0 to many, default i think is min=1, max=1
On Mon, Jun 22, 2015 at 10:06 AM, Sean Arms [email protected]
wrote:@JohnLCaron https://github.com/JohnLCaron - If attributes are optional
by default, what is the difference between the optional attributes that
minOccurs=0 and some those that do not?For example:
<xsd:complexType name="spatialRange">
xsd:sequence
<xsd:element name="start" type="xsd:double" />
<xsd:element name="size" type="xsd:double" />
<xsd:element name="resolution" type="xsd:double" minOccurs="0" />
<xsd:element name="units" type="xsd:string" minOccurs="0" />
/xsd:sequence
/xsd:complexTypeWhat is the difference between, say, start and stop, and resolution and
units? Does that indicate that if there is a start and stop, there may
be a
resolution and units (but start and stop must exist)?—
Reply to this email directly or view it on GitHub
#28 (comment).—
Reply to this email directly or view it on GitHub
#28 (comment).
from siphon.
Fixed with 7f07012.
from siphon.
Related Issues (20)
- Server Error (403: Forbidden) HOT 9
- 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
- TDSCatalog does not include base path in access_url HOT 2
- 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
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.