-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathhowtos.txt
More file actions
69 lines (52 loc) · 2.1 KB
/
howtos.txt
File metadata and controls
69 lines (52 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
how to add a new state data in the DB?
- add the state csv: https://drive.google.com/drive/folders/1TXlGS9T3FVrmCh2BIyP-0Hs1l-iolOPT
- run data to db from geoadmin: from the django shell
- make an api for this too
- download csv from ictd datasets [panchayat csv's]
how to make a default plan for a block?
- activate the blocks
{
"state_id": 23,
"district_id": 229,
"block_id": 2394
}
- make a default plan
how to push files to the server?
- scp -i ~/gramvaani/server/nrm-vm.pem -r /pathtofolder/data/lulc_resolution_18mar24 ubuntu@geoserver.gramvaani.org:shapefiles/
- /var/lib/tomcat9/webapps/geoserver/data/data
MWSs STEPS:
1. create a MWS for a block : uid, polygons
2. calculate area of MWS
3. merge small MWSs with bigger ones
4. Calculate ET, P, R, deltaG and G
https://dwtkns.com/srtm30m/
NREGA work categories:
- SWC - Landscape level impact -> Soil and water conservation
- Agri Impact - HH, Community -> Land restoration
- Plantation -> Plantations
- Irrigation - Site level impact -> Irrigation on farms
- Irrigation Site level - Non RWH -> Other farm works
- Household Livelihood -> Off-farm livelihood assets
- Others - HH, Community -> Community assets
Setup Headless Firefox for Selenium:
- Install firefox-esr
sudo apt-get update
sudo apt-get install -y firefox-esr
- check for headless run
/usr/bin/firefox-esr --headless --screenshot /tmp/ff_test.png https://example.com/
- Install webdriver manager
python -m pip install webdriver-manager==4.0.2
- Smoke test
- This command will "start geckodriver and point it at Firefox ESR"
"$HOME/.wdm/drivers/geckodriver/linux64/v0.36.0/geckodriver" \
--log trace \
--binary /usr/bin/firefox-esr
- Use this code to test
python
>>> from selenium.webdriver import Remote
>>> from selenium.webdriver.firefox.options import Options
>>> opts = Options(); opts.headless = True
>>> driver = Remote(command_executor="http://127.0.0.1:4444", options=opts)
>>> driver.get("https://example.com")
>>> print(driver.title) # "Example Domain"
>>> driver.quit()