@@ -9,20 +9,20 @@ A Python package to quickly fetch carbon reservoir records at the Marine Reservo
9
9
The carbonferret package is simple, but powerful. For instance, let's say we want to find two sediment records
10
10
nearest 0° latitude, 0° longitude. We can open a python session and run:
11
11
12
- ``` python
13
- import carbonferret as cf
14
12
15
- results = cf.find_near(lat = 0 , lon = 0 , n = 2 )
16
- ```
13
+ import carbonferret as cf
14
+
15
+ results = cf.find_near(lat=0, lon=0, n=2)
16
+
17
17
18
18
The variable ` results ` is a [ pandas] ( http://pandas.pydata.org/ ) DataFrame with information on sample location and
19
19
reservoir values, among other variables provided by the Marine Reservoir Correction database.
20
20
21
21
We can take advantage of this. For example, we could find the average ΔR of these sites.
22
22
23
- ``` python
24
- results[' DeltaR' ].mean()
25
- ```
23
+
24
+ results['DeltaR'].mean()
25
+
26
26
Of course there are several other variables that we can look at, such as site references or site location.
27
27
28
28
This can be useful if you want to look up a few quick numbers in the lab, or if you're writing a script to
@@ -32,9 +32,9 @@ analyze hundreds of marine sediment cores.
32
32
33
33
You can install the package [ from PyPI] ( https://pypi.python.org/pypi/carbonferret ) with
34
34
35
- ```
36
- pip install carbonferret
37
- ```
35
+
36
+ pip install carbonferret
37
+
38
38
39
39
## Development and Support
40
40
0 commit comments