OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
SB_support Namespace Reference

Classes

class  readSB
 

Functions

def is_number (s)
 
def is_int (s)
 
def doy2mndy (yr, doy)
 

Detailed Description

Module for manipulating data from NASA GSFC SeaBASS files.

Author: Joel Scott, SAIC / NASA GSFC Ocean Ecology Lab

Notes:
* This module is designed to work with files that have been properly
  formatted according to SeaBASS guidelines (i.e. Files that passed FCHECK).
  Some error checking is performed, but improperly formatted input files
  could cause this script to error or behave unexpectedly. Files
  downloaded from the SeaBASS database should already be properly formatted, 
  however, please email seabass@seabass.gsfc.nasa.gov and/or the contact listed
  in the metadata header if you identify problems with specific files.

* It is always HIGHLY recommended that you check for and read any metadata
  header comments and/or documentation accompanying data files. Information 
  from those sources could impact your analysis.

* Compatibility: This module was developed for Python 3.6, using Python 3.6.3

/*=====================================================================*/
             NASA Goddard Space Flight Center (GSFC) 
     Software distribution policy for Public Domain Software

 The readsb code is in the public domain, available without fee for 
 educational, research, non-commercial and commercial purposes. Users may 
 distribute this code to third parties provided that this statement appears
 on all copies and that no charge is made for such copies.

 NASA GSFC MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THE SOFTWARE
 FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED
 WARRANTY. NEITHER NASA GSFC NOR THE U.S. GOVERNMENT SHALL BE LIABLE FOR
 ANY DAMAGE SUFFERED BY THE USER OF THIS SOFTWARE.
/*=====================================================================*/

Function Documentation

◆ doy2mndy()

def SB_support.doy2mndy (   yr,
  doy 
)
doy2mndy returns the month and day of month as integers
given year and julian day
syntax: [mn, dy] = doy2mndy(yr, doy)

Definition at line 77 of file SB_support.py.

◆ is_int()

def SB_support.is_int (   s)
is_int determines if a given string is an integer or not, uses int()
returns True for int numbers, else False
syntax: is_int(str)

Definition at line 61 of file SB_support.py.

◆ is_number()

def SB_support.is_number (   s)
is_number determines if a given string is a number or not, does not handle complex numbers
returns True for int, float, or long numbers, else False
syntax: is_number(str)

Definition at line 45 of file SB_support.py.