McIDAS User's Guide
Version 2016.2

[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]


MDE

Edits MD files.


Formats

MDE file KEYS=LIST
MDE
file KEYS=DEL conditions
MDE file KEYS=REST conditions
MDE file KEYS=schema keys UNIT= VALU= conditions


Parameter

file

MD file number to edit (default is set by MDU SET or the previously run MDE command)


Keywords

KEYS=

schema keys

schema keys in the MD file to edit; you can edit more than one at a time only if they contain actual (non-missing) values

 

DEL

deletes the records meeting the search conditions

 

LIST

lists the keywords in the MD file schema by row and column headers and data

 

REST

restores a deleted record; specify ROW and COL using the conditions below

UNIT=

units in which to enter the new key values; specify the units if they are different from those native to the MD file

VALU=

new value for the keys

 

MISS

enters missing data values

conditions

search conditions to meet when searching for a record to edit; use any or all of the options below

 

ROW=

min max

row number or range of numbers (default=1)

 

COL=

min max

column number or range of numbers (default=1)

 

schema keys =

low high units

range and units of the schema keyword to search for; units are necessary if the range is specified in units other than those native to the MD file


Remarks

Use command MDE to edit or restore MD files. If you delete a record accidentally, you can recover it with KEYS=REST provided you have not repacked the file.


Examples

MDE KEYS=DEL ROW=1 5 COL=15 20

This entry deletes columns 15 to 20 in rows 1 through 5.

MDE 6514 KEYS=LIST

This entry lists the keys for MD file 6514.

MDE KEYS=T TD VALU=MISS ID=KMSN TIME=12

This entry flags the temperature (T) and dew point (TD) as missing for Madison, Wisconsin, at 12 UTC.

Use the four commands below to edit a ship observation in MD file 6512.

MDU SET 6512

This entry sets the MD file pointer to 6512. All subsequent MD file commands are performed on this MD file.

MDE KEYS=T UNIT=C VALU=20 ID=KWPR TIME=12

This entry sets the search conditions ID=KWPR and TIME=12. MDE will locate ship ID KWPR at 12 UTC and change the temperature to 20° C.

MDE KEYS=DEL ROW=5 COL=10 15

This entry deletes the records at row 5 and columns 10 to 15.

MDE KEYS=REST ROW=5 COL=10

This entry restores the record at row 5 and column 10.


[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]