spottopgm(1L)spottopgm(1L)NAME
spottopgm - convert SPOT satellite images to Portable Greymap format
SYNTAX
spottopgm [-1|2|3] [Firstcol Firstline Lastcol Lastline] inputfile
OPTIONS
-1|2|3 Extract the given colour from the SPOT image. The colours are infra-red, visible light and ultra-violet, although I don't know
which corresponds to which number. If the image is in colour, this will be announced on standard error. The default colour is 1.
Firstcol Firstline Lastcol Lastline
Extract the specified rectangle from the SPOT image. Most SPOT images are 3000 lines long and 3000 or more columns wide. Unfortu-
nately the SPOT format only gives the width and not the length. The width is printed on standard error. The default rectangle is
the width of the input image by 3000 lines.
DESCRIPTION
Spottopgm converts the named inputfile into Portable Greymap format, defaulting to the first color and the whole SPOT image unless speci-
fied by the options.
INSTALLATION
You must edit the source program and either define BIG_ENDIAN or LITTLE_ENDIAN, and fix the typedefs for uint32_t, uint16_t and uint8_t
appropriately.
BUGS
Currently spottopgm doesn't determine the length of the input file; this would involve two passes over the input file. It defaults to 3000
lines instead.
Spottopgm could extract a three-color image (ppm), but I didn't feel like making the program more complicated than it is now. Besides,
there is no one-to-one correspondence between red, green, blue and infra-red, visible and ultra-violet.
I've only had a limited number of SPOT images to play with, and therefore wouldn't guarantee that this will work on any other images.
AUTHOR
Warren Toomey wkt@csadfa.cs.adfa.oz.au
SEE ALSO
The rest of the Pbmplus suite.
spottopgm(1L)
Check Out this Related Man Page
IMAGECOLORTRANSPARENT(3) 1 IMAGECOLORTRANSPARENT(3)imagecolortransparent - Define a color as transparentSYNOPSIS
int imagecolortransparent (resource $image, [int $color])
DESCRIPTION
Sets the transparent color in the given $image.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $color
- A color identifier created with imagecolorallocate(3).
RETURN VALUES
The identifier of the new (or current, if none is specified) transparent color is returned. If $color is not specified, and the image has
no transparent color, the returned identifier will be -1.
EXAMPLES
Example #1
imagecolortransparent(3) example
<?php
// Create a 55x30 image
$im = imagecreatetruecolor(55, 30);
$red = imagecolorallocate($im, 255, 0, 0);
$black = imagecolorallocate($im, 0, 0, 0);
// Make the background transparent
imagecolortransparent($im, $black);
// Draw a red rectangle
imagefilledrectangle($im, 4, 4, 50, 25, $red);
// Save the image
imagepng($im, './imagecolortransparent.png');
imagedestroy($im);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagecolortransparent()
NOTES
Note
Transparency is copied only with imagecopymerge(3) and true color images, not with imagecopy(3) or pallete images.
Note
The transparent color is a property of the image, transparency is not a property of the color. Once you have set a color to be the
transparent color, any regions of the image in that color that were drawn previously will be transparent.
PHP Documentation Group IMAGECOLORTRANSPARENT(3)
I need to move everything from an older ultra 1 onto a newer ultra 60 (OS and all) running SUNOS 5.5.1. Any suggestions on the best way to do this?
Frank
P.S. If you know of a document somewhere please let me know. (11 Replies)
inputfile:
A B C D
E F G H
1 2 3 4
-----------
I want to read these and put them into a variable:
file=../inputfile
col2line1=`cat $file | awk '{print $2}'`
how do i extract row 2's E,F,G,H or row 3's 1,2,3,4???
I tried the search, didn't get much, maybe i suck at searching too... (4 Replies)
i have this file which has the following contents:
,-0.3000 ,-0.3000 ,-0.3000
,-0.9000 ,-0.9000 ,-0.9000
i would like to get this:
-0.3-0.9-0.3-0.9-0.3-0.9
so far i am trying:
awk '{for(i=1; i<=NF; i++) {printf("%f\n",$i)}}' test1 > test2
any help... (4 Replies)
Hi ,
I have input file and i want to extract below strings
<msisdn xmlns="">0492001956</ msisdn> => numaber inside brackets
<resCode>3000</resCode> => 3000 needs to be extracted
<resMessage>Request time
getBalances_PSM.c(37): d out</resMessage></ns2:getBalancesResponse> => the word... (14 Replies)
Greetings,
I have about 3000 files that I want to search. The first column in all of these 3000 files has a unique serial number on each line. The subsequent columns have lots of data.
I have another masterfile with three columns to help me find all the data I need in a moments notice:
col 1... (15 Replies)
Hi All,
I am facing very strange problem. I have created NIM server with 6.1 TL4SP3. I am having SPOT and MKsysb of the same version. I am able to install the client using this spot and mksysb. Now I got the requirement of installing the 5.3 ML11SP3 client. So using the mksysb of 5.3 ML11SP3, I... (3 Replies)
I have more than 1000 files to parse. Each file contains few lines (number of lines varies) followed by a header line having all column's name (SPOT, NAME etc) and then values for those columns.
**Example File:
sdgafh
dfhaadfha
sfgaf dhah jkthdj
SPOT NAME GENE_NAME CH_MEAN CHDN_MED ... (11 Replies)
Hello,
I have a file with over 100,000 lines. I would like to be able extract 5000 lines at a time and give it as an input to another program.
sed -n '1,5000p' <myfile> > myOut
Similarly for
5001-10000
10001-15000
....
How can I do this in a loop?
Thanks,
Guss (5 Replies)
i have a file contains:
13213,A,300
3423,C,200
5563,A,201
3000,A,400
3000,A,402
3000,A,206
3000,A,303
3000,A,200
4233,N,204
i need to search for numbers in the first column are greater than 3000?
i have another issue if you can help me?
if i want to search in the second or the... (7 Replies)
Hi,
I have a requirement like following:
I have input file like:
Question: 1 ----Multiple choice---
What is
your
favourite colour?
Options: a) red b) blue c) none of these
Question: 2 ---Multiple choice-----
In which month
did you join
your first job?
Options: a) Jan b) Feb c)... (11 Replies)
I have been working of this script for a very long time and I have searched the internet for direction but I am stuck here.
I have about 3000 files with two columns each. The length of each file is 50000. Each of these files is named this way b.4, b.5, b.6, b.7, b.8, b.9, b.10, b.11, b.12... (10 Replies)
Hi,
i backed up a test LPAR using mksyb utility on AIX. and transferred it to NIM server via NFS.
I want to create a SPOT using this mksysb . Please explain me the procedure. And got something online, but that procedure is different.
Please respond. (5 Replies)
Hi everyone!
Ok so I'm trying for the first time to install AIX on a LPAR with NIM.
The NIM:
root@oaexpnimp01(/home/root) # oslevel -s
6100-08-02-1316
I'm trying to install AIX 6.1 TL1. I successfully created a new lpp source
root@oaexpnimp01(/home/root) # lsnim -l AIX61_TL1_2... (10 Replies)
Hello Scrutinizer,
Many Many Many heartily congratulations :b: to you sir(my/our HERO) to complete 3000 THANKS into the forum :b:. This shows how good you are in forums/answering people/helping/guiding people here. You are a true CHAMP, inspiration for LOT of people here. I THANK you for your... (13 Replies)