1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "requests": [
12 "drawdown 100 ft from a well pumping 500 gpm for 1 day, T 10,000 gpd/ft, S 0.0002",
13 "pumping test: Q 500 gpm, observation well 200 ft away, time (min) and drawdown (ft): 1 0.23, 2 1.11, 3 2.07, 5 3.74, 8 5.65, 10 6.66, 15 8.61, 20 10.06, 30 12.19, 50 14.95, 80 17.56, 100 18.80, 150 21.09, 200 22.71, 300 25.02, 500 27.93, 800 30.61, 1000 31.89",
14 "three-point: (0, 0) head 100.5 m, (300, 0) head 100.2 m, (0, 400) head 99.8 m, K 15 m/d, porosity 0.3",
15 "distance-drawdown after 1 day, Q 1000 m3/d, data: 10 m 1.74, 30 m 1.391, 100 m 1.008, 300 m 0.659",
16 "well field: 20 L/s at (0, 0), 15 L/s at (400, 0), point (200, 100), T 800 m2/d, S 0.0005, after 30 days",
17 {
18 "type": "drawdown",
19 "q": "25 L/s",
20 "conductivity": "20 m/d",
21 "thickness": "30 m",
22 "storativity": 0.15,
23 "unconfined": true,
24 "distances": [
25 "15 m",
26 "50 m",
27 "150 m"
28 ],
29 "times": [
30 "1 d",
31 "30 d"
32 ]
33 }
34 ]
35};
36
37
38const run = await client.actor("jumblemog/groundwater-calculator").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48