Page 1 of 1

Terrain file viewing

Posted: January 7th, 2020, 8:02 am
by indumati_sp
Is there anyway of viewing the user modified terrain file Terrain.ASC in Hysplit. I have modified the ASCDATA.CFG file for the domain of my interest and used the terrain data for this area. How can I ensure that the model uses this data and how to view it with the concentration results..
Can Hysplit use higher resolution terrain data other than that supplied with bdyfiles?
Please help.

Re: Terrain file viewing

Posted: January 9th, 2020, 1:43 pm
by ariel.stein
Please find attached the fortran code to read the .ASC and convert them to the concentration formatted files. You can use any of the visualization tools that HYSPLIT offers to create a graphic.
Please rename the attachment to a .f extension

Below is the content of a makefile you can use to compile the program:


SHELL = /bin/sh

PGM=bdy2bin
EXE=.

SUN5 = -O -free
AIXC = -O3
AIX8 = -O3 -qarch=auto -qmaxmem=8192 -qstrict
AIX6 = -O -qarch=com -qmaxmem=8192
AIX5 = -O -qarch=com -qmaxmem=8192
AIX4 = -O -qarch=pwr2 -qmaxmem=8192
AIX3 = -O -qcharlen=3072 -Pv -Wp,-gv
DEC3 = -O -assume byterecl
SGI5 = -O -bytereclen -freeform
SGI3 = -O -old_rl
ABSF = -O1 -f free
PGF9 = -O -Mfree -byteswapio
INTL = -O -FR -assume byterecl -convert big_endian -I.
GF95 = -O2 -fendian=big -ffree-form
GFOR = -O2 -fconvert=big-endian -frecord-marker=4 -ffree-form

CFLAGS = $(GFOR)
FC = gfortran

$(PGM) : $(PGM).f
$(FC) -o $(EXE)/$@ $(CFLAGS) $?

clean :
rm -f $(EXE)/$(PGM)

Re: Terrain file viewing

Posted: February 27th, 2020, 3:30 pm
by McP82
Thanks, I did that and it worked; it helps a lot to be able to extract and view terrain files for our meteorology class!