comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDLdoc 3.0 released
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDLdoc 3.0 released [message #58136] Tue, 22 January 2008 09:59 Go to next message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
> Remove the spaces between ...
>
> ;-
>
> Function...

Yep, I knew it was something simple!!!

Thanks

Brian

------------------------------------------------------------ -------------
Brian Larsen
Boston University
Center for Space Physics
Re: IDLdoc 3.0 released [message #58137 is a reply to message #58136] Tue, 22 January 2008 09:56 Go to previous messageGo to next message
KRDean is currently offline  KRDean
Messages: 69
Registered: July 2006
Member
On Jan 22, 10:44 am, Brian Larsen <balar...@gmail.com> wrote:
> Mike,
>
> Ok the denseness continues... what is going wrong here with this
> really simple example?
>
> ;+
> ; NAME:
> ; sse
> ;
> ;
> ; PURPOSE:
> ; return the sum-squared error of the residuals
> ;
> ;
> ; CATEGORY:
> ; Stats
> ;
> ; INPUTS:
> ; res: residuals to do calculation on
> ;
> ;
> ; OPTIONAL INPUTS:
> ; none
> ;
> ;
> ; KEYWORD PARAMETERS:
> ; none
> ;
> ;
> ; OUTPUTS:
> ; sum-squared error of residuals
> ;
> ;
> ; OPTIONAL OUTPUTS:
> ; none
> ;
> ;
> ;
> ; MODIFICATION HISTORY:
> ;
> ;       Sun Nov 25 23:28:11 2007, Brian Larsen
> ;       <balar...@bu.edu>
> ;
> ;               documented, written previously
> ;
> ;-
>
> http://people.bu.edu/balarsen/IDL/tmp/sse.html
>
> It wont recognize the parameter.
>
> Thanks,
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physics

Remove the spaces between ...

;-



Function...

So it should be together...

;
;-
FUNCTION sse, rse


Kelly Dean
Fort Collins, CO
Re: IDLdoc 3.0 released [message #58138 is a reply to message #58137] Tue, 22 January 2008 09:52 Go to previous messageGo to next message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Oh ya this is my command line:
IDL> idldoc, root='/Users/balarsen/Documents/idl/larsen/stats',
output='/Users/balarsen/Documents/idl/larsen/doc', /stat, /user,
FORMAT_STYLE='IDL'

------------------------------------------------------------ -------------
Brian Larsen
Boston University
Center for Space Physics
Re: IDLdoc 3.0 released [message #58140 is a reply to message #58138] Tue, 22 January 2008 09:44 Go to previous messageGo to next message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Mike,

Ok the denseness continues... what is going wrong here with this
really simple example?

;+
; NAME:
; sse
;
;
; PURPOSE:
; return the sum-squared error of the residuals
;
;
; CATEGORY:
; Stats
;
; INPUTS:
; res: residuals to do calculation on
;
;
; OPTIONAL INPUTS:
; none
;
;
; KEYWORD PARAMETERS:
; none
;
;
; OUTPUTS:
; sum-squared error of residuals
;
;
; OPTIONAL OUTPUTS:
; none
;
;
;
; MODIFICATION HISTORY:
;
; Sun Nov 25 23:28:11 2007, Brian Larsen
; <balarsen@bu.edu>
;
; documented, written previously
;
;-

http://people.bu.edu/balarsen/IDL/tmp/sse.html

It wont recognize the parameter.

Thanks,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
Re: IDLdoc 3.0 released [message #58141 is a reply to message #58140] Tue, 22 January 2008 09:32 Go to previous messageGo to next message
KRDean is currently offline  KRDean
Messages: 69
Registered: July 2006
Member
On Jan 22, 6:48 am, Vince Hradil <hrad...@yahoo.com> wrote:
> On Jan 21, 11:47 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
>
>
>
>
>
>> IDLdoc 3.0 is ready! Highlights of this release:
>
>>   * IDLdoc 3.0 was rewritten from scratch to allow it to be released
>> under an open source license. Source code is available from the
>> project website.
>
>>   * There are multiple formats for entering comments: the normal
>> IDLdoc style, the traditional IDL comment header, and new style based
>> on restructured text.
>
>>   * Ability to do some simple formatting of comments without resorted
>> to putting ugly HTML into your comments.
>
>> For more information about this release, see the project website
>> download page:
>
>> http://idldoc.idldev.com/wiki/Downloads
>
>> Mike
>> --www.michaelgalloy.com
>> Tech-X Corporation
>> Software Developer II
>
> Mike,
> Maybe I'm a little dense, but I can't figure out how your program
> works.  Perhaps your bullet point "read user information about IDLdoc"
> might help, but there is no link.  What are the installation
> instructions, requirements, and usage?
>
> Thanks,
> Vince- Hide quoted text -
>
> - Show quoted text -

This may help. I created some IDL code that I use and modify whenever
I start a new project.
I'll include a sample overview and footer htm file, as well as the IDL
code that calls IDLdoc.

Kelly Dean
Fort Collins, CO

====================== Sample Overview.htm
===========================

<H2>Generate HTML Documetation</H2>
<P>The Generate HTML Documentation is designed to create HTML reports
from comments
found in the IDL code.
<P>This application was developed with ITT Visual Information
Solutions'
(ITTVIS) Data Analysis and Visualization Software - Interactive Data
Language (IDL).

<P>Kelly Dean - January 2008

:Dirs:
./
Root directory with main IDL routines




====================== Sample Footer.htm ============================

<!-- Project Footer -->
<CENTER>
<FONT STYLE="font-family: Arial; font-size: 8pt">
IDL Library.<BR>
Contact Information: <BR>
Kelly Dean<BR>
Fort Collins, Colorado<BR>
</FONT>
</CENTER>

======================= IDL Code ================================

;+
;
; :file_comments:
; <P>This routine is designed to use IDLdoc to create HTML
; documentation from IDL code. IDLdoc is a tool for
; generating documentation into HTML format from comments
; found in the source code.
;
; :keywords:
; root : in, type=string
; Directory path to IDL source files.
;
; output : in, type=string
; Directory path and name to HTML output.
;
; title : in, type=string
; Main title for HTML document.
;
; subtitle : in, type=string
; Subtitle for HTML document.
;
; overview : in, type=string
; Directory path and name for overview HTML file.
;
; footer : in, type=string
; Directory path and name for footer HTML file.
;
; statistics : in, type=string
; Calculate McCabe statistics for each routine
;
; :uses:
; IDLdoc : Document generator fould at idldoc.idldev.com
;
; :author:
; Kelly Dean
;
; :categories:
; Documentation
;
; :history:
; Created January 2008
;
;----------------------------------------------------------- -----------
PRO Gen_HTM_Doc3, root=root, $
output=output, $
title=title, $
subtitle=subtitle, $
overview=overview, $
footer=footer, $
statistics=statistics

; Initialize some variables

dirPath = 'C:\Test'
proj = 'GenHTML'
ver = '.0.0.1'
projver = proj + ver

; Location of IDLdoc save file

GalloySAV = dirPath + '\ContribIDL\Galloy\IDLdoc\idldoc.sav'

; Check keyword -

IF ( N_ELEMENTS( title ) EQ 0 ) THEN BEGIN
title = proj
ENDIF

; Check keyword - For subtitle

IF ( N_ELEMENTS( subtitle ) EQ 0 ) THEN BEGIN
subtitle = 'Generate HTML Documetation'
ENDIF

; Check keyword - IDL source

IF ( N_ELEMENTS( root ) EQ 0 ) THEN BEGIN
root = dirPath + '\Projects\' + projver + '\src'
ENDIF

; Check keyword - Output HTML directory

IF ( N_ELEMENTS( output ) EQ 0 ) THEN BEGIN
output = dirPath + '\Projects\' + projver + '\doc\html'
ENDIF

; Check keyword - Directory path and name of overview HTML code

IF ( N_ELEMENTS( overview ) EQ 0 ) THEN BEGIN
overview = dirPath + '\Projects\' + projver + '\Data\Input
\ProjOverview.htm'
ENDIF

; Check keyword - Directory path and name of footer HTML code

IF ( N_ELEMENTS( footer ) EQ 0 ) THEN BEGIN
footer = dirPath + '\Projects\' + projver + '\Data\Input
\ProjFoot.htm'
ENDIF

; Check keyword - Turn on/off McCabe statistics

IF ( N_ELEMENTS( statistics ) EQ 0 ) THEN statistics = 0

; Start IDLdoc.

RESTORE, GalloySAV
IDLDOC, FORMAT_STYLE='rst', $ ; IDL Doc format style (Restructure
text format)
root=root, $ ; Directory path of IDL code
output=output, $ ; Output directory
title=title, $ ; Main title
subtitle=subtitle, $ ; Subtitle title
overview=overview, $ ; Directory path and name of
overview HTML code
footer=footer, $ ; Directory path and name of footer
HTML code
statistics=statistics ; Turn on/off McCabe statistics

END
Re: IDLdoc 3.0 released [message #58143 is a reply to message #58141] Tue, 22 January 2008 09:21 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jan 22, 10:05 am, Brian Larsen <balar...@gmail.com> wrote:
> I think I too must be dense...  I figured out how to run it but I
> can't seem to find any documentation on how to document my code so
> that idldoc will parse it correctly.  If such a thing exists can you
> point us to it?  This certainly is cool and I would like to use it.

If you have run IDLdoc, then look at the index.html file in the
output. On any page of the output, there is a "Help" link at the right
in the navigation bar at the top of the page. This gives help on other
keywords to IDLdoc and to the various comment format styles available.

> For background I use the "idlwave->templates->doc" header in emacs.
> Idl doc works but everything is in the comment field below the routine
> name leaving the Parameters, and keywords with only the names with no
> descriptions.

Yes, using the default idlwave->templates->doc is the "IDL" style: use
FORMAT_STYLE='IDL' on the call to IDLdoc.

I'm working on more new user documentation, but I don't have "Getting
Started" type documentation yet.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
Re: IDLdoc 3.0 released [message #58145 is a reply to message #58143] Tue, 22 January 2008 09:05 Go to previous messageGo to next message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
I think I too must be dense... I figured out how to run it but I
can't seem to find any documentation on how to document my code so
that idldoc will parse it correctly. If such a thing exists can you
point us to it? This certainly is cool and I would like to use it.

For background I use the "idlwave->templates->doc" header in emacs.
Idl doc works but everything is in the comment field below the routine
name leaving the Parameters, and keywords with only the names with no
descriptions.

Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
Re: IDLdoc 3.0 released [message #58146 is a reply to message #58145] Tue, 22 January 2008 08:01 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Jan 22, 6:48 am, Vince Hradil <hrad...@yahoo.com> wrote:
> Maybe I'm a little dense, but I can't figure out how your program
> works.  Perhaps your bullet point "read user information about IDLdoc"
> might help, but there is no link.  What are the installation
> instructions, requirements, and usage?

Try

idldoc, root=source_code_dir, output=doc_dir

where `source_code_dir` is a directory containing IDL .pro or .sav
files and `doc_dir` is where you want the output to go. To view the
output, start with doc_dir\index.html. To learn how to format your
comments so that IDLdoc understands them, see the "Help" tab on
navigation bar on the top of any page.

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
Re: IDLdoc 3.0 released [message #58150 is a reply to message #58146] Tue, 22 January 2008 05:48 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jan 21, 11:47 pm, "mgal...@gmail.com" <mgal...@gmail.com> wrote:
> IDLdoc 3.0 is ready! Highlights of this release:
>
> * IDLdoc 3.0 was rewritten from scratch to allow it to be released
> under an open source license. Source code is available from the
> project website.
>
> * There are multiple formats for entering comments: the normal
> IDLdoc style, the traditional IDL comment header, and new style based
> on restructured text.
>
> * Ability to do some simple formatting of comments without resorted
> to putting ugly HTML into your comments.
>
> For more information about this release, see the project website
> download page:
>
> http://idldoc.idldev.com/wiki/Downloads
>
> Mike
> --www.michaelgalloy.com
> Tech-X Corporation
> Software Developer II

Mike,
Maybe I'm a little dense, but I can't figure out how your program
works. Perhaps your bullet point "read user information about IDLdoc"
might help, but there is no link. What are the installation
instructions, requirements, and usage?

Thanks,
Vince
Re: IDLdoc 3.0 released [message #58247 is a reply to message #58136] Wed, 23 January 2008 07:09 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Mike,
this really is cool and useful. I decided to go through my library
last night and see what could be done "out of the box" and it worked
great. I had to reformat my headers a bit but no problem. In fixing
up the codes that didn't have headers I realized just how important
this is as there were several codes that I spend a lot of time writing
that I couldn't remember how to use at all, which seems like wasted
time.

http://people.bu.edu/balarsen/IDLdoc/

Thanks for a great package!

Brian

------------------------------------------------------------ -------------
Brian Larsen
Boston University
Center for Space Physics
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: bizzare idlwave abbrev behavior
Next Topic: Re: stop behavior

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:50:13 PDT 2025

Total time taken to generate the page: 0.00775 seconds