Comments (8)
What can we fit in? I think the important fields would be:
MAXWIND (knots)
Can we convert to MPH (1 knot = 1.15078 MPH)
GUST (knots)
Can we convert to MPH (1 knot = 1.15078 MPH)
BASIN (use the code below to be able to name the storm appropriately to its respective basin)
Also the anticipated arrival date and time.
var BASIN = $feature.BASIN
var INTENSITY = $feature.MAXWIND
if (BASIN == "al" || BASIN =="cp" || BASIN == "EP" || BASIN == "ep" || BASIN == "NA" || BASIN == "SA" || BASIN == "SL" || BASIN == "CS" || BASIN =="GM"){
When(INTENSITY<=33,"Tropical Depression",
INTENSITY>33&&INTENSITY<=63,"Tropical Storm",
INTENSITY>63&&INTENSITY<=82,"Category 1 Hurricane",
INTENSITY>82&&INTENSITY<=95,"Category 2 Hurricane",
INTENSITY>95&&INTENSITY<=112,"Category 3 Hurricane",
INTENSITY>112&&INTENSITY<=136,"Category 4 Hurricane",
INTENSITY>136,"Category 5 Hurricane","NO DATA")
}
else if (BASIN == "WP") {
When (INTENSITY <=33, "Tropical Depression",
INTENSITY >33&&INTENSITY<=63, "Tropical Storm",
INTENSITY >63&&INTENSITY<=129, "Typhoon",
INTENSITY >129, "Super Typhoon", "NO DATA")
}
else if (BASIN == "SH" || BASIN == "SP" || BASIN == "WA" || BASIN == "EA") {
When (INTENSITY <=33, "Tropical Disturbance/Depression/Low",
INTENSITY >34&&INTENSITY<=47, "Category 1 Tropical Cyclone",
INTENSITY >48&&INTENSITY<=63, "Category 2 Tropical Cyclone",
INTENSITY >64&&INTENSITY<=85, "Category 3 Tropical Cyclone",
INTENSITY >86&&INTENSITY<=107, "Category 4 Tropical Cyclone",
INTENSITY >108, "Category 5 Tropical Cyclone", "NO DATA")
}
else if (BASIN == "IO" || BASIN == "NI" || BASIN == "AS" || BASIN == "BB") {
When (INTENSITY <=17, "Low Pressure Area",
INTENSITY >17&&INTENSITY<=27, "Depression",
INTENSITY >28&&INTENSITY<=33, "Deep Depression",
INTENSITY >34&&INTENSITY<=47, "Cyclonic Storm",
INTENSITY >48&&INTENSITY<=63, "Severe Cyclonic Storm",
INTENSITY >64&&INTENSITY<=89, "Very Severe Cyclonic Storm",
INTENSITY >90&&INTENSITY<=119, "Extremely Severe Cyclonic Storm",
INTENSITY >120, "Super Cyclonic Storm", "NO DATA")
}
else if (BASIN == "SI") {
When (INTENSITY <=28, "Zone of Disturbed Weather",
INTENSITY >28&&INTENSITY<=29, "Tropical Disturbance",
INTENSITY >30&&INTENSITY<=33, "Tropical Depression",
INTENSITY >34&&INTENSITY<=47, "Moderate Tropical Storm",
INTENSITY >48&&INTENSITY<=63, "Severe Tropical Storm",
INTENSITY >64&&INTENSITY<=85, "Tropical Cyclone",
INTENSITY >86&&INTENSITY<=113, "Intense Tropical Cyclone",
INTENSITY >114, "Very Intense Tropical Cyclone", "NO DATA")
}
else {
return "Testing"
}
from hurricane.
Here is how the popup window looks like:
from hurricane.
Yes.It uses the Arcade code to give the appropriate term for the storm respective to its basin.
from hurricane.
@emilyebba just want to save this screenshot in case we need to see what we have in the popup window during the time when there is no active hurricane. Will the unit for wind speed always be knot?
from hurricane.
Great idea. Yes it is in knots. Ill double check with Paul to make sure, but I dont think that is going to change. Yes we would like that to display in MPH. Conversion for that is 1 knot = 1.15078.
from hurricane.
Hi Jinnan, I reworked it. I think this is clearer code. Let me know. :)
var BASIN = $feature.BASIN
var MAXWIND = $feature.MAXWIND
if (BASIN == "al" || BASIN =="cp" || BASIN == "EP" || BASIN == "ep" || BASIN == "NA" || BASIN == "SA" || BASIN == "SL" || BASIN == "CS" || BASIN =="GM"){
When(MAXWIND > 136, "Category 5",
MAXWIND > 112, "Category 4",
MAXWIND > 95, "Category 3",
MAXWIND > 82, "Category 2",
MAXWIND > 63, "Category 1",
MAXWIND > 33, "Tropical Storm",
"Tropical Depression")
}
else if (BASIN == "WP") {
When (MAXWIND > 129 , "Super Typhoon",
MAXWIND > 63, "Typhoon",
MAXWIND > 33, "Tropical Storm",
"Tropical Depression")
}
else if (BASIN == "SH" || BASIN == "SP" || BASIN == "WA" || BASIN == "EA") {
When (MAXWIND > 122, "Category 5 Severe Tropical Cyclone",
MAXWIND > 97, "Category 4 Severe Tropical Cyclone",
MAXWIND > 71, "Category 3 Severe Tropical Cyclone",
MAXWIND > 54, "Category 2 Tropical Cyclone",
MAXWIND > 37, "Category 1 Tropical Cyclone",
"Tropical Disturbance/Depression/Low")
}
else if (BASIN == "IO" || BASIN == "NI" || BASIN == "AS" || BASIN == "BB") {
When (MAXWIND > 129, "Super Cyclonic Storm",
MAXWIND > 97, "Extremely Severe Cyclonic Storm",
MAXWIND > 71, "Very Severe Cyclonic Storm",
MAXWIND > 54, "Severe Cyclonic Storm",
MAXWIND > 37, "Cyclonic Storm",
MAXWIND > 32, "Deep Depression",
"Depression")
}
else if (BASIN == "SI") {
When (MAXWIND > 129, "Very Intense Tropical Cyclone",
MAXWIND > 97, "Intense Tropical Cyclone",
MAXWIND > 71, "Tropical Cyclone",
MAXWIND > 54, "Severe Tropical Storm",
MAXWIND > 37, "Moderate Tropical Storm",
MAXWIND > 32, "Tropical Disturbance/Depression",
"Zone of Disturbed Weather")
}
else {
return "Testing"
}
from hurricane.
var BASIN = Upper($feature.BASIN)
var INTENSITY = $feature.INTENSITY
var BasinDict = {
"AL":"C1", "CP":"C1", "EP":"C1", "NA":"C1", "SA":"C1", "SL":"C1", "CS":"C1", "GM":"C1",
"WP":"C2",
"SH":"C3", "SP":"C3", "WA":"C3", "EA":"C3",
"IO":"C4", "NI":"C4", "AS":"C4", "BB":"C4",
"SI":"C5"
}
if (HasKey(BasinDict,BASIN)) {
BASIN = BasinDict[BASIN]
} else {
Return "Testing"
}
if (BASIN == "C1") {
When(INTENSITY > 136, "Category 5",
INTENSITY > 112, "Category 4",
INTENSITY > 95, "Category 3",
INTENSITY > 82, "Category 2",
INTENSITY > 63, "Category 1",
INTENSITY > 33, "Tropical Storm",
"Tropical Depression")
}
else if (BASIN == "C2") {
When (INTENSITY > 129 , "Super Typhoon",
INTENSITY > 63, "Typhoon",
INTENSITY > 33, "Tropical Storm",
"Tropical Depression")
}
else if (BASIN == "C3") {
When (INTENSITY > 122, "Category 5 Severe Tropical Cyclone",
INTENSITY > 97, "Category 4 Severe Tropical Cyclone",
INTENSITY > 71, "Category 3 Severe Tropical Cyclone",
INTENSITY > 54, "Category 2 Tropical Cyclone",
INTENSITY > 37, "Category 1 Tropical Cyclone",
"Tropical Disturbance/Depression/Low")
}
else if (BASIN == "C4") {
When (INTENSITY > 129, "Super Cyclonic Storm",
INTENSITY > 97, "Extremely Severe Cyclonic Storm",
INTENSITY > 71, "Very Severe Cyclonic Storm",
INTENSITY > 54, "Severe Cyclonic Storm",
INTENSITY > 37, "Cyclonic Storm",
INTENSITY > 32, "Deep Depression",
"Depression")
}
else {
When (INTENSITY > 129, "Very Intense Tropical Cyclone",
INTENSITY > 97, "Intense Tropical Cyclone",
INTENSITY > 71, "Tropical Cyclone",
INTENSITY > 54, "Severe Tropical Storm",
INTENSITY > 37, "Moderate Tropical Storm",
INTENSITY > 32, "Tropical Disturbance/Depression",
"Zone of Disturbed Weather")
}
from hurricane.
Hi. I am having some issues with the enrichment of the cell phone data. I will be speaking with Dan about it tomorrow. I just wanted to let you know that they last item I owe you is still getting sorted out. Thank you!
(this comment is actually related issue to #6)
from hurricane.
Related Issues (20)
- update precipitation graph HOT 3
- wind speed graph HOT 5
- Communication Chart HOT 14
- colors related HOT 4
- Test Storm & Basemap HOT 4
- About/Info Section for App HOT 1
- Symbols for Hurricane Forecast Positions HOT 4
- FORECASTED STORM INTENSITY - Section HOT 1
- WIND GUST - Section HOT 3
- POPULATION - Section HOT 2
- Background
- Selection Dot HOT 2
- Symbol size at intro map scale HOT 1
- Map Labels HOT 3
- Forecast Position "Highlight" Symbol HOT 1
- Colors HOT 1
- Track lines @ 1:144,448 HOT 3
- Communication Section - Language
- Production Clone URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hurricane.