Wednesday, February 26, 2014

howt to set up MIRS


How  to setup mirs?
Note: these steps below are intended to run part of mirs system to generate observation BT only and compare it with simulated BT that is generated using gfs 6-hr frorecast.
1.       Check out MIRS code
$ cd     # go to /data/home001/dxu
$ cd mirs_trunk
2.       Compile the code ( directory is relative to MIRS_ROOT )
$ cd   /data/home001/dxu/mirs_trunk/setup
$ vi paths      # set up MIRS_ROOT to /data/home001/dxu/mirs_trunk
$ cd   /data/home001/dxu/mirs_trunk/src/crtm/REL-2.1.1/configure
$ source   ifort.setup
$ cd   /data/home001/dxu/mirs_trunk/src/crtm/REL-2.1.1
$ make     # compile CRTM lib
Note: create libCRTM.a  under “libsrc” folder under the current folder.
$ make  install   # create includes
note: move crtm library to “lib” folder and  mod files to “includes” folder.
$ cd    /data/home001/dxu/mirs_trunk/src     # compile whole mirs library  and generate all the executable files
$ make
Note: executables files are under “bin” folder.
3.       Run mirs
$ cd   /data/home001/dxu/mirs_trunk/gui
$ make   
Note: compile java gui code.
$ make run   # gui pop-out
Note: specify scripts and config file to run mirs, which is part of the entire mirs.
3.1 configuration


3.2 Run mirs
Click button “ generate script”
Note:  generate two files:

    setup/f18_pcf.bash
    script/f18_scs.bash

3.3 Output location:
Observation data :
/data/home001/dxu/mirs_trunk/data/TestbedData/DynamicData/fmsdr/f18_ssmis/2013-01-20
FMSDR: footprint matched sensor data record.
Interpolated gfs 6-hr forecast data that is input to CRTM :
/data/home001/dxu/mirs_trunk/data/TestbedData/DynamicData/nwp_analys/f18_ssmis/2013-01-20
Simulated BT data :
/data/home001/dxu/mirs_trunk/data/TestbedData/DynamicData/fwd_analys/f18_ssmis/2013-01-20
Bias file :
/data/home001/dxu/mirs_trunk/data/SemiStaticData/biasCorrec
Eg: biasCorrec_f18_2013_01_20.dat_gfs

3.4 Data structure of binary data that are generated for both MIRS observed BT and simulated BT.
"IO_MeasurData.f90"  under /data/home001/dxu/mirs_trunk/src/lib/io ) :
MeasurData_type : tb       
   !Brightness temperatures
SUBROUTINE ReadHdrMeasurmts    : ## read header first
SUBROUTINE ReadMeasurmts(iu,Y,ierr)  : ## then to read BT.
IDL equivalent code to read BT:
"io_measur.pro" under /data/home001/dxu/mirs_trunk/src/lib_idl : 
Name:         LoadRadFile
3.5 Data structure of bias file :
IDL equivalent code to read bias file:
"io_measur.pro" under /data/home001/dxu/mirs_trunk/src/lib_idl
Name:         ReadBias

No comments:

Post a Comment