Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 15 of 18 Topic 5562 of 6251
Post > Topic >>

Re: problem with subset one image by another

by James Kuyper <jameskuyper@[EMAIL PROTECTED] > Apr 1, 2008 at 11:18 AM

negra wrote:
....
> max_x = min(file1_xmap[1], file_xmap[1])
> min_y = max(file1_ymap[0], file_ymap[0])
> max_y = min(file1_ymap[1], file_ymap[1])

As Jean has already pointed out, you'd have to organize things 
differently to use MAX() and MIN() here. However, it's far simpler to 
avoid MAX() and MIN() altogether.

max_x = file1_xmap[1] < file_xmap[1]
min_y = file1_ymap[0] > file_ymap[0]
max_y = file1_ymap[1] < file_ymap[1]

It all looks pretty confusing if you're used to a language (there are 
quite a few) where '<' and '>' are comparison operators, but in IDL the 
corresponding comparison operators are called 'lt' and 'gt'. The '<' and 
'>' operators return the minimum and maximum, respectively, of their 
operands.
 




 18 Posts in Topic:
problem with subset one image by another
chemsat@[EMAIL PROTECTED]  2008-03-22 02:49:18 
Re: problem with subset one image by another
David Fanning <news@[E  2008-03-22 10:12:46 
Re: problem with subset one image by another
negra <chemsat@[EMAIL   2008-03-26 09:47:21 
Re: problem with subset one image by another
James Kuyper <jameskuy  2008-03-26 19:52:59 
Re: problem with subset one image by another
negra <chemsat@[EMAIL   2008-03-26 19:10:09 
Re: problem with subset one image by another
James Kuyper <jameskuy  2008-03-27 11:40:28 
Re: problem with subset one image by another
negra <chemsat@[EMAIL   2008-03-27 05:47:07 
Re: problem with subset one image by another
James Kuyper <jameskuy  2008-03-27 13:54:49 
Re: problem with subset one image by another
negra <chemsat@[EMAIL   2008-03-27 08:40:16 
Re: problem with subset one image by another
Jean H <jghasban@[EMAI  2008-03-27 09:56:34 
Re: problem with subset one image by another
negra <chemsat@[EMAIL   2008-03-28 08:30:05 
Re: problem with subset one image by another
Jean H <jghasban@[EMAI  2008-03-28 10:22:13 
Re: problem with subset one image by another
negra <chemsat@[EMAIL   2008-03-28 18:54:37 
Re: problem with subset one image by another
Jean H <jghasban@[EMAI  2008-03-31 11:05:21 
Re: problem with subset one image by another
James Kuyper <jameskuy  2008-04-01 11:18:11 
Re: problem with subset one image by another
Bulrush <Wasit.Weather  2008-03-28 21:18:27 
Re: problem with subset one image by another
negra <chemsat@[EMAIL   2008-04-04 08:32:13 
Re: problem with subset one image by another
Bulrush <Wasit.Weather  2008-04-04 08:54:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:25:45 CDT 2008.