Concatenation of multiple files

From: Nate Mikle <natemikle_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 08 2013 - 09:35:04 MST

Hello NCL users,

I am new to both NCL and writing scripts in general, so I apologize in
advance for simple mistakes and questions.

I am trying to concatenate 12 different files that are temporally adjacent
(monthly) into one file. I want to do this so I can then handle them all
together in order to aggregate time (3 hourly) into a daily time step.

If there are any ideas about how to do this or a better direction for me to
go they would be greatly appreciated. Thanks in advance.

-Nate Mikle

Here is the script I have so far, it gives me a segmentation fault. Does
this mean the files are too large (each is 2200 MiB), if so how do I make
them smaller-delete unnecessary varaibles?

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"


pathi = "/home/mikl6340/MsTMIP_Model/CLM-VIC/2000/"
fili =

f = addfiles(pathi+fili+".nc","r")

G = f[:]->GPP



ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Mar 8 07:35:14 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 13 2013 - 14:19:38 MDT