[gradsusr] xdfopen with multiple files
Hoop
hoop at colorado.edu
Sat Apr 14 19:24:05 EDT 2018
In xdfopen, xdef/ydef/zdef/tdef/edef each need the name of actual
dimension in the file as the first argument. No such dimension
actually exists for this edef (unless you build a super-file with
ncecat (NCO) or some such), so you will have to construct a
"full open" Data Descriptor File (DDF) of the "dtype netcdf" variety,
presumably. See:
http://cola.gmu.edu/grads/gadoc/SDFdescriptorfile.html
-Hoop
On 04/14/18 10:00, gradsusr-request at gradsusr.org wrote:
> Send gradsusr mailing list submissions to
> gradsusr at gradsusr.org
>
> Today's Topics:
>
> 1. Re: xdfopen with multiple files (Jeff Duda)
> 2. Re: xdfopen with multiple files (James T. Potemra)
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 13 Apr 2018 11:50:12 -0600
> From: Jeff Duda <jeffduda319 at gmail.com>
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Subject: Re: [gradsusr] xdfopen with multiple files
> Message-ID:
> <CAAig09BvSQFZXEVgkB1MUb53mkR8nFb7QvjwB9cr_mGPrqGRpg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Have you tried removing the underscores from the names? Maybe there's a
> syntax limitation.
>
> Jeff
>
> On Fri, Apr 13, 2018 at 1:47 AM, Kiswendsida Hyacinthe Guigma <
> K.Guigma at sussex.ac.uk> wrote:
>
>> Thank you Jeff for these ideas. But none of them works.I am allowed to use
>> up to 15 characters while I'm actually using only 14. And I removed several
>> names to keep only 2 of them, but I still get the same error message. In
>> the past I used similar length of names (24) with binary files (then using
>> open) and it worked fine. So I don't think this could be the cause of the
>> issue.
>>
>> GUIGMA
>> ________________________________________
>> From: gradsusr [gradsusr-bounces at gradsusr.org] on behalf of Jeff Duda [
>> jeffduda319 at gmail.com]
>> Sent: Thursday, April 12, 2018 8:52 PM
>> To: GrADS Users Forum
>> Subject: Re: [gradsusr] xdfopen with multiple files
>>
>> Could it be that there is a length or character limit for entries in a
>> control file and that your edef entry is exceeding that limit? What happens
>> if you remove several of those names from the list in the EDEF line? If it
>> works after removing several entries then that would suggest it is indeed a
>> length limit issue.
>>
>> Jeff Duda
>>
>> On Thu, Apr 12, 2018 at 12:11 PM, Kiswendsida Hyacinthe Guigma <
>> K.Guigma at sussex.ac.uk<mailto:K.Guigma at sussex.ac.uk>> wrote:
>> Hi grads-users!
>> I have many Netcdf files into one folder that I want to plot using grads.
>> Each file contains 111 variables and the X and Y dimensions are the same
>> for them all. They don't contain time nor level dimension. ncdump gives me
>> the following result:
>> netcdf IND2_ERA_1_1_HImax_4d_95perc_stat {
>> dimensions:
>> lon = 71 ;
>> lat = 31 ;
>> variables:
>> double lon(lon) ;
>> lon:units = "degrees_east" ;
>> lon:long_name = "lon" ;
>> lon:axis = "X" ;
>> double lat(lat) ;
>> lat:units = "degrees_north" ;
>> lat:long_name = "lat" ;
>> lat:axis = "Y" ;
>> float int(lat, lon) ;
>> int:units = "deg_C" ;
>> int:_FillValue = 1.e+32f ;
>> int:long_name = "Mean intensity" ;
>> float int1(lat, lon) ;
>> int1:units = "deg_C" ;
>> int1:_FillValue = 1.e+32f ;
>> int1:long_name = "Mean intensity in January" ;
>> float int2(lat, lon) ;
>> int2:units = "deg_C" ;
>> int2:_FillValue = 1.e+32f ;
>> int2:long_name = "Mean intensity in February" ;
>> float int3(lat, lon) ;
>> int3:units = "deg_C" ;
>> int3:_FillValue = 1.e+32f ;
>> int3:long_name = "Mean intensity in March" ;
>> float int4(lat, lon) ;
>>
>>
>> .......}
>> It is possible for me to read each one of them using sdfopen. But when it
>> comes to open them with xdfopen using the TEMPLATE option, it gives me this
>> error message:
>>
>> gadxdf error: Missing or invalid dimension size.
>>
>> --> The invalid description file record is:
>>
>> --> edef 24 names min_3d_90perc min_4d_90perc min_5d_90percperc
>> min_6d_90perc min_3d_95percperc min_4d_95perc min_5d_95perc min_6d_95perc
>> min_3d_99perc min_4d_99perc min_5d_99perc min_6d_99perc max_3d_90perc
>> max_4d_90perc max_5d_90perc max_6d_90perc max_3d_95perc max_4d_95perc
>> max_5d_95perc max_6d_95perc max_3d_99perc max_4d_99perc max_5d_99perc
>> max_6d_99perc
>>
>> The data file was not opened.
>>
>> This is my ctl script:
>>
>> DSET /research/geog/data2/DATA/kg312/Fortran/IND2_ERA_1_1_%e_stat.nc<
>> http://secure-web.cisco.com/1Tar9q50sH9hmB-uA59xcnSUyPQ8PtAJrY5tsJjSZbBtJ93s01xtewy9QUUZLJ2sYaQ_BSyX1i_-xV2ZdHtlYcvyTTC-gzd7qP_OkJ0xQjpiJ1-4DjIfVWpN4BKQT_IS5Pq1Y_eerdq2w8gr2UAhjA-kHcxr0s6DVVqdzJsAIxxlI-J7DDmpRGqk04mA_2f5StrVk87ZRZyhiQB9KR8Jq_6ELZNA1Wr3e13GIgpK2QG2VByV_RfFlXcUY4BT-nwsllnrSCMi5iDkyp8cgBcx1ewpBfRlCzjoyxoM6q4Hx2nZrdoYTFtF48q1PHCp6eUVgFffNQh3FNqVHPjfEq-H35oTbydt3rdfxpPnQownbsh8Zs2CnM-h53oUsUfKXCdhBxQ-QZggkRfY0TeJqiq43muhiO8DVxX-g4VOkwxUlSg2pAoT2iHfh3m75Ru70QIWr/http%3A%2F%2Fe_stat.nc>
>> DTYPE NETCDF
>> OPTIONS template
>> EDEF 24 NAMES min_3d_90perc min_4d_90perc min_5d_90percperc min_6d_90perc
>> min_3d_95percperc min_4d_95perc min_5d_95perc min_6d_95perc min_3d_99perc
>> min_4d_99perc min_5d_99perc min_6d_99perc max_3d_90perc max_4d_90perc
>> max_5d_90perc max_6d_90perc max_3d_95perc max_4d_95perc max_5d_95perc
>> max_6d_95perc max_3d_99perc max_4d_99perc max_5d_99perc max_6d_99perc
>> VARS 111
>> int 1 99 int
>> int1 1 99 int1
>> int2 1 99 int2
>> int3 1 99 int3
>> ....
>> ENDVARS
>>
>> I really don't understand that. Is is because my netCDF files are 2D (if
>> this was a problem I don't think I would be able to open them using
>> sdfopen)?
>> Your help is more than welcome.
>>
>> Cheers
>>
>> GUIGMA
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>>
>> --
>> Jeff Duda, Research Scientist
>>
>> University of Colorado Boulder
>>
>> Cooperative Institute for Research in Environmental Sciences
>>
>> NOAA/OAR/ESRL/Global Systems Division
>>
>> Boulder, CO
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
>
More information about the gradsusr
mailing list