<div dir="ltr"><div>netCDF-3 is the default for ncl_convert2nc. I think no variable can be > 2Gb<br><br></div>You must create nc4 (which is, under the hood, HDF5).<br><br>%> ncl_convert2nc NIC.IMS_ice_v3_201433700_1km.GRIB2 -nc4c<br><br><br><div>9684190860 NIC.IMS_ice_v3_201433700_1km.nc4<br><br>--<br><br></div><div>If you want a 'time' dimension<br><br>%> ncl_convert2nc NIC.IMS_ice_v3_201433700_1km.GRIB2 -nc4c -itime<br><br></div><div>Good luck<br></div><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 8:08 AM, HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED <span dir="ltr"><<a href="mailto:kevin.havener@us.af.mil" target="_blank">kevin.havener@us.af.mil</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to ncl_convert2nc a grib2 file downloaded from the National Ice Center <a href="http://www.natice.noaa.gov/ims/grib2_v3_p1.html" target="_blank">http://www.natice.noaa.gov/ims/grib2_v3_p1.html</a>. I either get this error:<br>
<br>
Processing file: NIC.IMS_ice_v3_201504900_1km.GRIB2...<br>
Copyright (C) 1995-2014 - All Rights Reserved<br>
University Corporation for Atmospheric Research<br>
NCAR Command Language Version 6.2.0<br>
The use of this software is governed by a License Agreement.<br>
See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
fatal:systemfunc: cannot create child process:[errno=12]<br>
fatal:["Execute.c":8567]:Execute: Error occurred at or near line 270 in file /tmp/tmp12209-55379965.ncl<br>
<br>
Or this error:<br>
<br>
Processing file: NIC.IMS_ice_v3_201504900_1km.GRIB2...<br>
Copyright (C) 1995-2014 - All Rights Reserved<br>
University Corporation for Atmospheric Research<br>
NCAR Command Language Version 6.2.0<br>
The use of this software is governed by a License Agreement.<br>
See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
ncendef: ncid 65536: NetCDF: One or more variable sizes violate format constraints<br>
fatal:NetCDF: Operation not allowed in define mode: error attempting to write variable (ICEC_P31_GST0) to file (/home/havenerk/<a href="http://NIC.IMS_ice_v3_201504900_1km.nc" target="_blank">NIC.IMS_ice_v3_201504900_1km.nc</a>)<br>
fatal:["Execute.c":8567]:Execute: Error occurred at or near line 628 in file /tmp/tmp16245-5537a2e1.ncl<br>
ncclose: ncid 65536: NetCDF: One or more variable sizes violate format constraints<br>
<br>
Pay no attention to the NCL versions. I thought the first might be related to being able to write in a directory, but I got the same on 6.3.0, where I knew that wouldn't be a problem. The second error only occurred under 6.2.0 after I eliminated the potential permission problem by moving the process to my home directory. Only the first error occurs under my own personal laptop 6.3.0.<br>
<br>
It is a 1km resolution file on a polar stereographic grid. I suspected the file size/resolution might be a problem, so I downloaded a 4km version of the same file. Turns out it is different--has 3 variables in it instead of 1, so is actually larger. Aside from not having the right local table for two of the parameters, the ice cover (only parameter in the 1km version) converted to netcdf properly. So maybe still a resolution issue?<br>
<br>
Any idea what is going on here? Hopeless case, bad grib2,or user error?<br>
<br>
Kevin Havener<br>
<br>
Here is an ncl_filedump of the file:<br>
<br>
ncl_filedump NIC.IMS_ice_v3_201504900_1km.GRIB2<br>
Copyright (C) 1995-2014 - All Rights Reserved<br>
University Corporation for Atmospheric Research<br>
NCAR Command Language Version 6.2.0<br>
The use of this software is governed by a License Agreement.<br>
See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
<br>
Variable: f<br>
Type: file<br>
filename: NIC.IMS_ice_v3_201504900_1km<br>
path: NIC.IMS_ice_v3_201504900_1km.GRIB2<br>
file global attributes:<br>
dimensions:<br>
ygrid_0 = 24576<br>
xgrid_0 = 24576<br>
variables:<br>
float ICEC_P31_GST0 ( ygrid_0, xgrid_0 )<br>
center : US NOAA/NESDIS<br>
production_status : Operational products<br>
long_name : Ice cover<br>
units : Proportion<br>
_FillValue : 1e+20<br>
coordinates : gridlat_0 gridlon_0<br>
grid_type : Polar stereographic can be south or north<br>
parameter_discipline_and_category : Oceanographic products, Ice<br>
parameter_template_discipline_category_number : ( 31, 10, 2, 0 )<br>
forecast_time : 0<br>
forecast_time_units : hours<br>
initial_time : 02/17/2015 (00:00)<br>
<br>
float gridrot_0 ( ygrid_0, xgrid_0 )<br>
long_name : vector rotation angle<br>
GridType : Polar Sterographic Projection (North or South)<br>
units : radians<br>
formula_u : Ugrid = cos(rot)*Uearth - sin(rot)*Vearth<br>
formula_v : Vgrid = sin(rot)*Uearth + cos(rot)*Vearth<br>
note1 : u and v components of vector quantities are resolved relative to earth<br>
note2 : apply formulas to derive u and v components relative to grid<br>
<br>
float gridlat_0 ( ygrid_0, xgrid_0 )<br>
corners : ( -21.4961, -21.2433, -20.98764, -21.2433 )<br>
long_name : latitude<br>
grid_type : Polar Sterographic Projection (North or South)<br>
units : degrees_north<br>
Dy : 1<br>
Dx : 1<br>
Lov : 280<br>
Lo1 : 235<br>
La1 : -21.4961<br>
<br>
float gridlon_0 ( ygrid_0, xgrid_0 )<br>
corners : ( -125, -35.27276, 55, 145.2728 )<br>
long_name : longitude<br>
grid_type : Polar Sterographic Projection (North or South)<br>
units : degrees_east<br>
Dy : 1<br>
Dx : 1<br>
Lov : 280<br>
Lo1 : 235<br>
La1 : -21.4961<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>