[Thread Prev][Thread Next][Index]

Re: [ferret_users] How can I define the regular data attached here?



Hi Karnan,

This is under "reading ascii data".  You'll need to define the grid and use a SET DATA/EZ command or a COLUMNS command (which is an alias for SET DATA/EZ/DELIMITED) to read it.  Look up the syntax for reading tab delimited files, you'll need a /DELIMITER qualifier on that.

Here is one example from the Users List archive that shows how to set up the grid definition and the commands.

https://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2013/msg00317.html


Ansley

On 10/19/2017 7:07 AM, Karnan C wrote:
Dear Russ,

My question is different. I have my data (from altimetry satellite) in text format (tab delimited), not in .nc format. The data is regular and I don't know to define my data set to fill/shade it spatially. My data looks like the following (like arc grid), 

             VARIABLE : Sea Level Anomalies (m)
             DATA SET : NRT merged all satellites Global Ocean Gridded Sea Level Anomalies L4 product
             FILENAME : dataset-duacs-nrt-over30d-global-allsat-msla-h
             FILEPATH : http://atoll-aviso.vlandata.cls.fr:41080/thredds/dodsC/
             SUBSET   : 8 by 8 points (LONGITUDE-LATITUDE)
             TIME     : 02-JUN-2014 00:00
                 60.13E  60.38E  60.63E  60.88E  61.13E  61.38E  61.63E  61.88E 
                 241     242     243     244     245     246     247     248
 13.88N / 416:  0.0252  0.0058  0.0018  0.0106  0.0357  0.0743  0.1119  0.1336
 13.63N / 415:  0.0280  0.0053 -0.0069 -0.0061  0.0146  0.0529  0.0918  0.1157
 13.38N / 414:  0.0449  0.0226  0.0057  0.0010  0.0167  0.0507  0.0869  0.1093
 13.13N / 413:  0.0745  0.0537  0.0345  0.0235  0.0298  0.0537  0.0824  0.1015
 12.88N / 412:  0.1074  0.0887  0.0698  0.0533  0.0473  0.0557  0.0716  0.0866
 12.63N / 411:  0.1328  0.1191  0.1038  0.0863  0.0712  0.0636  0.0649  0.0757
 12.38N / 410:  0.1483  0.1421  0.1326  0.1192  0.1029  0.0861  0.0769  0.0842
 12.13N / 409:  0.1602  0.1607  0.1579  0.1530  0.1440  0.1290  0.1165  0.1174

          
Is it possible to do in ferret.

2017-10-19 12:58 GMT+05:30 Russ Fiedler <russell.fiedler@xxxxxxxx>:

Hi,

Check out the function FILLL_XY

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/appendix-a-external-functions/fill_xy

Something like

let mask = ignore0(ifv msla then 0 else 1) ! Make a mask with 1 wherever original is missing
let msla_filled=fill_xy(msla,mask,10)

should do the trick.



On 19/10/17 17:48, Karnan C wrote:
Dear Ferreters, 

I have downloaded a spatial data set (sea level) which is regular. How can I define the data set in ferret to fill spatially? The text file 'MSLA.txt" attached here.

Thanks,
Regards

--
C. Karnan, CSIR - SRF
Ph. D Research Scholar
National Institute of Oceanography (CSIR)
Regional Centre, Dr Salim Ali Road
Kochi - 682 018.
India.
Mobile No. +91 9633032345; +91 9941811608





--
C. Karnan, CSIR - SRF
Ph. D Research Scholar
National Institute of Oceanography (CSIR)
Regional Centre, Dr Salim Ali Road
Kochi - 682 018.
India.
Mobile No. +91 9633032345; +91 9941811608


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

Privacy Policy | Disclaimer | Accessibility Statement