Re: a question about ncl_convert2nc

From: Zhan Zhao <zzhaocean_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 08 2012 - 14:39:51 MDT

Hi Dave,

ncl_filedump works perfectly for me. Thanks a lot for the help!

Zhan

On Mon, Oct 8, 2012 at 12:25 PM, David Brown <dbrown@ucar.edu> wrote:

> You could try using ncl_filedump instead. The formatting is somewhat
> different from the way that ncdump would look like. The other way would be
> to write a little NCL script. There are
> examples at http://www.ncl.ucar.edu/Applications/o-ascii.shtml.
>
> Another option would be a search and replace operation with a text editor
> starting with the ncdump output.
> -dave
>
>
> On Oct 8, 2012, at 1:00 PM, Zhan Zhao wrote:
>
> Hi Dave,
>
> Thanks for your reply. I normally use ncdump to dump out variables from
> the netcdf file to a text file. Subsequently, this text file needs to be
> read in using a FORTRAN code for some further calculation. The problem is
> that the FORTRAN code could not recognize "_". Is there anyway that I could
> get the real _FillValue (1.e+20f) instead of "_" in the text file?
>
> Thanks a lot!
>
> Zhan
>
> On Mon, Oct 8, 2012 at 11:50 AM, David Brown <dbrown@ucar.edu> wrote:
>
>> Hi Zhan,
>> I assume you are using ncdump to look at the NetCDF file. If so, you
>> should be aware that ncdump always shows values equal to the _FillValue as
>> a "_", no matter what the _FillValue is set to.
>> -dave
>>
>> On Oct 8, 2012, at 12:03 PM, Zhan Zhao wrote:
>>
>> > Dear NCL users,
>> >
>> > I am trying to use ncl_convert2nc to convert GRIB file (NARR reanalysis
>> data) to netcdf format. There seem to be some problem for the "FillValue"
>> in the generated netcdf file. The variable description in the file header
>> shows that the "FillValue" for missing data is 1.e+20f, however, the
>> "FillValue" in the data are shown as "_" in the netcdf file. The command I
>> used was: ncl_convert2nc filename
>> >
>> > Could you please give me any suggestions on how to fix this problem?
>> >
>> > Thanks a lot!
>> >
>> > Zhan
>> > _______________________________________________
>> > 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 Oct 8 14:40:02 2012

This archive was generated by hypermail 2.1.8 : Mon Oct 08 2012 - 15:54:16 MDT