Skip to content

CAELAero/casa-utils

Repository files navigation

CAEL Aero CASA Utils

Utilities for interacting with CASA files and systems.

npm type definitions node License GitHub package.json version Build Status Coverage Status

Documentation

Installation

npm install @cael-aero/casa-utils --save
yarn add @cael-aero/casa-utils
bower install @cael-aero/casa-utils --save

Usage

var casaUtils = require('@cael-aero/casa-utils');
var data = casaUtils.listAllRegistrations('somefile.xls');

TypeScript

import { RegistrationData, CASARegistrationLoader } from '@cael-aero/casa-utils';

let data:RegistrationData[] = CASARegistrationLoader.listAllRegistrations('somefile.xls');

API Examples

Read Registration Data

Download the complete registration data file from here: https://www.casa.gov.au/aircraft/civil-aircraft-register/aircraft-register-data-files

import { RegistrationData, CASARegistrationLoader } from '@cael-aero/casa-utils';

let data:RegistrationData[] = CASARegistrationLoader.listAllRegistrations('aircraftreg_2020.xls');

Read Deregistration Data

Download the complete deregistation data file from here: https://www.casa.gov.au/standard-page/update-data-files

import { DeregistrationData, CASADeregistrationLoader } from '@cael-aero/casa-utils';

let data:DeregistrationData[] = CASADeregistrationLoader.listAllDeregistrations('somefile.csv');

Read New and Returning Registration data

Download the complete adds and returns data file from here: https://www.casa.gov.au/standard-page/update-data-files

import { RegistrationChangeData, CASARegistrationChangeLoader } from '@cael-aero/casa-utils';

let data:RegistrationChangeData[] = CASARegistrationChangeLoader.listAllRegistrationChanges('somefile.csv');

Read RH and RO changes

Download the complete registered holder or registered operation data file from here: https://www.casa.gov.au/standard-page/update-data-files

import { HolderOrOperatorChangeData, CASAHolderOrOperatorChangeLoader } from '@cael-aero/casa-utils';

let data:HolderOrOperatorChangeData[] = CASAHolderOrOperatorChangeLoader.listAllChanges('somefile.csv');

Read registration mark changes to the register data

Download the complete registration mark data file from here: https://www.casa.gov.au/standard-page/update-data-files

import { MarkChangeData, CASAMarkChangeLoader } from '@cael-aero/casa-utils';

let data:MarkChangeData[] = CASAMarkChangeLoader.listAllMarkChanges('somefile.csv');

License

This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.

Related Projects

GFA Utils for Gliding Federation of Australia Data