[ncl-talk] How to convert TRMM real time binary file to netcdf format [SEC=UNCLASSIFIED]

Griffith Young griffith.young at bom.gov.au
Wed Nov 23 16:05:17 MST 2016


Hello Arunima Singh,
                In light of Dennis' feedback, you may have a little more work in front of you, but ...

                In my experience, the error message you have received indicates that you are trying to get NCL to execute the file "3B42RT.2016112303.7.bin".

                This will happen if you were to have a command that loads the file:
                *             load "3B42RT.2016112303.7.bin"

                You may have misunderstood what the load command does:
                *             http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml#Load

                Starting with a language can be confusing as not everything means what you think it means.

                The function you probably need to learn is:
                *             http://www.ncl.ucar.edu/Document/Functions/Built-in/fbindirread.shtml

                I am guessing the "fbindirread" is a contraction of "File Binary Direct Read".  Not necessarily obvious (or correct).

                Dennis has provided an excellent example and it is worth studying that script further.

Regards,
                Griff.


From: ncl-talk-bounces at ucar.edu [mailto:ncl-talk-bounces at ucar.edu] On Behalf Of Dennis Shea
Sent: Thursday, 24 November 2016 2:14 AM
To: Marston Johnston
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] How to convert TRMM real time binary file to netcdf format

Attached is a script.
The golden rules of data processing are: (a) Know your data; (b) Look at your data; (c) Think about what you are doing.
It is *your* responsibility to read and understand the TRMM binary data structure and netCDF structure. The attached script is a guide to help you. It may work directly. It is your responsibility to (1) look carefully at what it does; (2) look up functions that it is calling; (3) read the documentation of the functions;


On Wed, Nov 23, 2016 at 5:07 AM, Marston Johnston <shejo284 at gmail.com<mailto:shejo284 at gmail.com>> wrote:
Without your script we cannot do anything to help the situation.
It is a good idea to post enough info for us to help. I hope you have modified the NCL script you copied online to suit your particular needs. Check where you got the TRMM file for info on what type of binary file it is and how to read it. They might even have a script of their own. The more info you have about the data, the more it helps you understand what’s going wrong, and the more we can do to help you.

/M

From: Arunima Singh <arunima at vassarlabs.com<mailto:arunima at vassarlabs.com>>
Date: Wednesday, 23 November 2016 at 13:00
To: Marston Johnston <shejo284 at gmail.com<mailto:shejo284 at gmail.com>>, <ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>>
Subject: Re: [ncl-talk] How to convert TRMM real time binary file to netcdf format

Hi,

Thanks for suggestion.
I ran ncl script but got following error : fatal:syntax error: line 1 in file 3B42RT.2016112303<tel:2016112303>.7.bin before or near 42

PFA screenshot for reference.

Thanks and Regards.
Arunima Singh.

On Wed, Nov 23, 2016 at 5:19 PM, Arunima Singh <arunima at vassarlabs.com<mailto:arunima at vassarlabs.com>> wrote:
Hi,

Thanks for suggestion.
I ran ncl script but got following error : fatal:syntax error: line 1 in file 3B42RT.2016112303<tel:2016112303>.7.bin before or near 42

PFA screenshot for reference


On Wed, Nov 23, 2016 at 4:06 PM, Marston Johnston <shejo284 at gmail.com<mailto:shejo284 at gmail.com>> wrote:
Hi,

“ncdump” is a netcdf command that reads netcdf data files. It is not a tool for reading binary data or conversion to netcdf.
For that you will have to read in the TRMM data in NCL and write the results to a netcdf file.
Take a look at NCL script:

http://www.ncl.ucar.edu/Applications/Scripts/trmm_3B42RT_1.ncl

Best,
/M

From: <ncl-talk-bounces at ucar.edu<mailto:ncl-talk-bounces at ucar.edu>> on behalf of Arunima Singh <arunima at vassarlabs.com<mailto:arunima at vassarlabs.com>>
Date: Wednesday, 23 November 2016 at 11:29
To: <ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>>
Subject: [ncl-talk] How to convert TRMM real time binary file to netcdf format

Hi,

Can we convert TRMM near real time binary file to netcdf format using ncdump command ?


Regards.
Arunima Singh.
_______________________________________________ ncl-talk mailing list ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu> List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talk



_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161123/cc5f3b92/attachment.html 


More information about the ncl-talk mailing list