Changes between Version 1 and Version 2 of nappy/NappyAPI


Ignore:
Timestamp:
13/10/10 13:12:31 (9 years ago)
Author:
astephen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • nappy/NappyAPI

    v1 v2  
    1414=== 1. Working with NASA Ames file objects === 
    1515 
     16{{{ 
    1617# Start python interactive shell 
    1718$ python 
     
    5354fout.write() 
    5455fout.close() 
     56}}} 
    5557 
    5658=== 2. Converting between formats (NASA Ames, NetCDF and CSV) === 
    5759 
     60{{{ 
    5861# Let's convert a NASA Ames file into a NetCDF file, and add some of our own global attributes 
    5962glob_atts = [("Project", "Really important scientific project involving worms"), 
     
    103106# Actually, I only want to get a single variable from that file, so I'll try 
    104107temp_var = getCDMSVariableFromNA(na_file, "temperature") 
     108}}} 
    105109 
    106110=== 3. Comparing NASA Ames files (and/or CSV files) === 
    107111 
     112{{{ 
    108113# I'd like to compare a NASA Ames and CSV file to check they are the same. 
    109114# It will allow for different formatting of numbers as long as the values 
     
    111116result = nappy.compareNA(na_file, csv_file, header=True, body=True, 
    112117            number_clever=True, delimiter_1="    ", delimiter_2=",") 
     118}}} 
    113119 
    114120=== 4. General NASA Ames utilities === 
    115121 
     122{{{ 
    116123# Get the FFI from a NASA Ames file 
    117124ffi = nappy.readFFI(na_file) 
     
    119126# Given a NASA Ames dictionary (na_dict) get an appropriate FFI. 
    120127ffi = nappy.chooseFFI(na_dict) 
     128}}}