McIDAS-X Learning Guide
Version 2020

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


Grids and Grid Files - Copying Grids and Grid Files

Next, you will copy grids and grid files.
  1. Use the DMAP command to see if there are any local grid files in the range 4000 to 4009.
    Type:  DMAP GRID400
    If you already have grids in this range, select another range of 10 files you can use. (try 4010-4019, then 4020-4029, etc).

  2. Create a local dataset name for the test grids in the MYDATA group and add an alias for the dataset. Use the grid numbers for the first free range you located in the previous step.
    Type:  DSSERVE ADD MYDATA/TEST-GRIDS GRID 4000 4009 "Test grids
    Type:  AKA ADD TG MYDATA/TEST-GRIDS
  3. Copy 20 parameters of the 0Z current day FHOUR=24 model run from the RTGRIDS/GFS dataset to the first position in the TEST-GRIDS dataset. Set the description of the destination grid file to "LEARNING HOW TO COPY GRIDS".
    Type:  GRDCOPY RTGRIDS/GFS TG.1 DEL=YES DAY=#Y TIME=0 FHOUR=24 NUM=20 TITLE='LEARNING HOW TO COPY GRIDS'
  4. List all of the copied grids, then list grids 5 through 10 in dataset TG.1.
    Type:  GRDLIST TG.1 NUM=ALL
    Type:  GRDLIST TG.1 GRID=5 10
    Note that grids 1 through 20 are used; therefore the first available grid is 21 in this dataset.

  5. Copy 5 grids with FHOUR=12 from the same day to the TG.1 dataset starting at grid 21.
    Type:  GRDCOPY RTGRIDS/GFS TG.1 DAY=#Y TIME=0 FHOUR=12 NUM=5 DGRID=21
  6. Verify the grids were copied into the TG.1 dataset; grids 1 through 25 are now being used. (If less than 20 grids were copied in step 3, there might be a gap in the grid numbers in TG.1.)
    Type:  GRDLIST TG.1 GRID=1 25
    Notice that grids 1 to 20 have the FHOUR of 24, and grids 21 to 25 have the FHOUR of 12.
     Dataset position 1      Directory Title= LEARNING TO COPY GRIDS
     PAR  LEVEL      DAY          TIME     SRC  FHR  FDAY         FTIME    GRID  PRO
     ---- ---------- ------------ -------- ---- ---- ------------ -------- ----- ----
     V      650 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     1 LAMB
     U      250 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     2 LAMB
     Z      200 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     3 LAMB
     V    SFC   MBAG 22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     4 LAMB
     U       60 MBAG 22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     5 LAMB
     V      500 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     6 LAMB
     U      825 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     7 LAMB
     T    TRO        22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     8 LAMB
     V      120 MBAG 22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00     9 LAMB
     V     1000 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    10 LAMB
     U      725 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    11 LAMB
     WP     500 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    12 LAMB
     V      700 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    13 LAMB
     Z      550 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    14 LAMB
     WP     850 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    15 LAMB
     U    SFC   MBAG 22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    16 LAMB
     U      150 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    17 LAMB
     WP     200 MB   22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    18 LAMB
     T       90 MBAG 22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    19 LAMB
     LI   SFC        22 MAY 20143 00:00:00  GFS   24 23 MAY 20144 00:00:00    20 LAMB
     U    SFC   MBAG 22 MAY 20143 00:00:00  GFS   12 22 MAY 20143 12:00:00    21 LAMB
     U    TRO        22 MAY 20143 00:00:00  GFS   12 22 MAY 20143 12:00:00    22 LAMB
     U      525 MB   22 MAY 20143 00:00:00  GFS   12 22 MAY 20143 12:00:00    23 LAMB
     U      120 MBAG 22 MAY 20143 00:00:00  GFS   12 22 MAY 20143 12:00:00    24 LAMB
     U      725 MB   22 MAY 20143 00:00:00  GFS   12 22 MAY 20143 12:00:00    25 LAMB
     Number of grids listed = 25
     GRDLIST - done
    

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