#### Calculating area of latitude-longitude quadrangle?

```Is there any way to calculate the area of a latitude-longitude
quadrangle in IDL, or some formula I could use?
MATLAB can (using areaquad from the Mapping Toolbox, which can return
surface area in km^2 of a lat/lon box covering a part of Earth) but I
```
 0
8/23/2011 6:52:06 PM
comp.lang.idl-pvwave 11812 articles. 1 followers.

4 Replies
678 Views

Similar Articles

[PageSpeed] 22
```Ashley Berg writes:

> Is there any way to calculate the area of a latitude-longitude
> quadrangle in IDL, or some formula I could use?
> MATLAB can (using areaquad from the Mapping Toolbox, which can return
> surface area in km^2 of a lat/lon box covering a part of Earth) but I

Wow! Really!?

I'm not sure I'd put a whole lot of trust in a
number like that! :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
```
 0
news8567 (866)
8/23/2011 7:13:46 PM
```Yes, I'm not sure exactly how MATLAB does it!  But for my purposes I
only need a rough estimate.
```
 0
8/23/2011 8:06:32 PM
```>
>
> "Ashley Berg"  wrote in message
>
> Is there any way to calculate the area of a latitude-longitude
> quadrangle in IDL, or some formula I could use?
> MATLAB can (using areaquad from the Mapping Toolbox, which can return
> surface area in km^2 of a lat/lon box covering a part of Earth) but I

actual surface area would be impossible, but just integrate the surface of a
sphere and that could get you close enough.

cheers,
bob

```
 0
noemail8476 (227)
8/23/2011 8:37:29 PM
```On Aug 24, 4:52=A0am, Ashley Berg <ashley.b...@gmail.com> wrote:
> Is there any way to calculate the area of a latitude-longitude
> quadrangle in IDL, or some formula I could use?
> MATLAB can (using areaquad from the Mapping Toolbox, which can return
> surface area in km^2 of a lat/lon box covering a part of Earth) but I

When I had to do something similar in Excel (don't ask!) I broke it up
into two triangles, found the internal angles (google Aviation
Formulas) and used Girard's theorem to find the area of each triangle

Max
```
 0
maxjpeck (28)
8/24/2011 7:54:59 AM

MORTGAGE CALCULATOR | Mortgage Loan Calculators | Online Loan Payment Calculator
____________________________________________________ >>> MORTGAGE CALCULATOR <<< ____________________________________________________ Calculate your payment and more at http://www.MortgageCalculator.notlong.com ____________________________________________________ Looking for more personalized rates? First compare rates in your area ( or click here http://MortgageCalculator.notlong.com ), then return to our mortgage calculator to determine payment and amortization schedule. Due to record low mortgage ra...

