@aguacerowx/javascript-sdk 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
- {
2
- "name": "@aguacerowx/javascript-sdk",
3
- "version": "0.0.7",
4
- "private": false,
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "description": "Core SDK for fetching and processing Aguacero weather data.",
9
- "main": "src/index.js",
10
- "module": "src/index.js",
11
- "react-native": "src/index.js",
12
- "exports": {
13
- ".": {
14
- "import": "./src/index.js",
15
- "require": "./src/index.js",
16
- "react-native": "./src/index.js"
17
- }
18
- },
19
- "files": [
20
- "dist",
21
- "src"
22
- ],
23
- "scripts": {
24
- "build": "babel src -d dist"
25
- },
26
- "author": "Your Name",
27
- "license": "MIT",
28
- "dependencies": {
29
- "proj4": "^2.11.0",
30
- "fzstd": "^0.1.1"
31
- },
32
- "peerDependencies": {
33
- "react": "*",
34
- "react-native": "*",
35
- "react-native-device-info": ">=10.0.0"
36
- },
37
- "peerDependenciesMeta": {
38
- "react": {
39
- "optional": true
40
- },
41
- "react-native": {
42
- "optional": true
43
- },
44
- "react-native-device-info": {
45
- "optional": true
46
- }
47
- }
48
- }
1
+ {
2
+ "name": "@aguacerowx/javascript-sdk",
3
+ "version": "0.0.9",
4
+ "private": false,
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "description": "Core SDK for fetching and processing Aguacero weather data.",
9
+ "main": "src/index.js",
10
+ "module": "src/index.js",
11
+ "react-native": "src/index.js",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./src/index.js",
15
+ "require": "./src/index.js",
16
+ "react-native": "./src/index.js"
17
+ }
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "src"
22
+ ],
23
+ "scripts": {
24
+ "build": "babel src -d dist"
25
+ },
26
+ "author": "Your Name",
27
+ "license": "MIT",
28
+ "dependencies": {
29
+ "proj4": "^2.11.0",
30
+ "fzstd": "^0.1.1"
31
+ },
32
+ "peerDependencies": {
33
+ "react": "*",
34
+ "react-native": "*",
35
+ "react-native-device-info": ">=10.0.0"
36
+ },
37
+ "peerDependenciesMeta": {
38
+ "react": {
39
+ "optional": true
40
+ },
41
+ "react-native": {
42
+ "optional": true
43
+ },
44
+ "react-native-device-info": {
45
+ "optional": true
46
+ }
47
+ }
48
+ }
@@ -556,14 +556,14 @@ export class AguaceroCore extends EventEmitter {
556
556
  if (this.customColormaps[variable] && this.customColormaps[variable].colormap) {
557
557
  return {
558
558
  colormap: this.customColormaps[variable].colormap,
559
- baseUnit: this.customColormaps[variable].defaultUnit || ''
559
+ baseUnit: this.customColormaps[variable].baseUnit || ''
560
560
  };
561
561
  }
562
562
 
563
563
  const colormapKey = DICTIONARIES.variable_cmap[variable] || variable;
564
564
  const customColormap = this.customColormaps[colormapKey];
565
565
  if (customColormap && customColormap.colormap) {
566
- return { colormap: customColormap.colormap, baseUnit: customColormap.defaultUnit || '' };
566
+ return { colormap: customColormap.colormap, baseUnit: customColormap.baseUnit || '' };
567
567
  }
568
568
 
569
569
  const defaultColormapData = DEFAULT_COLORMAPS[colormapKey];
@@ -278,7 +278,7 @@ export const MODEL_CONFIGS = {
278
278
  },
279
279
  'gfs': {
280
280
  max_zoom: 3,
281
- vars: ['cfrzr_total', 'tp_0_total', '2r_2', '2t_2', 'refd_1000', 'vis_0', 'gust_runmax', "gh_tendency_500", 'bulk_shear_speedmb_500', 'bulk_shear_speedmb_700', 'bulk_shear_speedmb_850', 'bulk_shear_speedmb_925','2t_2iso0', 'crain_total', 'crain_3', 'crain_6', 'crain_12', 'crain_24', 'crain_48', 'cicep_total', 'cicep_3', 'cicep_6', 'cicep_12', 'cicep_24', 'cicep_48', 'cfrzr_total', 'cfrzr_3', 'cfrzr_6', 'cfrzr_12', 'cfrzr_24', 'cfrzr_48', 'csnow_total', 'csnow_3', 'csnow_6', 'csnow_12', 'csnow_24', 'csnow_48', 'tp_3', 'tp_6', 'tp_12', 'tp_24', 'tp_48', 'cin_0', 'wind_speed_700', 'wind_speed_200', 'divergence_200', 'd_925', 'tadv_300', 'w_850', 'rainRefl', 'icepRefl', 'snowRefl', 'frzrRefl', 'lftx_0', 'refc_0', 'fgen_850', 'hcc_0', 'r_700', 't_850', 't_850iso0', 'r_850', 'tcc_0', 'hlcy_3000', 'thickness', 'vo_850', 'wind_direction_2000', 'r_500', 'gh_500', 'wind_speed_500', '2d_2', 'cape_25500', 'mcc_0', 'w_500', 'pwat_0', 'divergence_850', 't_500', 'wind_speed_850', 'lcl', 'cape_0', 'tadv_850', 'tadv_700', 'theta2PVU', 'wind_speed_2000', 'lapse_rates_500700', 'vo_500', 'irsat', 't_700', 't_700iso0', 'cin_25500', 'ehi_3000', 'lcc_0', 'gh_850', 'wind_speed_925', 'gh_200', 'wind_speed_300', 'fgen_700', 'vo_700', 'd_850', 'thetaE', 'pres2PVU', 'd_700', 'crain', 'csnow', 'cicep', 'cfrzr', 'w_700', 'gust_0', 'ivt', 'atemp', 'cape_9000', 'r_925', 'mslma_0', 'w_925', 'cin_9000', 'mean700300mbRH', 'wind_speed_10', 't_925', 't_925iso0', 'gh_925', 'gh_700', 'gh_300'],
281
+ vars: ['2d_2', 'tp_0_total', '2r_2', '2t_2', 'refd_1000', 'vis_0', 'gust_runmax', "gh_tendency_500", 'bulk_shear_speedmb_500', 'bulk_shear_speedmb_700', 'bulk_shear_speedmb_850', 'bulk_shear_speedmb_925','2t_2iso0', 'crain_total', 'crain_3', 'crain_6', 'crain_12', 'crain_24', 'crain_48', 'cicep_total', 'cicep_3', 'cicep_6', 'cicep_12', 'cicep_24', 'cicep_48', 'cfrzr_total', 'cfrzr_3', 'cfrzr_6', 'cfrzr_12', 'cfrzr_24', 'cfrzr_48', 'csnow_total', 'csnow_3', 'csnow_6', 'csnow_12', 'csnow_24', 'csnow_48', 'tp_3', 'tp_6', 'tp_12', 'tp_24', 'tp_48', 'cin_0', 'wind_speed_700', 'wind_speed_200', 'divergence_200', 'd_925', 'tadv_300', 'w_850', 'rainRefl', 'icepRefl', 'snowRefl', 'frzrRefl', 'lftx_0', 'refc_0', 'fgen_850', 'hcc_0', 'r_700', 't_850', 't_850iso0', 'r_850', 'tcc_0', 'hlcy_3000', 'thickness', 'vo_850', 'wind_direction_2000', 'r_500', 'gh_500', 'wind_speed_500', 'cape_25500', 'mcc_0', 'w_500', 'pwat_0', 'divergence_850', 't_500', 'wind_speed_850', 'lcl', 'cape_0', 'tadv_850', 'tadv_700', 'theta2PVU', 'wind_speed_2000', 'lapse_rates_500700', 'vo_500', 'irsat', 't_700', 't_700iso0', 'cin_25500', 'ehi_3000', 'lcc_0', 'gh_850', 'wind_speed_925', 'gh_200', 'wind_speed_300', 'fgen_700', 'vo_700', 'd_850', 'thetaE', 'pres2PVU', 'd_700', 'crain', 'csnow', 'cicep', 'cfrzr', 'w_700', 'gust_0', 'ivt', 'atemp', 'cape_9000', 'r_925', 'mslma_0', 'w_925', 'cin_9000', 'mean700300mbRH', 'wind_speed_10', 't_925', 't_925iso0', 'gh_925', 'gh_700', 'gh_300'],
282
282
  category: 'Global',
283
283
  name: 'GFS',
284
284
  bounds: [-180, -90, 180, 90],