X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 08 May 2015 02:22 PM by  anon
output value os common structure into screen
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:14
New Member


--
08 May 2015 02:22 PM
    Dear all, I got the following information. The question is that why "print" cannot be ignored. "CDPSI_TEMPLATE" was defined as COMMON variable. Thank you very much. ENVI> help, CDPSI_Template CDPSI_TEMPLATE (COMMONVAR_TUD_CDPSITEMPLATE) STRUCT = -> STRUCTURE_CDPSITEMPLATE Array[5000, 5000] ENVI> print, CDPSI_Template[1000, 1000].CPSI_TemporalCoherence 0.328291 ENVI> CDPSI_Template[1000, 1000].CPSI_TemporalCoherence % Object reference type required in this context: . % Execution halted at: $MAIN$

    Deleted User



    New Member


    Posts:81
    New Member


    --
    11 May 2015 03:32 PM
    Dear Chia-Hsiang Yang, When this problem occurs, while in this state, could you issue the following three IDL commands and then post the results here? help, CDPSI_Template[1000, 1000] help, CDPSI_Template[1000, 1000].CPSI_TemporalCoherence print, !VERSION Thanks in advance. Regards,

    Deleted User



    New Member


    Posts:14
    New Member


    --
    12 May 2015 03:35 AM
    Hello, like the followings? IDL> help, CDPSI_Template[1000, 1000] ** Structure STRUCTURE_CDPSITEMPLATE, 13 tags, length=44, data length=42: CPSI_TEMPORALCOHERENCE FLOAT 0.328291 FPSI_TEMPORALCOHERENCE FLOAT 0.476722 BPSI_TEMPORALCOHERENCE FLOAT 0.378859 CPSI_VELOCITY FLOAT 4.37518 FPSI_VELOCITY FLOAT 0.757566 BPSI_VELOCITY FLOAT 2.43040 FCPSI_CHANGEINDEX FLOAT 0.148431 BCPSI_CHANGEINDEX FLOAT 0.0505687 CPSI_PSPOINT INT 0 FPSI_PSPOINT INT 0 BPSI_PSPOINT INT 0 FCPSI_BCPOINT INT 0 BCPSI_BCPOINT INT 0 IDL> help, CDPSI_Template[1000, 1000].CPSI_TemporalCoherence FLOAT = 0.328291 IDL> print, !VERSION { x86_64 Win32 Windows Microsoft Windows 8.3 Nov 15 2013 64 64} Best regards, Chia-Hsiang Yang

    Deleted User



    New Member


    Posts:81
    New Member


    --
    12 May 2015 06:36 PM
    Thanks for the new information. However, I'm not able to reproduce the problem. What happens when you copy/paste the following commands to the IDL> command prompt to run? common mycommon, a, b a = {mystruct, $ aa : 1.23, $ bb : 1.23, $ cc : 1.23, $ dd : 1.23, $ ee : 1.23, $ ff : 1.23, $ gg : 1.23, $ hh : 1, $ ii : 1, $ jj : 1, $ kk : 1, $ ll : 1 $ } b = replicate(a, 5000, 5000) help, a, b print, b[1000,1000].aa And then enter this statement at the IDL> command prompt: b[1000,1000].aa If this doesn't reproduce the problem, can you provide stand-alone IDL commands with hard-coded data, and steps to follow, that I can use to try to recreate the problem on my machine?

    Deleted User



    New Member


    Posts:14
    New Member


    --
    23 May 2015 06:03 AM
    Hello, sorry to reply so late. Blinking! The problem does not pop out again. I ran the first code shown in the first post today. Nothing wrong happened anyway. Thank you very much for your kindly response. Best regards, Chia-Hsiang Yang
    You are not authorized to post a reply.