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

Factor: FCV - ACLED data (Violence Estimated Events) #55

Open
Tracked by #15
amyburness opened this issue Jun 21, 2024 · 13 comments
Open
Tracked by #15

Factor: FCV - ACLED data (Violence Estimated Events) #55

amyburness opened this issue Jun 21, 2024 · 13 comments
Labels
🔍️ Factor Analysis factors 🏙️ Place characterization Dimension - place characterization

Comments

@amyburness
Copy link

This indicator should be structured by assigning scores to rasters based on their overlap with buffers indicating different types of events. Using point locations of FCV events, generate circular buffers with a radius of 5 km to estimate the spatial impact of these events. If the impact radius of an event is known, it should be used instead. Any raster intersecting with the buffer should be scored as follows:
• Rasters overlapping with buffers indicating battles and explosions: score 0
• Rasters overlapping with buffers indicating explosions and remote violence: score 1
• Rasters overlapping with buffers indicating violence against civilians: score 2
• Rasters overlapping with buffers indicating protests and riots: score 4
• Areas that do not overlap with any event: score 5

Adjustments are needed as it is currently evaluated differently.

WB team will provide the ACLED data for St Lucia

@timlinux timlinux added the 🔍️ Factor Analysis factors label Jun 21, 2024
@amyburness amyburness added the 🏙️ Place characterization Dimension - place characterization label Jun 21, 2024
@amyburness
Copy link
Author

@osundwajeff Please can you size this ticket? @mvmaltitz mentioned this is one of your tasks for the rest of the sprint.

Please note that Tim and I have made tickets for all of the factors based on the spreadsheet. Please go through them and report back if any are missing (I have taken a look too) and then work and comment in the premade tickets. If needed make child tickets.

We will go through and size the tickets at each sprint when we decide on the tasks for the week.

@mvmaltitz mvmaltitz added the Size 13 I'm going to need about a day and a half to do the job label Jul 5, 2024
@osundwajeff
Copy link
Collaborator

Hi @ClaraIV is there any more information you would like to add on this ticket?

@osundwajeff
Copy link
Collaborator

Hi @dragosgontariu, @carolinamayh , @ClaraIV
the ACLED data is in csv format. I wanted to confirm with you if this factor would use the csv as an input or it will use the ACLED as a shapefile?

@ClaraIV
Copy link

ClaraIV commented Jul 22, 2024 via email

@osundwajeff
Copy link
Collaborator

Hi @ClaraIV, I wanted to confirm which specific rasters are these that will overlap with the buffers? I'd really appreciate if you can provide more context on that.

@ClaraIV
Copy link

ClaraIV commented Aug 1, 2024

hi @osundwajeff thanks for raising this issue; I think we didnt explain properly, apologies for that. what we mean is raster cells. We need to create a raster with cell values from 0-5, where the cells that intersect any of the buffers from the events, take the score as per the table below. If a cell intersect more types of events, it will take the score of the more serious event, as in the classification below.

5km buffer from event points

• Raster cells overlapping with buffers indicating battles and explosions: score 0
• Raster cells overlapping with buffers indicating explosions and remote violence: score 1
• Raster cells overlapping with buffers indicating violence against civilians: score 2
• Raster cells overlapping with buffers indicating protests and riots: score 4
• Raster cells that do not overlap with any event: score 5

Please let me know if everything is clear, or you have more questions - thanks!

@osundwajeff
Copy link
Collaborator

Thanks @ClaraIV. I think I now understand it well enough.
If I have any further questions I'll just ask.

@dragosgontariu
Copy link
Collaborator

error encountered:

Traceback (most recent call last):
File "fiona_shim.pyx", line 83, in fiona._shim.gdal_open_vector
File "fiona_err.pyx", line 291, in fiona._err.exc_wrap_pointer
fiona._err.CPLE_OpenFailedError: D:/Munca/WB/Geest/St_Lucia/Testing/07082024/temp/acled.shp: No such file or directory

         During handling of the above exception, another exception occurred:
         
         Traceback (most recent call last):
          File "C:\Users/Dragos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gender_indicator_tool\gender_indicator_tool.py", line 345, in 
          self.dlg.FCV_Execute_PB.clicked.connect(lambda: self.Rasterize(6))
          File "C:\Users/Dragos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gender_indicator_tool\gender_indicator_tool.py", line 1272, in Rasterize
          self.convertCRS(csvFileLayer, UTM_crs)
          File "C:\Users/Dragos/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gender_indicator_tool\gender_indicator_tool.py", line 607, in convertCRS
          shp = gpd.read_file(vector)
          File "C:\Users\Dragos\AppData\Roaming\Python\Python39\site-packages\geopandas\io\file.py", line 289, in _read_file
          return _read_file_fiona(
          File "C:\Users\Dragos\AppData\Roaming\Python\Python39\site-packages\geopandas\io\file.py", line 315, in _read_file_fiona
          with reader(path_or_bytes, **kwargs) as features:
          File "C:\Users\Dragos\AppData\Roaming\Python\Python39\site-packages\fiona\env.py", line 408, in wrapper
          return f(*args, **kwargs)
          File "C:\Users\Dragos\AppData\Roaming\Python\Python39\site-packages\fiona\__init__.py", line 286, in open
          c = Collection(path, mode, driver=driver, encoding=encoding,
          File "C:\Users\Dragos\AppData\Roaming\Python\Python39\site-packages\fiona\collection.py", line 162, in __init__
          self.session.start(self, **kwargs)
          File "fiona\ogrext.pyx", line 540, in fiona.ogrext.Session.start
          File "fiona\_shim.pyx", line 90, in fiona._shim.gdal_open_vector
         fiona.errors.DriverError: D:/Munca/WB/Geest/St_Lucia/Testing/07082024/temp/acled.shp: No such file or directory

@osundwajeff @mvmaltitz

@mvmaltitz mvmaltitz added this to the Indicator Enhancements milestone Aug 13, 2024
@mvmaltitz
Copy link

FCV Result:

Image

@dragosgontariu

@mvmaltitz mvmaltitz removed the Size 13 I'm going to need about a day and a half to do the job label Aug 15, 2024
@mvmaltitz mvmaltitz mentioned this issue Sep 4, 2024
25 tasks
@bennyistanto
Copy link
Collaborator

Similar to Active Transport, I managed to test using Tunisia data, unfortunately the FCV failed without any error information, it just Not Responding (see attached picture below) after I clicked the Execute button and the label "Processing..." appear. I have tried it on two machines with the same result.

Screenshot 2024-09-06 094243

Data for test:
FCV_Tunisia.csv

@osundwajeff
Copy link
Collaborator

Hi @bennyistanto
Can you assist me with FCV data for Fiji, I have modified a couple of things on FCv and I need to test using that dataset

@dragosgontariu
Copy link
Collaborator

Hi @osundwajeff
Below you can find FCV data for Fiji
2019-09-01-2024-09-01-Fiji.csv

@osundwajeff
Copy link
Collaborator

Hi @dragosgontariu
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍️ Factor Analysis factors 🏙️ Place characterization Dimension - place characterization
Projects
None yet
Development

No branches or pull requests

7 participants