Project

General

Profile

Enlarge/Enlargegrid with 2D and 3D dataset

Added by Jens de Bruijn about 7 years ago

Hi,

I have 2 NetCDF files that I would like to merge: sa1_GSMaP_daymean.nc and sa2_GSMaP_daymean.nc. Both are 3-D datasets.

sa_DEM.nc is a 2D dataset in which the area represents the area of the 2 merged files. Unfortunately, when I issue the following 2 commands the temporary outputfile (sa_tmp.nc) keeps expanding far beyond the two inputfiles added together and then crashes when the disk is full.

cdo enlargegrid,sa_DEM.nc sa1_GSMaP_daymean.nc sa_tmp.nc
cdo mergegrid sa_tmp.nc sa2_GSMaP_daymean.nc sa_GSMaP_daymean.nc

Thank you for your help!


Replies (6)

RE: Enlarge/Enlargegrid with 2D and 3D dataset - Added by Ralf Mueller about 7 years ago

Hi Jens!
Could you make file available for download?

cheers
ralf

RE: Enlarge/Enlargegrid with 2D and 3D dataset - Added by Jens de Bruijn about 7 years ago

Dear Ralph, Unfortunately, my datasets are 18GB and 16GB.. :(

RE: Enlarge/Enlargegrid with 2D and 3D dataset - Added by Ralf Mueller about 7 years ago

for grid-related operations usually the first timestamp is sufficient. if it's still to large to upload, you can use our ftp server:ftp.zmaw.de

user: anonymous
passwd: mail-address

write access below incomming directory

hth
ralf

RE: Enlarge/Enlargegrid with 2D and 3D dataset - Added by Jens de Bruijn about 7 years ago

I have uploaded the files with the first 2 timesteps to the folder incoming/jens.

Thank you so much for having a look!

Jens

RE: Enlarge/Enlargegrid with 2D and 3D dataset - Added by Uwe Schulzweida about 7 years ago

Try the CDO operator collgrid for this task:

cdo  collgrid  sa1_GSMaP_daymean.nc  sa2_GSMaP_daymean.nc  result

RE: Enlarge/Enlargegrid with 2D and 3D dataset - Added by Ralf Mueller about 7 years ago

I uploaded some result files to

ftp.zmaw.de:/outgoing/ram

you can check the commands in the history attribute

with remapbil and mergegrid I had memory problems, but collgrid worked out of the box.

hth
ralf

    (1-6/6)