Re: need help urgently.....

58 views
Skip to first unread message

Intergraph Geospatial Forum - Automated Email

unread,
Apr 29, 2013, 2:24:50 AM4/29/13
to erdas-communitie...@googlegroups.com

Re: need help urgently.....
By rafeeq in ERDAS ECW/JP2 SDK Desktop, Version 4.2 (Read-Only and Read/Write), ECW Plug-ins, and imagery viewers Forum

me using erads imagine 9.2

i have images of ocean color data level (L3)..... there three input files are selected .

this is the equation me applied....

EITHER 180.0 IF (($n2_PROMPT_USER  -  $n3_PROMPT_USER)   GT 0.00003) OR EITHER 150.0 IF (($n2_PROMPT_USER  -  $n3_PROMPT_USER)  LT 0.0002)  OR EITHER 200.0 IF  (($n2_PROMPT_USER  -  $n3_PROMPT_USER) LT 0.00075)  OR EITHER 250.0 IF  (($n2_PROMPT_USER  -  $n1_PROMPT_USER) GT 0.0035)  OR   -999.0 OTHERWISE

when i am trying to run this showing the error EGMD_002124line prase error

 

please help me...

 

 

 

----------------------------------
You were sent this email because you opted to receive email notifications when someone responded to this thread.

To unsubscribe:

  1. To unsubscribe from this item only, visit the item link and turn off notifications.
  2. To stop all notifications of any updated items from Intergraph Geospatial Forum, go to Edit Profile, click on the Site Options tab, then under Email Configuration, set Send Notifications to "No".

Intergraph Geospatial Forum - Automated Email

unread,
Apr 29, 2013, 10:26:14 AM4/29/13
to erdas-communitie...@googlegroups.com

Re: need help urgently.....
By Donn Rodekohr in ERDAS ECW/JP2 SDK Desktop, Version 4.2 (Read-Only and Read/Write), ECW Plug-ins, and imagery viewers Forum

First of all, the EITHER statement is restricted to 2 possible conditions:  Either <arg> OR <arg2> otherwise.  A string of ORs and IFs is not allowed.

You need to use the CONDITIONAL statement which can handle a large number (255?) possible conditions to assign the resultant value.  I could not decipher your logic in your example but a CONDITIONAL statement to do what you want might look something like this:

CONDITIONAL {

  (($n2_PROMPT_USER  -  $n3_PROMPT_USER)   GT 0.00003)                  180.0,

  (($n2_PROMPT_USER  -  $n3_PROMPT_USER)  LT 0.0002)                      150.0,

  (($n2_PROMPT_USER  -  $n3_PROMPT_USER) LT 0.00075)                     200.0,

.... (fill in the rest of the conditions)

  (default)                                                                                                                     -999.0}

 

Please realize two things when using the CONDITIONAL statement --

1.  The modeler will parse line feeds and spaces without difficulty.  Therefore structure your statement so you can more easily debug it; and,

2.  The first condition that is TRUE will produce the output value.  Therefore always put the default condition (always TRUE) at the end and assign the background value.

Intergraph Geospatial Forum - Automated Email

unread,
Apr 30, 2013, 2:13:53 AM4/30/13
to erdas-communitie...@googlegroups.com

Re: need help urgently.....
By rafeeq in ERDAS ECW/JP2 SDK Desktop, Version 4.2 (Read-Only and Read/Write), ECW Plug-ins, and imagery viewers Forum

thank you  for your reply ...... its working properly.... could u help me to assign colors for that pixels

for 150 green

180 yellow

200 blue

-999 black

rafeeq

 

 

Intergraph Geospatial Forum - Automated Email

unread,
Apr 30, 2013, 2:35:00 AM4/30/13
to erdas-communitie...@googlegroups.com

Re: need help urgently.....
By rafeeq in ERDAS ECW/JP2 SDK Desktop, Version 4.2 (Read-Only and Read/Write), ECW Plug-ins, and imagery viewers Forum

dear don

 

thank you for your replay.... .. but the above statement that default condition is not taking....

 

rafeeq

Intergraph Geospatial Forum - Automated Email

unread,
Apr 30, 2013, 9:56:07 AM4/30/13
to erdas-communitie...@googlegroups.com

Re: need help urgently.....
By Donn Rodekohr in ERDAS ECW/JP2 SDK Desktop, Version 4.2 (Read-Only and Read/Write), ECW Plug-ins, and imagery viewers Forum

2 possible reasons:

If (default) is not producing the value -999 then some other condition must be TRUE before reaching the default statement.

or

Your output file is not a floating point file.  In order to record a negative number the output file type must be floating point or a signed 8- or 16-bit.  Signed 8-bit will only record up to -127 so your output file must either be floating or signed 16 bit.

 

From your previous post wanting to assign colors (which can be done in the modeler language, not in the graphic modeler) it is apparent that you want these data to be Thematic in nature.  By definition thematic data must be unsigned integer values which will preclude the use of -999 as a background.  Use 0 (zero) as a default and life will be easier.

Intergraph Geospatial Forum - Automated Email

unread,
May 1, 2013, 2:51:05 AM5/1/13
to erdas-communitie...@googlegroups.com

Re: need help urgently.....
By rafeeq in ERDAS ECW/JP2 SDK Desktop, Version 4.2 (Read-Only and Read/Write), ECW Plug-ins, and imagery viewers Forum

Dear Done

know i am getting a correct image after processing... thankyou for ur help.....

i want to know one thing that how can i grid that image, and how to do the land masking .....

regards

rafeeq

Intergraph Geospatial Forum - Automated Email

unread,
May 1, 2013, 4:13:03 PM5/1/13
to erdas-communitie...@googlegroups.com

Re: need help urgently.....
By Donn Rodekohr in ERDAS ECW/JP2 SDK Desktop, Version 4.2 (Read-Only and Read/Write), ECW Plug-ins, and imagery viewers Forum

Not sure what your questions are.

To use a .img in ArcGIS no conversion is necessary.  ArcGIS GRID format is a floating point raster, not as flexible as .img format.

Don't know what you mean by land masking.

Reply all
Reply to author
Forward
0 new messages