I received a table of data, and in that table is a field with latitude and longitude coordinates in one field.
An example is: 45.4000/-122.700
I added two fields, latitude and longitude.
Using field calculator I can successfully extract values after the '/' into the longitude field so that it is populated only with -122.700.
The expression is:
!Latitude_Longitude!<SPAN class="punctuation token">[</SPAN>!Latitude_Longitude!<SPAN class="punctuation token">.</SPAN>rindex<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'/'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="operator token">+</SPAN><SPAN class="number token">1</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
I am not able to extract the values for latitude so that the latitude field will be populated just with 45.4000. I can also not perform this by using an exact number of characters, as the table of coordinates can have anywhere from 2 to 5 decimal places. Any help on how to extract all values to the left of the '/' would be appreciated.