search for: deg2rad

Displaying 4 results from an estimated 4 matches for "deg2rad".

2001 Nov 23
2
Rose diagrams in R?
I am looking for a function (or package) to plot histograms of directional data such as wind direction. I believe these are called rose diagrams. Is there an R script for this? If not, can it be constructed in a function calling primitive graphic calls (lines, circles, boxes or polygons)? The stars function is not quite right. -- David Finlayson Geomorphogist and GIS Specialist NearPRISM -
2013 Mar 05
2
Function completely locks up my computer if the input is too big
...ith 4 mb RAM. In the meantime I suppose I'll write a loop to do this function piece-wise for larger data and see if that helps. Script is attached and appended below. Thanks Ben Caldwell #compass to polar coordinates compass2polar <- function(x) {-x+90} #degrees (polar) to radians Deg2Rad <- function(x) {(x*pi)/180} # radians to degrees Rad2Deg <- function (rad) (rad/pi)*180 # polar to cartesian coordinates - assumes degrees those from a compass. output is a list, x & y of equal length Pol2Car <- function(distance,deg) { rad <- Deg2Rad(compass2polar(deg))...
2009 Jan 19
1
patch for textspecial and defaultfont in xfig
...(pd->col)) { free(dd); @@ -5108,7 +5114,7 @@ fprintf(fp, "4 %d ", (int)floor(2*hadj)); /* Text, how justified */ fprintf(fp, "%d 100 0 ", XF_SetColor(gc->col, pd)); /* color, depth, pen_style */ - fprintf(fp, "%d %d %.4f 4 ", fontnum, (int)size, rot * DEG2RAD); + fprintf(fp, "%d %d %.4f %d ", pd->defaultfont?-1:fontnum, (int)size, rot * DEG2RAD,pd->textspecial?6:4); /* font pointsize angle flags (Postscript font) */ fprintf(fp, "%d %d ", (int)(size*12), (int)(16.667*XFig_StrWidth(str, gc, dd) +0.5)); @@ -7441,6 +744...
2007 Apr 12
1
[PATCH] Transparent cube
Hi, Recently i have worked on re-writing beryl's transparent cube, and ported 3d plugin to compiz. I'm attaching a patchset here that includes the transparent cube patches (i'll post the 3d plugin when i fix some problems that didn't happen in beryl). Patching order: btf-ftb.patch, clip-planes.patch, plugin-events.patch, cube-paint-order.patch, transparent-cube.patch. Special