Commit ac2146cb authored by Alessandro Frigeri's avatar Alessandro Frigeri
Browse files

added notebook

parent ce6f57e5
Loading
Loading
Loading
Loading

example1.ipynb

0 → 100644
+71 −0
Original line number Diff line number Diff line
%% Cell type:code id: tags:

``` python
import moondb
```

%% Cell type:code id: tags:

``` python
m = moondb.get_missions()
```

%% Output

    {'name': 'Apollo 11'}
    {'name': 'Apollo 12'}
    {'name': 'Apollo 14'}
    {'name': 'Apollo 15'}
    {'name': 'Apollo 16'}
    {'name': 'Apollo 17'}
    {'name': 'Luna 16'}
    {'name': 'Luna 20'}
    {'name': 'Luna 24'}

%% Cell type:code id: tags:

``` python
f = moondb.Filter()
#f.specimenType = ["SOIL"]
results = f.get_results()
```

%% Cell type:code id: tags:

``` python
len(results)
```

%% Output

    37034

%% Cell type:code id: tags:

``` python
an = print(results[0])
```

%% Output

    {'analysisCode': '15100,3#3#0158', 'analyzedMaterial': 'WHOLE ROCK', 'comment': '0.97 g, 950C', 'dataset': 'IRVING, 1972#TABLE 1', 'citation': 'IRVING, 1972', 'dataResults': [{'unit': 'ppm', 'laboratory': 'UNKNOWN', 'variable': 'H', 'methodName': 'UNKNOWN', 'methodComment': 'COMBUSTION (NEW LINE, YIELDING LOW BLANKS)', 'value': '90.0', 'methodCode': 'UNKNOWN'}, {'unit': 'per mil', 'laboratory': 'UNKNOWN', 'variable': 'DELTA_D', 'methodName': 'UNKNOWN', 'methodComment': 'COMBUSTION (NEW LINE, YIELDING LOW BLANKS)', 'value': '-554.0', 'methodCode': 'UNKNOWN'}, {'unit': 'ppm', 'laboratory': 'UNKNOWN', 'variable': 'C', 'methodName': 'UNKNOWN', 'methodComment': 'COMBUSTION (NEW LINE, YIELDING LOW BLANKS)', 'value': '99.0', 'methodCode': 'UNKNOWN'}, {'unit': 'per mil', 'laboratory': 'UNKNOWN', 'variable': 'DELTA_C13', 'methodName': 'UNKNOWN', 'methodComment': 'COMBUSTION (NEW LINE, YIELDING LOW BLANKS)', 'value': '7.9', 'methodCode': 'UNKNOWN'}]}

%% Cell type:code id: tags:

``` python
```

%% Cell type:code id: tags:

``` python
print(anaobj)
```

%% Output

    None

%% Cell type:code id: tags:

``` python
```