[daip] forwarded message from Eric Greisen
Eric Greisen
egreisen at cv3.cv.nrao.edu
Mon Jul 8 22:03:20 EDT 2002
------- start of forwarded message (RFC 934 encapsulation) -------
Received: from primate.aoc.nrao.edu (primate [146.88.1.117])
by zia.aoc.NRAO.EDU (8.9.3/8.9.3) with ESMTP id UAA17867;
Mon, 8 Jul 2002 20:03:06 -0600 (MDT)
Received: (from egreisen at localhost)
by primate.aoc.nrao.edu (8.11.6/8.11.6) id g69236Y28422;
Mon, 8 Jul 2002 20:03:06 -0600
Message-Id: <200207090203.g69236Y28422 at primate.aoc.nrao.edu>
X-Authentication-Warning: primate.aoc.nrao.edu: egreisen set sender to egreisen at nrao.edu using -f
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <15635.60015.996313.676696 at exeter.nrl.navy.mil>
References: <15635.60015.996313.676696 at exeter.nrl.navy.mil>
X-Mailer: VM 6.35 under Emacs 20.7.1
Content-Type: text/plain; charset=us-ascii
From: Eric Greisen <egreisen at cv3.cv.nrao.edu>
To: Joseph.Lazio at nrl.navy.mil
Subject: Re: [daip] FLATN
Date: Mon, 8 Jul 2002 20:03:06 -0600
Joseph Lazio writes:
> Somebody asked about DOWEIGHT in FLATN. In staring at both the help
> file and the code, it's become considerably less obvious what this
> adverb does. In FLATN.FOR
>
> CALL OGET (IN(LFIELD), 'DOWEIGHT', TYPE, DIM, RFACT, CDUMMY,
> * IRET)
> [...]
> RFACT = RFACT * 3600.0
>
> That would seem to convert RFACT from degrees into arcseconds, yet the
> HELP file indicates that DOWEIGHT should be given in arcseconds.
No it does not. It says that the radius is in arc seconds and
DOWEIGHT multiplies that. As you point out, angle is in degrees so
RFACT has the deg to arc sec built into it (fewer multiplies).
ERic
> Moreover, later in the code
>
> ZREF = SIN (YREF) * SIN (DECREF) + COS (YREF)
> * * COS (DECREF) * COS (XREF - RAREF)
> ANGLE = ACOS (ZREF) * RAD2DG
> WT = WT * MAX (0.0001D0, 1.0D0-ANGLE*RFACT)
>
> ANGLE would appear to be the distance from the map center as measured
> in degrees. In addition to the fact that the units of ANGLE*RFACT
> don't appear to make sense, 1-ANGLE*RFACT would seem to be negative
> for most naive choices of RFACT.
>
> What are we missing?
>
> -- Joe
>
> --
> T. Joseph W. Lazio, Ph.D. voice: +1 202 404 6329
> Remote Sensing Division fax: +1 202 404 8894
> Naval Research Lab, Code 7213 Joseph.Lazio at nrl.navy.mil
> Washington, DC 20375-5351 USA http://rsd-www.nrl.navy.mil/7213/lazio/
> _______________________________________________
> Daip mailing list
> Daip at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/daip
>
------- end -------
More information about the Daip
mailing list