Page 1 of 1

Opening output in Matlab or grads

Posted: July 29th, 2014, 5:28 pm
by akp
Does anyone have experience taking Hysplit output and plotting it in Matlab or grads? I am interested to know what it would take.

Re: Opening output in Matlab or grads

Posted: July 30th, 2014, 9:36 am
by ariel.stein
There is a postprocessor that will convert the HYSPLIT output (cdump) file into NetCDF format. It is called conc2api and it is located under the cmaq subdirectory.
My understanding is that Grads can read NetCDF format.

Re: Opening output in Matlab or grads

Posted: August 5th, 2014, 12:44 pm
by ariel.stein
For Matlab users:

The user should use the ascii outputs converted from the cdump files using con2asc and upload them into Matlab using the text reading functions such as importdata and textdata. The user should decide what type of output Hysplit should generate : an file with with only non-zero data (ie data in the grid cell where there is pollutant) or a file with data for the whole domain (ie data is reported in all grid cell in the domain with zeros where there are no pollutants). The main advantage is file size but the non-zero data file requires a bit more work in Matlab. The user must also know how to build the lat/lon domain within Matlab. All is doable with Matlab and it does not require major programing but it does require being good at handling indexes and matrixes.

Re: Opening output in Matlab or grads

Posted: May 6th, 2015, 12:57 pm
by ariel.stein
Try selecting "Include Minutes" under Concentration/Utilities/Convert to/ASCII menu.

Re: Opening output in Matlab or grads

Posted: May 6th, 2015, 2:55 pm
by ariel.stein
You should get a file for each output interval. Are you only getting one output file?