OMAS users API documentation¶
Following are the classes/routines that are directly available to users within the omas library namespace
OMAS data class¶
|
OMAS Data Collection class |
|
OMAS Data Structure class |
|
OMAS data xarray class |
Functions¶
|
Browse available IMAS data (machine/pulse/run) for given user |
|
Returns a dictionary with coefficients for how various quantities should get multiplied in order to go from cocosin_index to cocosout_index |
Decorator function to be used around the omas_load_XXX methods to enable loading of code.parameters from an XML string |
|
Decorator function to be used around the omas_save_XXX methods to enable saving of code.parameters as an XML string |
|
|
Returns dictionary with COCOS coefficients given a COCOS index |
|
Delete an OMAS object from S3 |
|
Checks if two ODSs have any difference and returns the string with the cause of the different |
|
Parse IMAS Python actor script and return actor input and output IDSs |
|
Returns normalizing scale for a physical quantity. |
|
Utility function to identify COCOS coordinate system If multiple COCOS are possible, then all are returned. |
|
List S3 content |
|
Load an ODS from ASCII (follows IMAS ASCII_BACKEND convention) |
|
Load ODS from xarray dataset |
|
Load ODX from xarray dataset |
|
Load ODS or ODC from HDF5 |
|
Convert HDC data structure to OMAS |
|
Load OMAS data from IMAS |
|
Load ODS from ITER IMAS scenario database |
|
Load ODS or ODC from Json |
|
|
|
Load an ODS from MongoDB |
|
Load ODS or ODC from NetCDF file |
|
Load ODS or ODC from Python pickle |
|
Download an OMAS object from S3 and read it as pickle |
Decorator used to identify machine mapping functions |
|
|
Function to load the json mapping files (local or remote) Allows for merging external mapping rules defined by users. |
|
Function to get machines that have their mappings defined This function takes care of remote transfer the needed files (both .json and .py) if a remote branch is requested |
|
Map ODS to an ODX |
|
Returns an ODS populated with all of the samples |
|
Map ODX to ODS |
|
Provides environment for data input/output to/from OMAS |
|
This function returns an ods with the leaf nodes filled with their property informations |
|
return information about a given node |
|
Return path to temporary folder where OMAS TEST file are saved/loaded |
|
Transform r,z,a,l arrays commonly used to describe poloidal magnetic probes geometry to actual r,z coordinates of the end-points of the probes. |
|
Save an ODS to ASCII (follows IMAS ASCII_BACKEND convention) |
|
Save an ODS to xarray dataset |
|
Save an ODX to xarray dataset |
|
Save an ODS to HDF5 |
|
Convert OMAS data structure to HDC |
|
|
|
Save an ODS to Json |
|
Save an ODS to MongoDB |
|
Save an ODS to NetCDF file |
|
Save ODS to Python pickle |
|
Save an OMAS object to pickle and upload it to S3 |
|
search for the index in an array structure that matches some conditions |
|
utility function used to identify the ion number and element numbers given the ion label and or their Z and/or A |
|
Function used to test python mapping functions |
|
Test save and load OMAS ASCII |
|
Test save and load ODS via xarray file format |
|
Test save and load OMAS data xarray via xarray file format |
|
Test save and load OMAS HDF5 |
|
Test save and load HDC |
|
Test save and load OMAS IMAS |
|
Test save and load OMAS Json |
|
Test save and load OMAS MongoDB |
|
Test save and load NetCDF |
Test save and load Python pickle |
|
|
Test save and load S3 |
|
Given <Jt/R> returns <J.B>, or vice versa Transformation obeys <J.B> = (1/f)*(<B^2>/<1/R^2>)*(<Jt/R> + dp/dpsi*(1 - f^2*<1/R^2>/<B^2>)) N.B. |
Misc¶
|
Class used to interface with IMAS code-parameters XML files |
Exception raised when dynamic data fetching fails |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Dictionary with list of IMAS version and their sub-folder name in the imas_json_dir |
|
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Built-in mutable sequence. |
|
|
Class to handle the structure of an MDS+ tree. |
|
Execute MDS+ TDI functions |
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
dictionary of parameters that control how OMAS operates |
Modules¶
physics-based ODS methods and utilities |
|
plotting ODS methods and utilities |
|
sample ODS methods and utilities |
|
functions for handling IMAS XML data dictionaries |