gmsin [ parameter=value ... ] [ outputfile ... ] gmsin [ parameter=value ... ] [ directory ]Parameters are: on_pass_disk, pass_number, tape_device, first_file, num_files, calibrate, temp_units, byte_output, base_temp, temp_step, vis_delta, ir_delta, use_master, master_file, start_spin, num_spins, start_percent, width_percent, sixbit, fix_missing, ir_rad_table .
The raw data can be read from the pass disk or from tape. Raw data on tape must be in TeraScan Archive Format (TAF).
GMS (Geostationary Meteorological Satellite) is a weather satellite in an Earth-fixed orbit over the equator which (re)transmits environmental data. Its imaging sensor is called the VISSR (Visible and Infrared Spin Scan Radiometer). The telemetry containing VISSR imagery is called Stretched VISSR (S-VISSR) telemetry. The TeraScan gmsin command extracts the VISSR image data and the Manual Amendment Block (MANAM) from the S-VISSR telemetry.
GMS begins a north-south scan of the Earth every half hour (hereafter referred to as a pass). Details of scheduling are provided in the telemetry stream in the MANAM block. This information is stored in each gmsin created VISSR dataset. An example below shows how to extract the scheduling information.
At the satellite sub point, the visible (0.5-0.75um) data have a resolution of 1.25 km and the infrared (10.5-12.5um) data have a resolution of 5.0 km. This gives approximately 10000 visible and 2500 infrared lines and samples for each full Earth scan. Options are provided for subsampling the image data.
The overall spatial subset of data to be extracted can be specified in one of two ways:
1) the smallest rectangular area required to cover a region defined by a master dataset (see master).
2) a rectangular area of a specified size, determined by a start spin number, number of spins (i.e. lines), and two parameters determining the width.
There are no input TeraScan datasets. The sources for input telemetry data are described above. Output is either to a user supplied directory or a user-supplied list of dataset names. If a directory name is entered, output names will be generated and the files will reside in the specified directory. Names will automatically be generated that look like g#.yyddd.hhmm, where # is the GMS satellite number, yyddd is the year and julian date, and time.
Output datasets may optionally be calibrated. The visible data is calibrated from raw count values (0-63) into percent albedo. The infrared data is calibrated from raw count values (0-255) into degrees temperature. The calibration is taken from tables (C.7 and C.8) provided in "The GMS User's Guide" 2nd Ed., Meteorlogical Satellite Center, Tokyo, Japan. March, 1989. Output datasets when calibrated may be 1 or 2-byte data depending on the setting of byte_output.
Answer yes if the passes are on disk and no if the passes are on tape.pass_numberValid responses are [yes or no]. The default is no.
If on_pass_disk=yes, gmsin prompts for pass_number. This is the number of the pass on pass disk to process. You can list passes on disk with the command lspass.tape_deviceThe range of valid responses depends on the disk configuration. The default is the most recent pass.
If on_pass_disk=no, gmsin prompts for tape_device. This takes the device address of the input tape device. Tape device names are machine specific.first_fileThis must be a valid UNIX tape device address.
This is the number of the pass on tape where processing is to begin. gmsin only prompts for this parameter if the answer to on_pass_on_disk was no (i.e. pass is on tape).num_filesThis number is relative to the current position on the tape. For example, if the tape is positioned at the beginning of the tape, first_file=2 will process the second pass on the tape. If the tape is positioned at the third pass on the tape, first_file=1 will process the third pass, and first_file=2 will process the fourth pass.
Valid range [>=1]. The default is 1.
This is the number of consecutive pass(es) to process when the passes are archived on tape and the output dataset is a directory.calibrateValid range is [>=1]. The default is 1.
This specifies whether the output datasets should be calibrated as described above.temp_unitsValid responses are [yes or no]. The default is yes.
OPTIONAL. This determines the temperature units for calibrated IR data. Valid responses are [celsius, kelvin, fahrenheit]. The default is kelvin.byte_output
If calibrate=yes then this specifies that the output dataset is to consist of 1-byte unsigned values rather than 2-byte values. For the visible channel, the effective range of the output data is 0-76.2 percent albedo at steps of .3%. The effective range of the calibrated infrared data is determined by the base_temp and temp_step parameters described below.base_temp, temp_stepValid responses are [yes or no]. The default is yes.
OPTIONAL. If calibrate=yes and byte_output=yes, these two parameters are used to convert temperature output to 8-bit values as follows:vis_delta8-bit value = nearest int( ( temp - base)/step )temp_step must be in the range [.1, 2.]. There are no restrictions on base_temp. The default values for base_temp and temp_step depend on temp_units. For Kelvin or Celsius, the default temp_step is .5. For Fahrenheit, the default temp_step is 1. The default values for temp_base are -85, 188.15, and -120 for Celsius, Kelvin, and Fahrenheit respectively.
This specifies the rate of visible channel subsampling. If vis_delta=4 every fourth sample of every fourth line will be used. If vis_delta=1, all samples and lines will be retained. Specifying vis_delta=0 indicates that the visible data should not be extracted/stored in the dataset. A subsampling of 4 gives the same visible resolution as full resolution infrared data.ir_deltaValid responses are [0,1,2,4,8]. The default is 4.
This specifies the rate of infrared channel subsampling. If vis_delta=4 every fourth sample of every fourth line will be used. If vis_delta=1, all samples and lines will be retained. Specifying vis_delta=0 indicates that the visible data should not be extracted/stored in the dataset.use_masterValid responses are [0,1,2]. The default is 1.
Answer yes if the data is to be selected from the intersection of a master dataset (number 1 in the description above, also see master). Answer no if subsets are to be specified by start spin and width (number 2 in description above).master_fileValid responses are [yes or no]. The default is yes.
If use_master=yes, this is the name of the master dataset used to specify a region for data extraction (see master).start_spinValid responses are any TeraScan dataset that contains an Earth transform. The default is Master.
If use_master=no, this is the spin (i.e. line) number to start saving data. This number is relative to the infrared resolution (spin numbers).num_spinsValid responses are [1..2500]. The default is 1.
If use_master=no, this is the number of spins (i.e. lines) to retrieve. This number is relative to the infrared resolution (spin numbers) and in terms of unsampled spins. Thus if num_spins=500 and delta_vis=2 then the actual number of visible lines will be 250.start_percentValid responses are [1..2500]. The default is 2500.
If use_master=no, this is the percentage of the image to skip in the scan direction (i.e left to right) before saving data. Thus if start_percent=50, the retrieved image will begin halfway into the scan lines, i.e. at middle of the Earth, and consist of data to the right (east) of this starting point.width_percentValid responses are [0..<100]. The default is 0.
If use_master=no, this is the percentage of the image to retrieve beyond the start_percent. Thus if start_percent=50 and width_percent=50 then the right half of the image will be retrieved.fix_missingValid responses are [>0..100]. The default is 100.
OPTIONAL. This parameter controls whether or not gaps of one or two missing lines are automatically fixed. Valid responses are yes and no. The default response is yes.sixbitThe fix rule is as follows; here 'b' means missing data, and numbers mean good data
input output b b b b b b b b b b b b b b b b b b b b b b b b 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 b b b b b b b b 1 2 1 2 1 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 b b b b b b b b 2 2 2 2 2 2 2 2 b b b b b b b b b b b b b b b bThis works well with IR resolution data, but not very good with full resolution visible data, since the minimum gap is usually 4 visible lines.
[1] % gmsin output file(s) : char(255) ? [.] on_pass_disk : char( 3) ? [yes] pass_number : int ? [1] calibrate : char( 3) ? [yes] no vis_delta : char( 1) ? [4] ir_delta : char( 1) ? [1] use_master : char( 3) ? [yes] no start_spin : int ? [0] num_spins : int ? [2500] start_percent : real ? [0] width_percent : real ? [100]The following example extracts GMS visible data from a pass on tape. The master covers a region of the East Coast of the U.S., and the visible data is extracted at full resolution. The data is calibrated, using 2-byte output.
[2] % master output file : char(255) ? [Master] projection : char( 13) ? stereo center_lat : char( 15) ? 40n center_lon : char( 15) ? 75w num_lines : int ? 1000 num_samples : int ? 800 pixel_width : real ? [1.1132] 2 pixel_height : real ? [1.1132] 2 rotate_angle : real ? [0] [3] % gmsin output file(s) : char(255) ? [.] on_pass_disk : char( 3) ? [yes] no tape_device : char(255) ? [/dev/nwd0] first_file : int ? [1] num_files : int ? [1] calibrate : char( 3) ? [yes] byte_output : char( 3) ? [yes] no vis_delta : char( 1) ? [4] 1 ir_delta : char( 1) ? [2] 0 use_master : char( 3) ? [yes] master_file : char(255) ? [Master] Is tape up ? y /dev/nwd0: Processing pass 1The following example shows an example of printing the MANAM scheduling information from the dataset just created.
[4] % printvar input file(s) : char(255) ? g4.91212.1801 include_vars : char(255) ? [] manam_info line_per_elem : char( 3) ? [yes] list_dims : char( 3) ? [yes] n printout : char( 3) ? [no] Printvar g4.91212.1801 Page 1 +------------------------------------------------------------------------------+ : : : MANAM OF GMSS (STRETCHED VISSR SCHEDULE) : : : : FROM 16 MAR. TO 22 MAR.,1992 : : : : METEOROLOGICAL SATELLITE CENTER (TOKYO,JAPAN) : : : +-------------+-------------+---+---+---+---+---+---+---+----------------------+ : TIME(UTC) : VISSR : 16: 17: 18: 19: 20: 21: 22: COMMENTS : +-------------+-------------+---+---+---+---+---+---+---+----------------------+ : 2302 - 2327 : W-0 FULL : O : O : O : O : O : O : O : : +-------------+-------------+---+---+---+---+---+---+---+----------------------+ : 2332 - 2357 : V-0 FULL : O : O : O : O : O : O : O : : +-------------+-------------+---+---+---+---+---+---+---+----------------------+ : 0032 - 0057 : V-1 FULL : O : O : O : O : O : O : O : : +-------------+-------------+---+---+---+---+---+---+---+----------------------+ . . (continues) .
Last Update: $Date: 2000/11/20 19:04:57 $