leaflet-environmental-layers icon indicating copy to clipboard operation
leaflet-environmental-layers copied to clipboard

Sea level rise layers

Open jywarren opened this issue 6 years ago • 23 comments

There are a few sources of this kind of data but here's one!

http://citizeneyes.org/app/

jywarren avatar Feb 23 '19 23:02 jywarren

@neelesh17, you may need to do some research to get the URL to get the data. You may give this a try. 😃

crisner avatar Feb 24 '20 14:02 crisner

@crisner , I found this site (https://datahub.io/core/sea-level-rise) it provides us the Global Mean Sea Level Data for different years. Would you take a look.

neelesh17 avatar Feb 25 '20 09:02 neelesh17

Nice find! This is awesome!

crisner avatar Feb 25 '20 11:02 crisner

So, whats do we do next.

neelesh17 avatar Feb 26 '20 07:02 neelesh17

Next, you'll need to find out what kind of data they provide and make a leaflet layer with that data. You can take a look at the layers in the src folder to get an idea. You may notice the layer types are different. Please go through leafletjs's documentation for more information on the layer types. You can first try the layer out in the 'example/layers.js' which is used in index.html. In case you need clarification or if you are stuck feel free to reach out. Good luck! 😀

crisner avatar Feb 26 '20 09:02 crisner

Actually my exam are going on .So, Is it okay if i begin the work after 3-4 days.

neelesh17 avatar Feb 26 '20 12:02 neelesh17

Sure @neelesh17! You can begin after its done. All the best for your exams!

crisner avatar Feb 26 '20 13:02 crisner

Thankyou @crisner. I'll start working on this from today.

neelesh17 avatar Mar 02 '20 01:03 neelesh17

Great! Hope your exams went well.

crisner avatar Mar 02 '20 05:03 crisner

Yeah! they went great. Thankyou for asking.

neelesh17 avatar Mar 03 '20 01:03 neelesh17

Hey @crisner I am not sure how to start building the layer.I went through the website that provides the data and they provide an average of a perticular years sea level rise. Could you please guide me to the next step.

neelesh17 avatar Mar 04 '20 18:03 neelesh17

Sure. What is the data format they are providing? And do they have an API URL or de we download the data? Could you share a link to the page you were looking at? Thanks!

crisner avatar Mar 05 '20 16:03 crisner

Well, they provide us with both the option we can either fetch that data from the url or we can download it in csv format and they provide the data in json format in the url. This is the website url (https://datahub.io/core/sea-level-rise). They also provide us with a example snapshot on how to fetch the data.

neelesh17 avatar Mar 06 '20 02:03 neelesh17

You could try fetching the data as they've documented here https://datahub.io/core/sea-level-rise#javascript. Then check if you could get the marker information and the information needed for the popups. After that, you could look into the layercode.js file or create a new Leaflet LayerGroup. You could take a look at this discussion about using CSV data here - https://github.com/publiclab/leaflet-environmental-layers/issues/285. If you find this task hard you could take a look at the other issues which may be easier to work on.

crisner avatar Mar 06 '20 15:03 crisner

Sorry @crisner for replying so late i wasn't feeling well. And i am not finding the task hard ,i just wasn't sure where to start.

neelesh17 avatar Mar 09 '20 03:03 neelesh17

No problem! 😄 Hope you are feeling better. I just wanted to put it out there that you are free to take up another issue if you found this one hard to figure out. :)

crisner avatar Mar 09 '20 06:03 crisner

Hey @crisner i think we should go with the csv file instead of the url.Now what i could get from the discussion in issue #285 about csv is thet first i have to convert the csv to json and then make a pr to gh-pages repo in order to host it in publiclab.

neelesh17 avatar Mar 09 '20 07:03 neelesh17

@crisner can you please take a look at this data (https://data.world/noaa/sea-level-trends/workspace/file?filename=USStationsLinearSeaLevelTrends.csv).

neelesh17 avatar Mar 10 '20 04:03 neelesh17

Took a look at it. Its nice that they have also shown an implementation of using the data on a map. If you think it is best to convert csv to json as it was suggested in the other issue you could give that a try and tag @sagarpreet-chadha to host the data on Public Lab or you could try the JavaScript method mentioned in datahub.io

crisner avatar Mar 11 '20 09:03 crisner

@sagarpreet-chadha Could you please host the data for this layer i made a pr #445 to the gh-pages for this on 12-03-2020.

neelesh17 avatar Mar 20 '20 04:03 neelesh17

Done , please check now 👍

sagarpreet-chadha avatar Mar 25 '20 10:03 sagarpreet-chadha

Thankyou @sagarpreet-chadha.

neelesh17 avatar Mar 25 '20 13:03 neelesh17

I believe this issue has been resolved via #445, so this can be closed :)

daemon1024 avatar Mar 10 '21 22:03 daemon1024