Opened 11 years ago
Closed 11 years ago
#356 closed help (fixed)
Loading STASHmaster files into convsh
Reported by: | kipling | Owned by: | jeff |
---|---|---|---|
Component: | UM Tools | Keywords: | |
Cc: | Platform: | ||
UM Version: | <select version> |
Description
I'm using convsh (v1.91) to convert UM fieldsfiles to netCDF (via the um2nc script from http://home.badc.rl.ac.uk/iwi/um/utils.html#um2nc), but I can't get it to load my STASHmaster files, and thus I get long_name attributes like:
field1870_20:title = "Stash code = 34270"
for many diagnostics (particularly the UKCA ones) — even though the STASH names (e.g. "IMP SCAVENGING BLK CARB AITKEN (INS)" for the above) are correctly displayed in xconv once I've added my STASHmaster files via the setup dialog.
Is there a way to similarly load an updated set of STASHmaster files into convsh?
Change History (4)
comment:1 Changed 11 years ago by jeff
- Owner changed from um_support to jeff
- Status changed from new to accepted
comment:2 Changed 11 years ago by kipling
Thanks — that makes my output a lot more readable!
However I find that this only imports the first file listed (strace confirms that only file1 is ever opened). If I issue the command multiple times:
getstashmaster file1
getstashmaster file2
…
then each file gets opened, but only records from the last file loaded are used.
comment:3 Changed 11 years ago by jeff
Hi
Yes sorry about that, the input needs to be a tcl list so try
getstashmaster "file1 file2"
or if that doesn't work
getstashmaster [list file1 file2]
Jeff.
comment:4 Changed 11 years ago by jeff
- Resolution set to fixed
- Status changed from accepted to closed
Hi
Yes you just need to use this command in your convsh script
getstashmaster file1 file2 …
Jeff.