Groovy Script for Dumping NCML

by 10/24/2011 02:17:00 PM 0 comments
If you work with NetCDF and want to see the NcML you can create a groovy script like:
#!/usr/bin/env groovy

@Grab(group = 'edu.ucar.netcdf', module = 'netcdf-all', version = '4.0')
def nc = ucar.nc2.dataset.NetcdfDataset.openDataset(args[0])
nc.writeNcML(System.out, '')

hohonuuli

Developer

Cras justo odio, dapibus ac facilisis in, egestas eget quam. Curabitur blandit tempus porttitor. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.

0 comments: