#!/bin/csh # set echo # # --- extract 2-d fields from a single HYCOM archive file. # --- configured for 28 layers. # # --- output can be formatted, unformatted (BINARY), .[ab] (HYCOM). # --- or use ${E}archv2ncdf2d for netCDF output. # # --- output is HYCOM .a files, converted to "raw" .A files. # --- this is an example, customize it for your datafile needs. # # touch regional.depth.a regional.depth.b if (-z regional.depth.a) then /bin/rm regional.depth.a /bin/ln -s ../topo/depth_GLBt0.72_15.a regional.depth.a endif if (-z regional.depth.b) then /bin/rm regional.depth.b /bin/ln -s ../topo/depth_GLBt0.72_15.b regional.depth.b endif # touch regional.grid.a regional.grid.b if (-z regional.grid.a) then /bin/rm regional.grid.a /bin/ln -s ../topo/regional.grid.a regional.grid.a endif if (-z regional.grid.b) then /bin/rm regional.grid.b /bin/ln -s ../topo/regional.grid.b regional.grid.b endif # # --- D,y,d select the archive files. setenv CDF_TITLE "HYCOM GLBt0.72" setenv CDF_INST "Naval Research Laboratory" # setenv D /nexsan/people/abozec/HYCOM_CESM/GLBt0.72/BHY/expt_04.1/ setenv O /nexsan/people/abozec/HYCOM_CESM/GLBt0.72/BHY/expt_04.1/ setenv E 041 setenv Y 0009 setenv m 1 setenv d 350 setenv h 19 # # foreach d ( 016 046 077 107 138 168 199 229 260 290 321 351 ) setenv d1 `echo $m | awk '{printf("%02d", $1)}'` setenv CDF033 ${O}/${E}_archm.${Y}_${d}_${h}_3dw.nc /bin/rm $CDF033 /Net/yucatan/abozec/PACIFIC/HYCOM/hycom/HYCOM-tools/archive/src/archv2ncdf2d <