Terrain file viewing

General questions and postings pertaining to the use of HYSPLIT regardless of the platform. For platform specific questions, use the HYSPLIT Platform forums.
Post Reply
Posts: 16
Joined: November 20th, 2012, 12:46 am
Registered HYSPLIT User: Yes

Terrain file viewing

Post 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.
Posts: 655
Joined: November 7th, 2012, 3:14 pm
Registered HYSPLIT User: Yes

Re: Terrain file viewing

Post 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


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

FC = gfortran

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

clean :
rm -f $(EXE)/$(PGM)
fortran code
(2.19 KiB) Downloaded 91 times
Posts: 20
Joined: November 29th, 2019, 4:38 am
Registered HYSPLIT User: No

Re: Terrain file viewing

Post 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!
Post Reply