Re: Error: "file: NclNewFile.c, line: 6839 Could not get varnode"

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 09 2012 - 14:07:45 MDT

Thanks Bridget. I verified the problem at this end, and have filed a ticket, NCL-1508.

I believe the values on the file were written fine, but it looks like the metadata is dropping off.

--Mary

On Jul 6, 2012, at 1:11 PM, Bridget Thrasher wrote:

> I am getting a really odd error that is causing the word "string" to be written to the beginning of the string attributes in my output files. (It also looks like not everything is being written since the lon attributes are missing.) Though the data is there, this is then causing problems when trying to use the new files. Any ideas on what's going on?
>
> %ncdump -h tmax_195001.nc
> netcdf tmax_195001 {
> dimensions:
> lat = 3105 ;
> lon = 7025 ;
> time = 1 ;
> variables:
> double lat(lat) ;
> lat:units = "degrees_north" ;
> lat:long_name = "latitude coordinate" ;
> lat:standard_name = "latitude" ;
> double lon(lon) ;
> lon:units = "degrees_east" ;
> lon:long_name = "longitude coordinate" ;
> lon:standard_name = "longitude" ;
> lon:valid_range = 0., 360. ;
> float tasmax(time, lat, lon) ;
> tasmax:units = "C" ;
> tasmax:long_name = "monthly average maximum temperature" ;
> tasmax:missing_value = 1.e+20f ;
> tasmax:_FillValue = 1.e+20f ;
> int time(time) ;
> time:long_name = "time" ;
> time:units = "days since 1950-1-1" ;
>
> // global attributes:
> :Conventions = "NA" ;
> :title = "Repackaged PRISM" ;
> :institution = "NASA AMES Research Center (re-packaging only)" ;
> :source = "PRISM" ;
> :references = "http://www.prism.oregonstate.edu/" ;
> :comment = "Data packed into netcdf for convenient access." ;
> :NCO = "4.0.9" ;
> }
>
> %ncl
> Copyright (C) 1995-2012 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.1.0-beta
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> ncl 0> fin = addfile("tmax_195001.nc","r")
> ncl 1> fout = addfile("new_195001.nc","c")
> ncl 2> fout->tasmax = fin->tasmax
> file: NclNewFile.c, line: 6839
> Could not get varnode->name: <time>
> file: NclNewFile.c, line: 6839
> Could not get varnode->name: <lat>
> file: NclNewFile.c, line: 6839
> Could not get varnode->name: <lon>
> ncl 3> exit
>
> %ncdump -h new_195001.nc
> netcdf new_195001 {
> dimensions:
> time = 1 ;
> lat = 3105 ;
> lon = 7025 ;
> variables:
> float tasmax(time, lat, lon) ;
> string tasmax:units = "C" ;
> string tasmax:long_name = "monthly average maximum temperature" ;
> tasmax:missing_value = 1.e+20f ;
> tasmax:_FillValue = 1.e+20f ;
> int time(time) ;
> string time:long_name = "time" ;
> string time:units = "days since 1950-1-1" ;
> double lat(lat) ;
> string lat:units = "degrees_north" ;
> string lat:long_name = "latitude coordinate" ;
> string lat:standard_name = "latitude" ;
> double lon(lon) ;
> }
>
> %uname -a
> Linux bridge3 2.6.32.54-0.3.1.20120223-nasa #1 SMP Fri Feb 24 00:06:41 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
>
>
>
> --
> Bridget Thrasher, PhD
> Independent Contractor, Research Scientist
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 9 14:07:55 2012

This archive was generated by hypermail 2.1.8 : Thu Jul 12 2012 - 10:16:50 MDT