Skip to content
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

Casting data types #2

Open
RyanBalfanz opened this issue Oct 28, 2009 · 0 comments
Open

Casting data types #2

RyanBalfanz opened this issue Oct 28, 2009 · 0 comments

Comments

@RyanBalfanz
Copy link
Owner

Add functionality to define casting types. For example, we may store a dictionary mapping a pattern to match with a callable. Then the casting may be as simple as map(pattern, callable).

{
RECORD_TYPE: str,
SAMPLE_BITS: int
}

If in the event that the pattern is not matched we may attempt to auto-detect type or a default callable (probably str).

I believe that either the PDS Standards Reference or Planetary Science Data Dictionary (See Wiki) provide information defining the type of many common PDS labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant