Displaying 20 results from an estimated 120 matches similar to: "Geographic distance between lat-long points in R?"
2012 Oct 04
1
Ops.factor(point1, point2) : - not meaningful for factors
Hi, can anyone help me in this problem :(. I am a total beginner in R
software. It took me 2 days just to look into this problem. Due to this
problem. I cant do looping. i want to find the distance between x and DSi
> DSi
i Si
1 1 (5, 20)
2 2 (20, 2)
3 3 (25, 32)
4 4 (8, 39)
5 5 (10, 17)
6 6 (35, 20)
7 7 (38, 10)
> str (DSi)
'data.frame': 7 obs. of 2 variables:
$ i
2008 Nov 10
2
how to convert indvidual pairwise distances to matrix
Hello,
I am trying to convert list of pairwise distances to a distance matrix for
spatial analysis (kriging). For instance, I have something like this for
each pair pf points, and I want to convert it to a matrix:
point1 point2 distance
1 1 0
1 2 4
2 2 0
2 1 4
Please let me know if there is a
2008 Jun 09
1
Plot Coloured Triangle
Hi there,
I'd like to plot a triangle with each point having a certain color defined and
fill it with the interpolated values.
The following code shall represent somehow, three points with x,y, and the
"amount" of red for example...
point1 <- c(1.1, 1.7, 255)
point2 <- c(2.2, 1.5, 180)
point3 <- c(1.8, 2.2, 60)
can anybody give me a hint which methods to use to realize
2005 Jul 01
5
Generating correlated data from uniform distribution
Dear R users,
I want to generate two random variables (X1, X2) from uniform
distribution (-0.5, 0.5) with a specified correlation coefficient r.
Does anyone know how to do it in R?
Many thanks!
Menghui
2001 Aug 08
1
Strategy for creating a palette...?
Dear all,
I'm generally not a big fan of GUIs, but I have just discovered one thing
where a GUI would be a nice thing: creating color palettes.
I'm creating an "image", for transparencies for a lecture I'm giving, so
this is going to look great... :-) What I'm out for, is to make green
tones and red tones, and a relatively sharp break between them. This break
will
2007 Jul 15
0
How to get coordinate from a google map and put the lat/long into a form?
Hi all,
Just like the one from http://www.43places.com/, users can click on
the google map and save the location to the database.
the examples google gives are about how to display, it seem not to
cover what i want.
does anyone have some example or know some tutorial to help me do
this?
thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2008 Jul 09
0
"Rotated Lat-Lon" projection in mapproj
Hi,
I'm trying to plot a field obtained from the atmospheric model WRF-NMM
which uses a "Rotated Lat-Lon? map projection.
The WRF documentation mentions that:
? Rotates the earth's lat/lon grid such that the intersection of the
equator and prime meridian is at the center of the model domain.
? Within the rotated framework the grid spacing is constant, but in an
earth-relative
2009 Mar 04
1
mapping lat and long with maps package
I am trying to overlay a data frame with lat and longitude(which refer to
zip codes) on the map of US that I get by using map ("states").
Is there anyway to do this or do I have to resort to using maptools?
thank you
[[alternative HTML version deleted]]
2012 Jun 26
2
Drawing (lon,lat) coordinates onto the image of a world
Given a set of latitude and longitude coordinates pairsĀ (stored in variables "latitudevals" and "longitudevals"), I would like to plot them onto the image of a equirectangular world map. I would like to plot each coordinate pair with a red circle, if possible. Does anyone have any suggestions as to how I go about doing this, whether using R or using another program like Google
2011 Nov 08
1
from points in Lon/Lat to physical distance in dist class
Dear R-listers,
Here, I would like to hearing helps from you.
I have GPS data (multiple points in the geographic scale) in
longitude/latitude. I intend to calculate
distance (in kilometer) among such points and output the distance matrix in
dist class.
I have gotten some progress, but I still can not get final goal. Could
please give me any directions/advice?
This email cc. to Mr. Pierre, the
2010 Dec 10
2
Projecting data on a world map using long/lat
Hi,
I have a dataset (CSV) with some counts of firms located around the globe.
Each count is assigned to the longitude and latitude of the specific
location. Now I want to plot these counts on a world map using dots (size of
dots represent the count). I have been unable to find any info on whether
this is possible and if so, how? Can you please help me? Thanks!
Mathijs
--
View this message
2011 Mar 21
1
Lat Lon NetCDF subset
Hi,
I'm trying to read a subset of a netcdf file into R, but although I'm
relatively experienced using R, I'm still new to netCDF files, so this may
be a very simple/stupid question!
I've included an example of the type of file I'm looking at here.
www.met.reading.ac.uk/~swp06hg/ccd1983_01-dk1_20.nc (~7Mb)
It's a 2D array of the variable CCD along with its lat and
2005 Mar 09
3
from long/lat to UTM
Hi:
Is there any function in R which can convert the
long/lat to UTM(Universal Transverse Mercator)?
There are quite a few converters on Internet.
However, the interface is designed as input->output
which I can not convert lots of locations at the same
time.
Another question is whether there is a function in R
which can tell the time zone from the location's
lat/long?
Thank you!
2006 Feb 09
1
converting lat-long coordinates to Albers Conical Equal Area coordinates
####################################################################################
We have used maptools to construct state, county, township, census-tract,
and zipcode
level R maps with an Albers Conical Equal Area projection. We would like
to be able to
plot the location of weather stations or other point locations on the
maps. The data
the point locations are in latitude-longitude units
2006 Mar 21
3
transform shapefiles in UTM to lat/long
Dear all:
I have a shapefile in UTM coordinate system and I would like to transform it
to Lat/Log coordinates (WSG84). The package PBSmapping contains function
convUL to transform between the two coordinate systems when data is in the
form of a data frame with attributes specifying the coordinate system.
However, when shapefiles are imported using function read.shape (package
maptools), a list
2010 Mar 15
1
map2poly - map lat/long cannot be unconstrained?
Using the maptools function "map2poly" I have created a map/polylist object
- a map of the Great Lakes. My goal is to passively plot additional data on
this map. Unfortunately I am not able to change (distort) the relative scale
of the axes for the map, and so the sample points do not line up correctly
on the map.
In the code below, notice that I have set the same axis ranges on each
2008 Oct 07
2
masking a regular lat/lon grid to extract map boundaries
Dear R-helpers,
I have lat/lon coordinates of regularly spaced grid points, about 4Km
apart, covering the entire US continental region.
I would like to mask this rectangular grid in order to extract all and
only the grid points within a specific region. Today I want to
extract Montana, say, from this grid, and I am hoping to somehow use
the returned value of the function
2007 Apr 04
5
how to image.plot a XY grid file into a lat-lon map
Hi All,
I have a netcdf gridded file with LCC projection. I can easily use
image.plot to visualize it. However, as the axises are in X,Y, not Lat and
Lon, I could not add state or country maps onto it (or lat lon information).
I do have a grid2d file that describes the lat and lon for each (X,Y) grid,
but the lat and lon are not regularly spaced, so I could not use image.plot.
Does anyone know
2010 Jan 05
3
R matching lat/lon pairs from two datasets?
Hello,
I am trying to match lat/lon from one dataset with the lat/lon from a
second dataset and use that rows data for calculations. I am using
match, but this is finding the first match and not comparing the pair,
how can I determine if the lat/lon are the same? See example below. Is
there a better way to determine to a matching pair of lat/lon values?
Example Datasets:
> data2
2017 Aug 28
0
Extracting subset from netCDF file using lat/lon and converting into .csv in R
Two questions:
1. Is the order of the dimensions shown what is shown if you look at str(ncin) - I mean shown at the end where it describes the variable and its dimensions?
2. Is you problem how to subset the netcdf file, how to write to the .csv file, or both?
-Roy
> On Aug 28, 2017, at 2:21 PM, Eeusha Nafi <eshad002 at gmail.com> wrote:
>
> I have a series of nertCDF files