graphing calculator
Anyone have an OSX graphing calculator app like the one that came with OS9 (http://www.pacifict.com/FreeStuff.html)? I didn't find anything at download.com Any recommendations? Thanks, GW In article <6M6Sc.3822\$Qa4.1911@twister.socal.rr.com>, Geoff Welsh <geoffdubya@some.rr.com> wrote: > Anyone have an OSX graphing calculator app like the one that came with > OS9 (http://www.pacifict.com/FreeStuff.html)? I'm not familiar with earlier Mac applications, however the calculator that comes with OX X (10.3 at least) appears to have an (undocumented) 2D graphic faci...

Re: Passing a number calculated from another dataset into a new #5
I think you want to do a "one record set". See if the example produces something similar to youe desired data. data const; array const[10] (1:10); run; data class; set sashelp.class; if _n_ eq 1 then set const; run; proc print; run; On 7/21/08, wardnine@hotmail.com <wardnine@hotmail.com> wrote: > I have a question about something which is probably simple but I just > don't know how to do. I have a pre-existing, one record dataset A > where I've calculated 10 numbers that are stored as variables within > the data set (for example, the dat...

Re: calculate median from columns #5
Kitty, It is not difficult to modify the code to use nonlinear category values. An easy way to reference category values like 7.5, 15, 25, and 55 would be to use formatting. First, construct an informat CATVALS which links each category with the appropriate category value as: proc format; invalue catvals 1 = 7.5 2 = 15 3 = 25 4 = 55; run; Then, all you need to do is replace the references to "25*i" (in either of the codings I previously provided) with "input(i,catvals.)". Note that the quotes above are just to reference the appropriate code. You wou...

out of the calculation
I make a statement, but can be run I can not get out of the calculation done = false; while not(done) x=input('insert x') m=1; n=3; if (m<=x)&&(x<=n) for i=x disp('true') AM=20+x; continue end else disp('false') end end JK=AM+1 I mean, if the value of x is true, then it will go to the next calculation Can you help me "wahyoe Unggul" <wahyoe_slipnot@yahoo.co.id> wrote in message <in2dj5\$rcu\$1@fred.mathworks.com>... > I make a statement, but can be run I can not get out of the calculat...

calculation on lists
--_623c3c7f-cf2b-40e9-a420-36b7842b10cb_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi=2C I have a question=2C is there a tool to calculate on list ? something like : >a=3D [1=2C1=2C1=2C1] >b =3D [5=2C9=2C8=2C4] >c =3D a+b*a >print c >[6=2C10=2C9=2C5] =20 Thx = --_623c3c7f-cf2b-40e9-a420-36b7842b10cb_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style><!-- ..hmmessage P { margin:0px=...

Re: [VxW] Re: How to calculate a tick value?.
sysClkRateGet() will return the no.of ticks for a second. so u can use taskDelay(NUM_SECS * sysClkRateGet()) for sleeping. HTH --vrreddy svrakesh@yahoo.com (Rakesh)@csg.lbl.gov on 07/14/2003 07:59:46 AM Please respond to VxWorks Users Group List <vxwexplo@csg.lbl.gov> Sent by: vxwexplo-bounces@csg.lbl.gov To: vxwexplo@csg.lbl.gov cc: Subject: [VxW] Re: How to calculate a tick value?. better to get from CPU rather than OS. What CPU are you wroking on? santa19992000@yahoo.com (Santa) wrote in message news:<60e37826.0307131323.45cf392@posting.google.com>.....

[News] Community-driven Software Becomes the Status Quo, Extends to Other Areas
Is that a real poncho or a Sears poncho? ,----[ Quote ] | Dialog is critical today for a software company because software and the | community it runs are no longer separate. This is the new landscape. `---- http://weblog.infoworld.com/ittroubleshooter/archives/2007/08/is_that_a_real.html Applying open-source principles ,----[ Quote ] | Open-source is a term most commonly applied to software and it refers to a | set of principles and practices whereby the design and production information | is shared openly, without the normal restrictions encountered when developing | software within...

MORTGAGE CALCULATOR | Mortgage Loan Calculators | Online Loan Payment Calculator
____________________________________________________ >>> MORTGAGE CALCULATOR <<< ____________________________________________________ Calculate your payment and more at http://www.MortgageCalculator.notlong.com ____________________________________________________ Looking for more personalized rates? First compare rates in your area ( or click here http://MortgageCalculator.notlong.com ), then return to our mortgage calculator to determine payment and amortization schedule. Due to record low mortgage rates, many homeown...

calculating Total in a textbox on a form, how can I calculate the total of several text boxes in another textbox on the same form?
I have a form with three text boxes on it. I want the third text box to show the total of the values in the other two text boxes. The first box is named: BoxOne and I type the number 2 into it The second box is named: BoxTwo and I type the number 3 into it If the third box is named: TotalBox and the control source for the TotalBox reads, =([BoxOne]+[BoxTwo]) the value in the total box is 23, not 5 It just places the two separate values side-by-side in the totalbox. If I use =([BoxOne]*[BoxTwo]) then I get 6 (two TIMES three) I tried using sum in various ways but I just got error m...

Apple 2gs & Pwr Macintosh 7600/120 - \$50 (Chandler
http://phoenix.craigslist.org/evl/sys/2800028679.html Apple 2gs & Pwr Macintosh 7600/120 - \$50 (Chandler) Date: 2012-01-14, 2:17PM MST Reply to: sale-3pspw-2800028679@craigslist.org [Errors when replying to ads?] A blast from the past! For sale are a Apple IIGS & Power Macintosh 7600/120. Both computers are complete with monitors, printers, hard drives, software, assorted cables & everything else needed to get them up and running! \$50.00 Location: Chandler it's NOT ok to contact this poster with services or other commercial interests PostingID: 2800028679...

Calculating UTMz in MapInfo
Hi I have a lot of points (UTMx and UTMy) and I want to get the UTMz (elevation). I have a vectorized heigthmodel. Hov can I automatically calculate the heigth of my points interpolating between the curves in heigth-model? Lars ...

How to calculate this duration
Hello SAS-L, I have 24 months data with each month a category, I want to calculate duration for each category and code them a change name. For example, the category are 14,24,32,48 and 0; and I want code the change to 0 as 1, from 0 to others 9, others are 14 to 24 a, 14 to 32 b, 14 to 48 c, 48 to 32 d, 32 to 14 e ,etc. The changes are random. The current data like this: id mon1 mon2 mon3 mon4 mon5 mon6 mon7 mon8 1 14 14 32 32 0 48 48 0 2 0 0 48 32 32 14 32 0 The data I need is like: id duration type 1 2 b 1...

Linux Calculator
Is there any way switch the Linux caculator from Nerd Mode to Dumb Mode ( where there is only + - X and / ) -- W '04 <:> Open In article <u%Bnc.14010\$V97.9074@newsread1.news.pas.earthlink.net>, John Bailo wrote: > > Is there any way switch the Linux caculator from Nerd Mode to Dumb Mode > ( where there is only + - X and / ) Which calculator? I use bc for normal math. If you mean a gui based calc I believe most pretty much work as a normal pocket calculator. -- From the Desk of the Sysop of: Planet Maca's Opus, a Free open BBS system. Telephone 860...

T-Sql
I am using SQL Server 2000. I need to query my database for all the contracts that came in during a certain time frame (user is prompted for reportingperiodid). Table - Periods Fields - Reporting Period id int Reporting Period desc varchar(30) Reporting Period Begin Date datetime Reporting Period End Date datetime If the user selects a 3 then the begin date is Jan. 1, 2004 and the end date is June 30, 2004. Now I need to calculate did any money come in for each week in that time frame. I need to create a weekly list of all the weeks in that time frame. Each ti...

calculations across observations
Hi All, I have the following data: Group Cycle Start Date Result Result Date 1 . . 195 16-Sep-04 1 . . 185 19-Sep-04 1 CYCLE 1 20-Sep-04 . . 1 . 85 20-Sep-04 1 . 111 20-Sep-04 1 CYCLE 2 15-Oct-04 . . 1 . . 125 21-Sep-04 1 ...

WebFacing/ Contract/ Detroit Area
Tom Gugger Independent Recruiter tgugger@bex.net 419-537-9447 WebFacing/ Contract/ Greater Detroit Area We currently have a short term project available in a Northern suburb of Detroit. This contract should run just short of a month. Since no expenses are offered, a local person would be more practical. This is an On Site contract. We need someone who has solid WebFacing experience and it clearly shows in the resume. Working conditions are said to be good, and we are looking for a November start date. Any experience with SAP would be a plus. If interested and qualified, ema...

phase error variance to rms phase error calculation
hello, i have an expression that gives the phase error variance of QPSK system as follows:\ phase error variance=(Aif/sqrt(2*pi*n))*I0(-Aif/2*n) here, Aif=IF amplitude, n=noise component variance, I0=modified bessel function of the 1st kind How can i calculate rms phase error of that system from this phase error variance thanks Reza ...

Dell Latitude C600
A re-boot doesn't help this problem, just the center keys will not operate. The mechanical motion is fine and it is the keys "yuhjnm67" that are affected the most. Taping them continuously helps sometimes but not always, very intermittent. Is this something that can be fixed. Am running Win 98. Any suggestions will be greatly appreciated. ...

3M CP040NA Detail Area and Angled Sanding Sponge, 4.875 in x 2.875 in x 1 in, Fine
Price:\$3.86 Image: http:///image.php?id=B00004Z4AV Best deal: http:///index.php?id=B00004Z4AV 3M, Large Area Fine Flexible Angled Sanding Sponge, For Fine Detailed Areas 4-7/8" x 2-7/8" x 1", Grit On Both Sides, Reusable. ACCESSORIES: Wood:http:///index.php?id=B000IMV8LU Creating a New Old House: Yesterday's Character for Today's Home (American Institute Architects):http:///index.php?id=1561587923 3M CP041 Detail Area and Angled Sanding Sponge, 4.875 in x 2.875 in x 1 in, Medium:http:///index.php?id=B000VKWHWI ...

Re: date calculation #4
You can get "close" using WEEKDAY in the INTCK function. You will need to account for Holidays and Mondays when holidays are observed that is harder. There are some holiday calculators here on SAS-L if you search. INTCK example. 273 data _null_; 274 Earlydate = input('20061205',yymmdd10.); 275 Latedate = '13Dec06'd; 276 put (_all_) (=); 277 format EarlyDate Latedate date9.; 278 /* do i = EarlyDate to LateDate;*/ 279 /* put i=weekdate30.;*/ 280 /* end;*/ 281 Calendar = intck('DAY',Earlydate,Latedate); 282 Business = i...

Efficient checksum calculating on lagre files
Hi all Does anyone know of a fast way to calculate checksums for a large file. I need a way to generate ETag keys for a webserver, the ETag of large files are not realy nececary, but it would be nice if I could do it. I'm using the python hash function on the dynamic generated strings (like in page content) but on things like images I use the shutil's copyfileobject function and the hash of a fileobject's hash are it's handlers memmory address. Does anyone know a python utility which is possible to use, perhaps something like the md5sum utility on *nix systems. -- -...

Re: Newbie Question: Calculate differences between observations #3
The DIF function will get you the difference of the LAGged value directly. data have; input X @@; dX = dif(x); cards; 10 12 16 15 14 ;;;; run; proc print; run; On 4/11/07, Frank Mwaniki <fmwaniki@ghx.com> wrote: > data have; > input X; > cards; > 10 > 12 > 16 > 15 > 14 > ;; > run; > > data want; > set have; > dX = X - lag(X); > run; > > proc print; run; > > Obs X dX > > 1 10 . > 2 12 2 > 3 16 4 > 4 15 -1 > 5 14 -1 > > Regards, > Frank &...

calculate the time #2
Hi there, How can I calculate the time teken up with a specific loop of simulations. Thank you Maher Al-Idani ...

simple calculator program
I am trying to find a simple calculator program in C or C++ for MS-Windows (Win-9x preferably). Thanks! On Wed, 28 Sep 2005 23:45:28 +0000 (UTC), "Scott J. McCaughrin" <sjmccaug@bluestem.prairienet.org> wrote: >I am trying to find a simple calculator program in C or C++ >for MS-Windows (Win-9x preferably). If you just want a working app, the one in Start->Programs->Accessories should do. If you want source code, Petzold's book on programming includes one. > >Thanks! ----------------------------------------- To reply to me, remov...