![]() ![]() ![]() There are restrictions on the size of a Z-matrix: the maximum number of variables and the maximum number of atoms within a calculation. vec2ang ( vector ) ¶Ĭonvert a 3-component vector to intensity, inclination and declination.This section presents a brief overview of traditional Z-matrix descriptions of molecular systems. lon and lat in degrees, height in meters. sph2cart ( lon, lat, height ) ¶Ĭonvert spherical coordinates to Cartesian geocentric coordinates. si2nt ( value ) ¶Ĭonvert a value from SI units to nanoTesla.įatiando.utils. sec2hms ( seconds ) ¶Ĭonvert seconds into a string with hours, minutes and seconds. If any of the two is sparse (from scipy.sparse) then will use theĬonjugate Gradient Method ( ).įatiando.utils. Uses the standard if both matrix and vector Solve a linear system using an apropriate algorithm. If it is sparse (from scipy.sparse) then will useįatiando.utils. safe_inverse ( matrix ) ¶Ĭalculate the inverse of a matrix using an apropriate algorithm. The vectors/matrices to take the dot product of.įatiando.utils. (from scipy.sparse) will use the multiplication operator (i.e., *). If a and b are dense, will use numpy.dot. Make the dot product using the appropriate method. matrix : 2d-array, matrix, sparse matrixĪ numpy array with the diagonal of the matrixįatiando.utils.Get the diagonal of a matrix using the appropriate method. nt2si ( value ) ¶Ĭonvert a value from nanoTesla to SI units.įatiando.utils. The standard deviation of the distribution \(\sigma\)įatiando.utils. Value at which to calculate the normal distribution If not None, will interpolate the array to match this new shapeįatiando.utils. If not None, will set the gray-scale values to this range. Of the image (ny, nx), i.e., number of pixels in vertical (height) and Load an array of normalized gray-scale values from an image file. fromimage ( fname, ranges=None, shape=None ) ¶ The declination of the vector (in degrees)įatiando.utils. The inclination of the vector (in degrees) Inclination is positive down and declination is measured with respect The contaminated data array and the standard deviation used toĬoordinate system is assumed to be x->North, y->East, z->Down. If None, will use aĭifferent seed every time. Seed used to generate the pseudo-random numbers. ![]() If True, will return also the standard deviation used to Standard deviation of the Gaussian noise will be this percentage of If True, will consider stddev as a decimal percentage and the Standard deviation of the Gaussian noise that will be added to data Noise added is normally distributed with zero mean. contaminate ( data, stddev, percent=False, return_stddev=False, seed=None ) ¶Īdd pseudorandom gaussian noise to an array. arange ( 4 ), 45, 45 ) ] fatiando.utils. > import numpy > print ang2vec ( 3, 45, 45 ) > print ang2vec ( numpy. Keys are the index of theĮlements and values are their respective values. Store only non-zero elements on an immutable list.Ĭan iterate over and access elements just like if it were a list.ĭictionary used to initialize the list. year2sec: Convert Julian years to secondsĬlass fatiando.utils.sec2year: Convert seconds to Julian years.sec2hms: Convert seconds to hours, minutes, and.SparseList: Store only non-zero elements on an.vecstd: Take the standard deviation array out of a.vecmean: Take the mean array out of a list of arrays.vecnorm: Get the norm of a vector or list of vectors.ang2vec: Convert intensity, inclination and.dircos: Get the 3 coordinates of a unit vector.contaminate: Contaminate a vector with pseudo-random.fromimage: Load a matrix from an image file.Miscellaneous utility functions and classes. Miscellaneous Utilities ( fatiando.utils) ¶ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |