Re: Lost long_names / units

From: Michael Notaro <mnotaro_at_nyahnyahspammersnyahnyah>
Date: Wed, 06 May 2009 16:11:20 -0500

Sorry.
Should be:

mmia.aos.wisc.edu/~notaro

On May 6, 2009, at 4:09 PM, David Brown wrote:

> Hi Mike,
> I tried to go to
> http://mmia.aos.wisc.edu/~mnotaro
> but I get a Not Found message:
>
> The requested URL /~mnotaro was not found on this server.
> Apache/1.3.41 Server at mmia.aos.wisc.edu Port 80
>
> Any suggestions?
> -dave
>
> On May 6, 2009, at 3:00 PM, Michael Notaro wrote:
>> Dave
>>
>> Thanks for your email.
>>
>> Please go to mmia.aos.wisc.edu/~mnotaro
>> and click on Netcdf File to download it.
>>
>> 2 things go wrong. Some units are lost (e.g. time_mgr_rst_type)
>> and some long_names are lost (AGDD_PERIOD). Also,
>> levsoi and string_length, 2 unused attributes, are lost.
>>
>> I am trying to make sure the old and new files are identical
>> since ccsm3 will use it as a restart.
>>
>> Thanks, Mike
>>
>> On May 6, 2009, at 3:53 PM, David Brown wrote:
>>
>>> Hi Mike,
>>> This doesn't sound like the correct documented behavior. Can you
>>> supply a test case NetCDF file that will demonstrate the problem
>>> using the sample code below?
>>> Thanks,
>>> -dave
>>>
>>>
>>> On May 6, 2009, at 2:15 PM, Michael Notaro wrote:
>>>
>>>> If I open a file, retrieve all the variables, and write them
>>>> to a new file, some of the variables lose their long_names and
>>>> units
>>>> in the process, mainly integer variables. Please see below.
>>>> Any idea how to maintain all the variables' info, including
>>>> long_name, dimensions, units, etc?
>>>>
>>>> Mike
>>>>
>>>> a=addfile("originalfile.nc","r")
>>>> .....
>>>> ......
>>>> out=addfile("newfile.nc","c")
>>>> do i=0,numb-1
>>>> v = a->$names(i)$
>>>> out->$names(i)$ = v
>>>> delete(v)
>>>> end do
>>>>
>>>> _______________________________________________
>>>> 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 Wed May 06 2009 - 15:11:20 MDT

This archive was generated by hypermail 2.2.0 : Wed May 06 2009 - 16:48:59 MDT