Skip to content

Commit 824f528

Browse files
committed
patch aiguillles rouges airspace
1 parent 577d8ca commit 824f528

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

libs/common/src/lib/airspaces.test.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,32 @@ describe('Time dependent Airspace', () => {
228228
"type": 4,
229229
}
230230
`);
231+
expect(airspaces.get('PARC/RESERVE AIGUILLES ROUGES 1000M/SOL')).toMatchInlineSnapshot(`
232+
{
233+
"activity": 0,
234+
"country": "FR",
235+
"floorLabel": "GND",
236+
"floorM": 0,
237+
"floorRefGnd": true,
238+
"icaoClass": 8,
239+
"name": "PARC/RESERVE AIGUILLES ROUGES 1000M/SOL",
240+
"topLabel": "3281ft GND",
241+
"topM": 1000,
242+
"topRefGnd": true,
243+
"type": 29,
244+
}
245+
`);
246+
});
247+
248+
test('PARC/RESERVE AIGUILLES ROUGES 1000M/SOL', () => {
249+
const aiguillesRouges = airspaces.get('PARC/RESERVE AIGUILLES ROUGES 1000M/SOL')!;
250+
const override = applyTimeRule(aiguillesRouges, new TZDate('2024-07-01', 'Europe/Paris'));
251+
252+
expect(override).toMatchObject({
253+
topM: 300,
254+
topLabel: '984ft GND',
255+
name: 'PARC/RESERVE AIGUILLES ROUGES 300M/SOL',
256+
});
231257
});
232258

233259
test('PARC/RESERVE ECRINS 1000M/SOL', () => {

libs/common/src/lib/airspaces.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ export const timedAirspaces = [
394394
// Active in July and August
395395
// https://federation.ffvl.fr/sites/ffvl.fr/files/Massifdumontblancchamonix.pdf
396396
'LF-R30B MONT BLANC (JULY+AUGUST)',
397+
// 300m AGL for PG
398+
// https://www.legifrance.gouv.fr/jorf/id/JORFTEXT000021755667
399+
'PARC/RESERVE AIGUILLES ROUGES 1000M/SOL',
397400
// Class E
398401
// - 2nd Monday of April to 2nd Friday of December
399402
// - outside the above period: Monday 11:00UTC to Thursday 23:59UTC
@@ -416,6 +419,14 @@ export function applyTimeRule(airspace: AirspaceTyped, date: Date): AirspaceType
416419
const month = tzDate.getMonth() + 1;
417420

418421
switch (airspace.name) {
422+
case 'PARC/RESERVE AIGUILLES ROUGES 1000M/SOL':
423+
return {
424+
...airspace,
425+
name: 'PARC/RESERVE AIGUILLES ROUGES 300M/SOL',
426+
topM: 300,
427+
topLabel: '984ft GND',
428+
};
429+
419430
case 'PARC/RESERVE ECRINS 1000M/SOL':
420431
if (month >= 7 && month <= 10) {
421432
return {

0 commit comments

Comments
 (0)