MRGGRD

Latest: MRGGRD v2.0 (11JUN19) [Download]
23FEB24
Contents

Introduction

Part of the RFM handling of Irregular Grids (
.grd files)

MRGGRD is a FORTRAN90 program to combine two or more .grd files into a single file, taking the union of all selected grid points, and optionally modifying the spectral range.

General Comments

  1. An application for this program would be to create a common irregular grid for RFM calculations where different absorbers are represented in .tab files on individual irregular grids (which can be extracted using the TABHDR program).
  2. The various input files must all be on the same common fine grid, but not necessarily the same (or even overlapping) spectral range
  3. The default option is to produce an output .grd file which exactly matches the spectral range of the user-supplied points, but the user has the option of modifying this range, any extension being filled with '0' (i.e., 'do not use this point') values.
  4. Whatever the final spectral range, the end points will always be flagged with '1' (i.e. 'use this point'), values, whether or not this point was flagged as '1' in any of the original grids.

Installing MRGGRD

Download the source code: [mrggrd.f90]

Then compile with any generic Fortran compiler, eg

gfortran mrggrd.f90 -o mrggrd
which will create an executable mrggrd

Running mrggrd

To run the program, type mrggrd and respond to the prompts.

A typical run might be (user responses in bold)

mrggrd R-MRGGRD: Running MRGGRD v.2.0 Input .grd filenames (max= 10) ending with <CR> File# 1: file1.grd File# 2: file2.grd File# 3: <CR> Spectral range (<CR>= 727.6000: 792.1750 [cm-1]): <CR> Output file: common.grd New grid: Range= 727.6000 792.1750 [cm-1] Total, Used pts= 129151 4192 3.25% R-MRGGRD: Successful Completion
 
2.0 version of MRGGRD being run
 
User supplies list of files to be merged
Range (and spectral units) of the data. User can keep this by typing <CR>, or enter new range.
 
common.grd: User supplied name for new grd file

The program should run almost instantaneously.

Version History

v2.00 (11JUN19)
Recoded in FORTRAN90
v1.00 (23JUL15)
Original code