Skip to content

Commit

Permalink
Merge pull request #1 from NOAA-EMC/develop
Browse files Browse the repository at this point in the history
Feature/hera_preprocess_gefs (#7)
  • Loading branch information
DeniseWorthen authored Apr 22, 2020
2 parents 49057a6 + e956923 commit f01cf2d
Show file tree
Hide file tree
Showing 4 changed files with 964 additions and 0 deletions.
32 changes: 32 additions & 0 deletions utilities/conv_gefs2datm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# How to use conv_gefs2datm


## Input data (GEFS) sources

At HPSS : `/3year/NCEPDEV/GEFSRR/gefsrr_replay_${YYYYstream}stream/${YYYYMMDDHH}.tar`
At WCOSS : `(venus)/gpfs/dell2/emc/modeling/noscrub/Hyun-Chul.Lee/GEFS/Reanal`

## Output data (DATM) archive
At HPSS : `/5year/NCEPDEV/marineda/DATM_INPUT/GEFS/${YYYYMM}/gefs.${YYYYMMDDHH}.nc`
At Hera : `/scratch2/NCEPDEV/marineda/godas_input/DATM_INPUT/GEFS/${YYYYMM}/gefs.${YYYYMMDDHH}.nc`

## To conver from GEFS to DATM (netCDF),

1) Compile the code
`csh ./comp_f77_code.csh conv_gefs2datm`

2) Modify the run script of conv_gefs2datm.fort.csh
`set sdir = !<-- source of GEFS
set tdir = !<-- output dir
set wdir = !<-- work dir `

Define the starting and ending date at YYYYMMDD format
`set symd = 20130529 !<-- start date`
`set eymd = 20190831 !<-- end date`

3) Run the script
`csh ./conv_gefs2datm.fort.csh`

## More information can be found

https://docs.google.com/spreadsheets/d/1M32BvPgXuPqewQWO5cwsECLdcTj9o1x2Rq7GDvSpltk/edit#gid=0
9 changes: 9 additions & 0 deletions utilities/conv_gefs2datm/comp_f77_code.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/csh
module load intel
module load netcdf

set name = $1
#--- in hera
set FFLAGS='-extend-source 132'

ifort $FFLAGS ${name}.f -o ${name} -I$NETCDF/include -L$NETCDF/lib -lnetcdf
Loading

0 comments on commit f01cf2d

Please sign in to comment.