[Thread Prev][Thread Next][Index]

Re: [ferret_users] reading an ascii file



Thanks to all,
hints from Ansley link and Paulo script is very helpful and my problem is solved. Apart from this my colleague and I tried to do it using Python programing thats works too. very soon i will provide Python Script for this.

Thanks

On Thu, Mar 24, 2016 at 5:52 PM, Paulo B. Oliveira <pboliveira@xxxxxxx> wrote:
Saurabh​,

You might already found how to read ascii files following Ansley hints, but if your problem was also to assign a time axis to your data, it might me interesting try the attached script.

I've tried to read the itp.data file "as is", ie, start by reading a 2D var, then stripping off the first column, then convert to 1D with 1752 months, but I found much simpler to create a 1 column data file with linux commands.

Cheers,

Paulo
--------------------

On Fri, 2016-03-18 at 09:16 -0700, Ansley C. Manke wrote:
Hello,
Every ascii file format will need customized Ferret commands. Have you looked at the documentation about ASCII data?
ferret.pmel.noaa.gov/Ferret/documentation/users-guide/data-set-basics/ASCII-DATA

If you still have questions, please write again. Include a portion of the file as it appears, and show the Ferret commands that you tried. 

Ansley

On 3/18/2016 3:54 AM, saurabh rathore wrote:

hi ferreters,


i am trying to read an ascii file in ferret. i downloaded it from noaa website and it was published in PSD format. i tried to open it in ferret but i am not able to do so. it is showing error as unknown file format.


​​NetCDF: Unknown file format (OPeNDAP/netCDF Error code -51)​

​i am attaching my file with this mail so pease have a look and provide me with suitable script to open it so that i can use it for the calculation of correlation and at last i want to plot this correlation spatially.  ​

​regards, saurabh​



--




REGARDS

Saurabh Rathore
M.Tech (Earth System Sciences & Technology)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434





--


REGARDS

Saurabh Rathore
M.Tech (Earth System Sciences & Technology)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement