X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Sep 2018 08:59 AM by  Ben Castellani
"contour" routine not accepting c_value keyword
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Ben Castellani



Basic Member


Posts:130
Basic Member


--
14 Sep 2018 08:59 AM
    Problem:

    The “contour” routine refuses to accept the “c_value” keyword for specifying the desired values of the contours to plot.

    > IDL> contour,x2arr,pxarr,pyarr,/overplot,c_value=cvals,$
    > IDL> c_color=c.purple,c_line=2,c_thick=thk
    > % Keyword C_VALUE not allowed in call to: CONTOUR
    > % Execution halted at: $MAIN$ 1 /Volumes/khufu1/dfox/pharos1/dfox/anita/I
    > ceCube/ehe_eprobs.pro

    I’m at a bit of a loss since the code itself pass all “extra” keywords on to further graphics routines.

    > IDL> doc_library,'contour'
    >
    > ----- Documentation for /Applications/exelis/idl84/lib/graphics/contour.pro -----
    > :Description:
    > Create IDL Contour graphic.
    >
    > :Params:
    > Array :
    > X :
    > Y :
    >
    > :Keywords:
    > _REF_EXTRA
    >
    > :Returns:
    > Object Reference

    The documentation (via “?” graphical user interface, not copied here) is pretty clear that setting “c_value” keyword is the right way to go here.

    Any assistance appreciated!

    Ben Castellani



    Basic Member


    Posts:130
    Basic Member


    --
    14 Sep 2018 09:16 AM
    Many graphical routines in IDL have both a procedure and a function version, so be sure to match up the documentation for the one you are using. Procedure graphics (also know as direct graphics) have been around in IDL since the 1990s. Function graphics were introduced in IDL 8 and are drawn using iTools.

    In your case, you are using the contour PROCEDURE. The PROCEDURE version of contour does not accept the C_VALUES keyword. Instead, you need to use the LEVELS keyword: https://www.harrisgeospatial.com/docs/CONTOUR_Procedure.html

    The FUNCTION version of contour does have C_VALUES, which is the documentation you provided is for: https://www.harrisgeospatial.com/docs/CONTOUR.html



    You are not authorized to post a reply.